summaryrefslogtreecommitdiff
path: root/math/p5-NetCDF
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-09-14 12:19:48 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-09-14 12:19:48 +0000
commitafae652a2a20e0b0caa335e766dff03094773e1f (patch)
treeb5c267ca5490c7e06b5fe235a5d442d93eac880d /math/p5-NetCDF
parentUpdate to 1.6-dev5. (diff)
Make it so that the default Perl is always called perl5.
- Move Perl's man1 files along with its man3 files. - Move where Perl installs its modules man1 pages. - Convert the ports installing man1 pages. - Make different Perl versions installable at the same time. Though you should note that only the default version can be used to install Perl modules, and the non default Perl versions cannot use the modules installed via ports if they contain .so as they are installed in a version specific directory. Reviewed by: bapt (the Mk bits) Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3542
Diffstat (limited to 'math/p5-NetCDF')
-rw-r--r--math/p5-NetCDF/Makefile6
-rw-r--r--math/p5-NetCDF/pkg-plist2
2 files changed, 4 insertions, 4 deletions
diff --git a/math/p5-NetCDF/Makefile b/math/p5-NetCDF/Makefile
index 2b2a55ee29d6..c9d8f7d2459d 100644
--- a/math/p5-NetCDF/Makefile
+++ b/math/p5-NetCDF/Makefile
@@ -14,12 +14,12 @@ COMMENT= Perl5 module to read and write netCDF files
LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
-USES= perl5
+USES= perl5 fakeroot
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+WRKSRC_SUBDIR= src
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPP_NETCDF=-I${LOCALBASE}/include LD_NETCDF=-lnetcdf \
- PERL_MANDIR=${STAGEDIR}${MAN1PREFIX}/man PERL=${PERL5}
+ PERL_MANDIR=${STAGEDIR}${SITE_PERL}/man PERL=${PERL5}
pre-install:
@${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' ${WRKSRC}/perl/Makefile
diff --git a/math/p5-NetCDF/pkg-plist b/math/p5-NetCDF/pkg-plist
index 12eaff22b654..c95f7723f977 100644
--- a/math/p5-NetCDF/pkg-plist
+++ b/math/p5-NetCDF/pkg-plist
@@ -1,4 +1,4 @@
-man/man1/netCDFPerl.1.gz
+%%PERL5_MAN1%%/netCDFPerl.1.gz
%%SITE_ARCH%%/NetCDF.pm
%%SITE_ARCH%%/auto/NetCDF/NetCDF.so
%%SITE_ARCH%%/auto/NetCDF/autosplit.ix