aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-05-10 00:03:40 +0800
committermat <mat@FreeBSD.org>2016-05-10 00:03:40 +0800
commit3c50a03759e16f3b9632fe171aeb870c8e7f570e (patch)
tree2aeca2a93057e2a88a3588f8e9cb17f66024e09a /lang
parent5e7c9c49bc5b108e97ef6595c4b779db0bfc4da1 (diff)
downloadfreebsd-ports-gnome-3c50a03759e16f3b9632fe171aeb870c8e7f570e.tar.gz
freebsd-ports-gnome-3c50a03759e16f3b9632fe171aeb870c8e7f570e.tar.zst
freebsd-ports-gnome-3c50a03759e16f3b9632fe171aeb870c8e7f570e.zip
A new release was done, so resync all the Perl 5 Makefiles a bit more,
and adjust the perl5-devel Makefile a bit for the couple of new tasks that need doing. Sponsored by: Absolight
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5-devel/Makefile9
-rw-r--r--lang/perl5.18/Makefile8
-rw-r--r--lang/perl5.20/Makefile9
-rw-r--r--lang/perl5.22/Makefile4
-rw-r--r--lang/perl5.24/Makefile19
5 files changed, 18 insertions, 31 deletions
diff --git a/lang/perl5-devel/Makefile b/lang/perl5-devel/Makefile
index 29144e61df49..5374c5b3cf26 100644
--- a/lang/perl5-devel/Makefile
+++ b/lang/perl5-devel/Makefile
@@ -64,7 +64,6 @@ PERL_MALLOC_CONFIGURE_ON= -Dusemymalloc=y
PERL_MALLOC_CONFIGURE_OFF= -Dusemymalloc=n
# XXX uncomment PORTSCOUT line
-# For the "release" Perl ports, this should be:
#PORTSCOUT= limit:^${PERL_VER}.
.include "version.mk"
@@ -86,6 +85,7 @@ _ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH}
# XXX releases are .tar.xz, add: tar:xz
USES= cpe
+# XXX replace all LIBPERL_VER occurences with PERL_VERSION
LIBPERL_VER= ${PORTVERSION:C/[^0-9.]//}
HAS_CONFIGURE= yes
@@ -169,7 +169,8 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
PRIV_LIB=${_PRIV_LIB} \
PKGNAMESUFFIX=${PKGNAMESUFFIX} \
ARCH_LIB=${_ARCH_LIB}
-PLIST_SUB+= LIBPERL_VER=${LIBPERL_VER} # XXX Remove
+# XXX Remove and change to PERL_VERSION in the plist.
+PLIST_SUB+= LIBPERL_VER=${LIBPERL_VER}
_PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT
@@ -221,7 +222,7 @@ pre-everything::
@${ECHO_MSG} "DEFAULT_VERSIONS+=perl5=${PERL_VER}"
@${ECHO_MSG} ""
@${ECHO_MSG} "##################################################"
-.if !(defined(PACKAGE_BUILDING) || defined(BATCH))
+. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
@sleep 30
. endif
.endif
@@ -297,8 +298,6 @@ post-install:
${LN} -sf libperl.so.${LIBPERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so
${LN} -sf libperl.so.${LIBPERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VER}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
- # XXX Remove the ECHO_CMD
- # Force PERL_PORT in case the devel has the same version as the latest release
${MKDIR} ${STAGEDIR}${SITE_ARCH}/machine
${MKDIR} ${STAGEDIR}${SITE_ARCH}/sys
# h2ph needs perl, but perl is not installed, it's only
diff --git a/lang/perl5.18/Makefile b/lang/perl5.18/Makefile
index 7a2d6157fd42..f9d339157872 100644
--- a/lang/perl5.18/Makefile
+++ b/lang/perl5.18/Makefile
@@ -76,7 +76,8 @@ SITE_MAN1?= ${PREFIX}/${SITE_MAN1_REL}
_PRIV_LIB= lib/perl5/${PERL_VER}
_ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH}
-USES= tar:bzip2 cpe
+USES= cpe tar:bzip2
+
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT=Configure
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
@@ -135,7 +136,7 @@ _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT
# 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]+$//}
+PKGNAMESUFFIX= 5
IAMDEFAULTPERL= yes
.else
# make PKGNAME unique among other lang/perl5.x
@@ -226,8 +227,6 @@ post-clean:
@${RM} ${_PERL5_DEFAULT_FILE}
.endif
-.if !defined(MAKING_PATCHES)
-# make clean patch makepatch MAKING_PATCHES=
post-patch:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
@@ -242,7 +241,6 @@ post-patch-PTHREAD-on:
post-patch-PTHREAD-off:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
${WRKSRC}/hints/freebsd.sh
-.endif
post-build:
@${REINPLACE_CMD} -e '/^lddlflags/s|-L${WRKSRC} ||' \
diff --git a/lang/perl5.20/Makefile b/lang/perl5.20/Makefile
index 8e9a75e8942f..201e37004906 100644
--- a/lang/perl5.20/Makefile
+++ b/lang/perl5.20/Makefile
@@ -51,7 +51,6 @@ THREADS_CONFIGURE_OFF= -Dusethreads=n
PERL_MALLOC_CONFIGURE_ON= -Dusemymalloc=y
PERL_MALLOC_CONFIGURE_OFF= -Dusemymalloc=n
-# For the older Perl ports, this should be:
PORTSCOUT= limit:^${PERL_VER}.
.include "version.mk"
@@ -70,7 +69,8 @@ SITE_MAN1?= ${PREFIX}/${SITE_MAN1_REL}
_PRIV_LIB= lib/perl5/${PERL_VER}
_ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH}
-USES= tar:bzip2 cpe
+USES= cpe tar:bzip2
+
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT=Configure
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
@@ -161,7 +161,7 @@ _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT
# 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]+$//}
+PKGNAMESUFFIX= 5
IAMDEFAULTPERL= yes
.else
# make PKGNAME unique among other lang/perl5.x
@@ -218,8 +218,6 @@ post-clean:
@${RM} ${_PERL5_DEFAULT_FILE}
.endif
-.if !defined(MAKING_PATCHES)
-# make clean patch makepatch MAKING_PATCHES=
post-patch:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
@@ -234,7 +232,6 @@ post-patch-PTHREAD-on:
post-patch-PTHREAD-off:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
${WRKSRC}/hints/freebsd.sh
-.endif
post-build:
@${REINPLACE_CMD} -e '/^lddlflags/s|-L${WRKSRC} ||' \
diff --git a/lang/perl5.22/Makefile b/lang/perl5.22/Makefile
index c7590f928e3a..ae60c5934987 100644
--- a/lang/perl5.22/Makefile
+++ b/lang/perl5.22/Makefile
@@ -113,7 +113,6 @@ SUB_LIST+= PERL_VERSION=${PERL_VERSION} \
SUB_FILES= perl-man.conf
-
INSTALL_TARGET= install-strip
.if defined(PERL_VENDOR_PREFIX)
@@ -218,8 +217,6 @@ post-clean:
@${RM} ${_PERL5_DEFAULT_FILE}
.endif
-.if !defined(MAKING_PATCHES)
-# make clean patch makepatch MAKING_PATCHES=
post-patch:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
@@ -234,7 +231,6 @@ post-patch-PTHREAD-on:
post-patch-PTHREAD-off:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
${WRKSRC}/hints/freebsd.sh
-.endif
post-build:
@${REINPLACE_CMD} -e '/^lddlflags/s|-L${WRKSRC} ||' \
diff --git a/lang/perl5.24/Makefile b/lang/perl5.24/Makefile
index 924e0e45ad6f..ef0aabc4043a 100644
--- a/lang/perl5.24/Makefile
+++ b/lang/perl5.24/Makefile
@@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= perl
-PORTREVISION= 0
DISTVERSION= ${PERL_VERSION}
+PORTREVISION= 0
CATEGORIES= lang devel perl5
-MASTER_SITES= CPAN/../../src/5.0
+MASTER_SITES= CPAN/../../src/5.0 CPAN/../by-authors/id/R/RJ/RJBS
DIST_SUBDIR= perl
MAINTAINER= perl@FreeBSD.org
@@ -51,7 +51,6 @@ THREADS_CONFIGURE_OFF= -Dusethreads=n
PERL_MALLOC_CONFIGURE_ON= -Dusemymalloc=y
PERL_MALLOC_CONFIGURE_OFF= -Dusemymalloc=n
-# For the "release" Perl ports, this should be:
PORTSCOUT= limit:^${PERL_VER}.
.include "version.mk"
@@ -72,12 +71,10 @@ _ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH}
USES= cpe tar:xz
-LIBPERL_VER= ${PORTVERSION:C/[^0-9.]//}
-
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT=Configure
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
- -Dlibperl=libperl.so.${LIBPERL_VER} \
+ -Dlibperl=libperl.so.${PERL_VERSION} \
-Darchlib=${PREFIX}/${_ARCH_LIB} \
-Dprivlib=${PREFIX}/${_PRIV_LIB} \
-Dman3dir=${PREFIX}/${PERLMANPREFIX_REL}/man/man3 \
@@ -198,7 +195,7 @@ pre-everything::
@${ECHO_MSG} "DEFAULT_VERSIONS+=perl5=${PERL_VER}"
@${ECHO_MSG} ""
@${ECHO_MSG} "##################################################"
-.if !(defined(PACKAGE_BUILDING) || defined(BATCH))
+. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
@sleep 30
. endif
.endif
@@ -209,8 +206,8 @@ pre-everything::
# portmaster/portupgrade will remove the installed Perl version, and it will
# remove any way to guess what the default Perl version is needed.
post-extract:
- ${LN} -s libperl.so.${LIBPERL_VER} ${WRKSRC}/libperl.so
- ${LN} -s libperl.so.${LIBPERL_VER} ${WRKSRC}/libperl.so.${PERL_VER}
+ ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so
+ ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so.${PERL_VER}
.if !defined(PACKAGE_BUILDING)
@${ECHO_CMD} "PERL5_DEFAULT=${PERL5_DEFAULT}" > ${_PERL5_DEFAULT_FILE}
.endif
@@ -251,8 +248,8 @@ post-install:
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
- ${LN} -sf libperl.so.${LIBPERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so
- ${LN} -sf libperl.so.${LIBPERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VER}
+ ${LN} -sf libperl.so.${PERL_VERSION} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so
+ ${LN} -sf libperl.so.${PERL_VERSION} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so.${PERL_VER}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/machine
${MKDIR} ${STAGEDIR}${SITE_ARCH}/sys