switch to Distar for packaging
Matt S Trout [Sun, 9 Sep 2012 20:38:00 +0000 (20:38 +0000)]
Makefile.PL
maint/Makefile.PL.include [new file with mode: 0644]

index 5d6188f..706a9ab 100644 (file)
@@ -2,6 +2,8 @@ use strict;
 use warnings FATAL => 'all';
 use ExtUtils::MakeMaker;
 
+(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+
 WriteMakefile(
   NAME => 'Rakudo-Star',
   VERSION_FROM => 'lib/Rakudo/Star.pm',
@@ -25,12 +27,4 @@ install :: rakudoinstall
 
 rakudoinstall :
        cd rakudo-star; make install
-
-manifest :
-       rm MANIFEST
-       $(PERL) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest
-       echo "rakudo-star/parrot/.gitignore" >>MANIFEST
-       echo "rakudo-star/parrot/examples/compilers/Makefile" >>MANIFEST
-       echo "rakudo-star/parrot/examples/embed/Makefile" >>MANIFEST
-       echo "rakudo-star/parrot/examples/tools/Makefile" >>MANIFEST
 END
diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include
new file mode 100644 (file)
index 0000000..cd9063b
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN {
+  -e 'Distar'
+    or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git")
+}
+use lib 'Distar/lib';
+use Distar;
+
+author 'mst - Matt S. Trout (cpan:MSTROUT) <mst@shadowcat.co.uk>';
+
+manifest_include(
+  'rakudo-star' => qr/.*/,
+);