diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-15 21:46:34 +0800 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-15 21:46:34 +0800 |
commit | 308fda13e174f295ae8a8f8dee49a74a14cd6b59 (patch) | |
tree | 6a17ce06167416a600a95bdf86640876a63b1596 /lang | |
parent | ae6d8e2c242967ceed14b84d594f2440bc573ed7 (diff) | |
download | freebsd-ports-gnome-308fda13e174f295ae8a8f8dee49a74a14cd6b59.tar.gz freebsd-ports-gnome-308fda13e174f295ae8a8f8dee49a74a14cd6b59.tar.zst freebsd-ports-gnome-308fda13e174f295ae8a8f8dee49a74a14cd6b59.zip |
Only add the PKGINSTALL/DEINSTALL on 8.4. While there, move a few things
before port.pre.mk that had no place after it.
Sponsored by: Absolight
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl5.20/Makefile | 45 | ||||
-rw-r--r-- | lang/perl5.20/files/use.perl.in | 8 |
2 files changed, 27 insertions, 26 deletions
diff --git a/lang/perl5.20/Makefile b/lang/perl5.20/Makefile index c60ec7d20c15..da072c3f71fe 100644 --- a/lang/perl5.20/Makefile +++ b/lang/perl5.20/Makefile @@ -3,7 +3,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang devel perl5 MASTER_SITES= CPAN/../../src/5.0 DIST_SUBDIR= perl @@ -110,26 +110,10 @@ SUB_LIST+= PERL_VERSION=${PERL_VERSION} \ SITEMAN3PREFIX=${SITE_MAN3_PREFIX} \ PERL_ARCH=${PERL_ARCH} -SUB_FILES= perl5_version use.perl perl-man.conf +SUB_FILES= perl5_version -PKGINSTALL= ${WRKDIR}/use.perl -PKGDEINSTALL= ${WRKDIR}/use.perl INSTALL_TARGET= install-strip -.include <bsd.port.pre.mk> -.include "${PORTSDIR}/Mk/bsd.default-versions.mk" - -# if this port is default due PERL5_DEFAULT -# change PKGNAME to reflect this -.if ${PERL_VER} == ${PERL5_DEFAULT} -PKGNAMESUFFIX= ${PERL_VERSION:C/\.[0-9]+\.[0-9]+$//} -.else -# make PKGNAME unique among other lang/perl5.x -PKGNAMESUFFIX= ${PERL_VER} -# always add default perl5 pkgname to conflicts -CONFLICTS_INSTALL+= perl5-* -.endif - .if defined(PERL_VENDOR_PREFIX) CONFIGURE_ARGS+= \ -Dvendorprefix=${PERL_VENDOR_PREFIX} \ @@ -162,15 +146,34 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PRIV_LIB=${_PRIV_LIB} \ ARCH_LIB=${_ARCH_LIB} -.if ${PORT_OPTIONS:MDEBUG} -STRIP= -STRIP_CMD= ${TRUE} +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.default-versions.mk" + +# if this port is default due PERL5_DEFAULT +# change PKGNAME to reflect this +.if ${PERL_VER} == ${PERL5_DEFAULT} +PKGNAMESUFFIX= ${PERL_VERSION:C/\.[0-9]+\.[0-9]+$//} +.else +# make PKGNAME unique among other lang/perl5.x +PKGNAMESUFFIX= ${PERL_VER} +# always add default perl5 pkgname to conflicts +CONFLICTS_INSTALL+= perl5-* .endif .if ${OSVERSION} >= 900022 +SUB_FILES+= perl-man.conf PLIST_SUB+= MANCONF="" .else +# FIXME when 8.4 goes out, remove this +SUB_FILES+= use.perl PLIST_SUB+= MANCONF="@comment " +PKGINSTALL= ${WRKDIR}/use.perl +PKGDEINSTALL= ${WRKDIR}/use.perl +.endif + +.if ${PORT_OPTIONS:MDEBUG} +STRIP= +STRIP_CMD= ${TRUE} .endif # Put a symlink to the future libperl.so.x.yy so that -lperl works. diff --git a/lang/perl5.20/files/use.perl.in b/lang/perl5.20/files/use.perl.in index 5376d36ced0e..e50f83b9d0d2 100644 --- a/lang/perl5.20/files/use.perl.in +++ b/lang/perl5.20/files/use.perl.in @@ -33,12 +33,10 @@ do_spam_manpath() if [ "$2" = "POST-INSTALL" ] ; then - if [ "${OSVERSION}" -lt 900022 ] ; then - do_cleanup_manpath - do_spam_manpath - fi + do_cleanup_manpath + do_spam_manpath elif [ "$2" = "POST-DEINSTALL" ] ; then - [ "${OSVERSION}" -lt 900022 ] && do_cleanup_manpath + do_cleanup_manpath fi exit 0 |