From: Sergey Matveev Date: Wed, 26 Jun 2024 19:56:33 +0000 (+0300) Subject: Perl documentation is built by default X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cb5081fed5bbf36b3935909de62fc276183a439c7f5b429d92c066c63ab31871;p=bass.git Perl documentation is built by default --- diff --git a/build/skel/lang/perl-5.32.1.do b/build/skel/lang/perl-5.32.1.do index b48d19d..648c59f 100644 --- a/build/skel/lang/perl-5.32.1.do +++ b/build/skel/lang/perl-5.32.1.do @@ -12,11 +12,23 @@ $TAR xf "$DISTFILES"/$NAME.tar.xz "$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh cd $NAME -sh Configure -de \ - -Dprefix="$SKELBINS"/$ARCH/$NAME-$hsh \ - -Dman1dir=none -Dman3dir=none >&2 +manpath=" +-Dman1dir=$SKELBINS/$ARCH/$NAME-$hsh/lib/perl5/5.32/perl/man/man1 +-Dman3dir=$SKELBINS/$ARCH/$NAME-$hsh/lib/perl5/5.32/perl/man/man3 +" +[ -z "$PERL_NO_DOC" ] || manpath="-Dman1dir=none -Dman3dir=none" +sh Configure -de -Dprefix="$SKELBINS"/$ARCH/$NAME-$hsh $manpath >&2 make -j$MAKE_JOBS >&2 make install-strip >&2 cd "$SKELBINS"/$ARCH +if [ -z "$PERL_NO_DOC" ] ; then + mkdir -p $NAME-$hsh/skelpkg/$NAME-$hsh/hooks/postinst + cat >$NAME-$hsh/skelpkg/$NAME-$hsh/hooks/postinst/01rc-add <>rc +EOF + chmod +x $NAME-$hsh/skelpkg/$NAME-$hsh/hooks/postinst/01rc-add +fi "$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh