76.10. perl-parse-yapp-1.21
An LALR parser generator in perl — samba builds its IDL compiler with it
1.21-1 · Artistic-1.0-Perl OR GPL-1.0-or-later · 0.1 SBU · 145.7 KiB, 13 files · 40_lang, 60 of 186 · ports/core/perl-cpan/perl-parse-yapp
Homepage: https://metacpan.org/dist/Parse-Yapp
Why it is in KDOS. The comment above it in script/phases/40_lang/packages.d/perl-cpan.txt:
samba builds pidl, its IDL compiler, with Parse::Yapp, and stops rather than degrading when the module is absent.
Parse::Yapp is an LALR parser generator written in Perl, the Perl counterpart of yacc: yapp compiles a grammar into a Perl parser module. In KDOS it is a build dependency of samba, whose IDL compiler pidl is built with it.
Depends on: perl.
Required by (1): samba.
Sources: perl-parse-yapp-1.21.tar.gz (106.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install perl-parse-yapp'
build.sh:
perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR=$PKG install
find "$PKG" -name .packlist -delete
find "$PKG" -name perllocal.pod -delete
find "$PKG" -type d -empty -delete
install -Dm644 "$SRC/README" "$PKG/usr/share/licenses/$name/README"
install -Dm644 "$SRC/lib/Parse/Yapp.pm" "$PKG/usr/share/licenses/$name/Yapp.pm"
install -Dm644 /usr/share/licenses/perl/Copying "$PKG/usr/share/licenses/$name/Copying"
Programs: yapp.
Directories: /usr/share/licenses/perl-parse-yapp, /usr/share/perl5/vendor_perl/Parse.
The source keeps its licence in the COPYRIGHT section of lib/Parse/Yapp.pm, which grants use under the terms of Perl itself (the GPL or the Artistic License), and ships neither text. The last lines of build.sh install that module beside the README under /usr/share/licenses/perl-parse-yapp, with perl’s own /usr/share/licenses/perl/Copying, the GPL text, which is there because perl is in depends.