microperl is supposed to be a really minimal perl, even more minimal than miniperl. No Configure is needed to build microperl, on the other hand this means that interfaces between Perl and your operating system are left very -- minimal. it's good for people learning the internals of Perl because it strips away everything but the essentials Reproducible: Always Actual Results: succesfully tested on x86_64-gentoo-linux-musl-gcc-6.3.0 http://www.foo.be/docs/tpj/issues/vol5_3/tpj0503-0003.html
Created attachment 458232 [details] microperl-5.20.2.ebuild
Created attachment 458234 [details, diff] minor header fix patch
Created attachment 458236 [details, diff] Makefile.patch
Comment on attachment 458236 [details, diff] Makefile.patch >diff -ru o/Makefile.micro perl-5.20.2/Makefile.micro >--- o/Makefile.micro 2017-01-01 01:23:55.227510314 +0200 >+++ perl-5.20.2/Makefile.micro 2017-01-01 01:25:40.908336473 +0200 >@@ -1,10 +1,10 @@ >-LD = $(CC) >+LD ?= $(CC) > CCFLAGS = -c > DEFINES = -DPERL_CORE -DPERL_MICRO -DSTANDARD_C -DPERL_USE_SAFE_PUTENV \ > -DNO_MATHOMS >-OPTIMIZE = >-CFLAGS = $(DEFINES) $(OPTIMIZE) >-LDFLAGS = >+OPTIMIZE = >+CFLAGS += $(DEFINES) $(OPTIMIZE) >+LDFLAGS += > LIBS = -lm > _O = .o > ENV = env >@@ -22,7 +22,8 @@ > uregcomp$(_O) uregexec$(_O) urun$(_O) \ > uscope$(_O) usv$(_O) utaint$(_O) utoke$(_O) \ > unumeric$(_O) ulocale$(_O) umathoms$(_O) \ >- uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) ukeywords$(_O) >+ uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) ukeywords$(_O) \ >+ caretx$(_O) > > microperl: $(O) > $(LD) -o $@ $(O) $(LDFLAGS) $(LIBS) >@@ -64,6 +65,9 @@ > > # The microperl objects. > >+caretx$(_O): $(HE) caretx.c >+ $(CC) $(CCFLAGS) -o $@ $(CFLAGS) caretx.c >+ > uav$(_O): $(HE) av.c > $(CC) $(CCFLAGS) -o $@ $(CFLAGS) av.c >
Thank you for your contribution. Are you interested in proxy maintaining this package? I suggest to write SRC_URI=" mirror://cpan/src/5.0/${MY_P}.tar.bz2 " in one line. HOMEPAGE="http://www.perl.org/" HOMEPAGE should contain a URL about the installed software. Perl is a bit too broad. eerror "${CHOST} is not yet supported.. But you can fix this!" This line should be removed before the ebuild gets in the tree.
Out of curiosity, would any of the patches we apply to dev-lang/perl be useful here? - Patches: https://github.com/gentoo-perl/perl-patchset - Derived Sources: https://github.com/gentoo-perl/perl5 Though you seem more equipped to understand how microperl works so are probably better of taking maintenance through proxy.
BTW, for a DESCRIPTION, I'd shy away from what you have, and opt instead for something more like: "An ultra minimalist subset of Perl as a standalone language" or similar. As it is, "Larry Wall's Practical Extraction and Report Language" doesn't really say much useful, and its a backronym, and I feel like everyone who reads it learns something wrong which I have to then later unteach them of.
Please consider maintaining this in GURU yourself.