From c758710d2ccd569eded8c36de7d730b3aac2e987 Mon Sep 17 00:00:00 2001 From: tobez Date: Wed, 12 Nov 2003 00:07:43 +0000 Subject: In some cases of weird symlinking (possibly triggered by portupgrade), perl binary might fail to be installed during make install. Try to fix that. Reported by: "Shobaki sam." PR: 59186 --- lang/perl5.12/Makefile | 9 +++++++-- lang/perl5.12/pkg-plist | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'lang/perl5.12') diff --git a/lang/perl5.12/Makefile b/lang/perl5.12/Makefile index a5dcb773d0c5..7fe073530167 100644 --- a/lang/perl5.12/Makefile +++ b/lang/perl5.12/Makefile @@ -7,6 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} +PORTREVISION= 1 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ @@ -219,10 +220,14 @@ post-patch: ${FILESDIR}/use.perl \ > ${WRKDIR}/use.perl +pre-install: + @${RM} -f ${PREFIX}/bin/perl${PERL_VER} + @${RM} -f ${PREFIX}/bin/perl + post-install: + @${STRIP_CMD} ${PREFIX}/bin/perl${PERL_VER} @${STRIP_CMD} ${PREFIX}/bin/perl - @${LN} -sf ${PREFIX}/bin/perl ${PREFIX}/bin/perl5 - @${LN} -sf ${PREFIX}/bin/perl ${PREFIX}/bin/perl${PERL_VER} + @${LN} -sf ${PREFIX}/bin/perl${PERL_VER} ${PREFIX}/bin/perl5 ${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl .for files in ${BSDPAN_FILES} ${MKDIR} ${BSDPAN_DEST}/${files:H} diff --git a/lang/perl5.12/pkg-plist b/lang/perl5.12/pkg-plist index 4815a22627f9..52965e7bbf55 100644 --- a/lang/perl5.12/pkg-plist +++ b/lang/perl5.12/pkg-plist @@ -8,9 +8,9 @@ bin/h2ph bin/h2xs bin/libnetcfg bin/perl +bin/perl%%PERL_VER%% @exec ln -fs %D/%F %B/perl5 @unexec rm %B/perl5 -bin/perl%%PERL_VER%% bin/perlbug bin/perlcc bin/perldoc -- cgit