summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-03-01 07:32:07 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-03-01 07:32:07 +0000
commitc643511c3d99c471f36e92b638ee639f9102a59c (patch)
tree061c57acab378d72668631d5a574526d4b8488bf
parent* Broken with php5 (diff)
- remove doc_*_install target to avoid install perllocal.pod
- add some minor fixes and make it portlint clean PR: 78135 Submitted by: leeym Approved by: rand@meridian-enviro.com
Notes
Notes: svn path=/head/; revision=130066
-rw-r--r--math/p5-NetCDF/Makefile16
-rw-r--r--math/p5-NetCDF/pkg-plist1
2 files changed, 9 insertions, 8 deletions
diff --git a/math/p5-NetCDF/Makefile b/math/p5-NetCDF/Makefile
index 7d748068c597..1ae34c84c067 100644
--- a/math/p5-NetCDF/Makefile
+++ b/math/p5-NetCDF/Makefile
@@ -10,22 +10,24 @@ PORTVERSION= 1.2.2
CATEGORIES= math perl5
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf-perl/
PKGNAMEPREFIX= p5-
-DISTFILES= netcdf-perl-${PORTVERSION}.tar.Z
+DISTNAME= netcdf-perl-${PORTVERSION}
+EXTRACT_SUFX= .tar.Z
MAINTAINER= rand@meridian-enviro.com
COMMENT= Perl5 module to read and write netCDF files
LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf
-BROKEN= Installs perllocal.pod file
-
USE_PERL5= yes
-WRKSRC= ${WRKDIR}/netcdf-perl-${PORTVERSION}/src
-HAS_CONFIGURE= yes
-CONFIGURE_ENV= CPP_NETCDF=-I${PREFIX}/include LD_NETCDF=-lnetcdf PERL_MANDIR=${PREFIX}/lib/perl5/${PERL_VERSION}/man
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPP_NETCDF=-I${LOCALBASE}/include LD_NETCDF=-lnetcdf \
+ PERL_MANDIR=${MAN1PREFIX}/man PERL=${PERL5}
-MAN1PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN1= netCDFPerl.1
+pre-install:
+ @${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' ${WRKSRC}/perl/Makefile
+
.include <bsd.port.mk>
diff --git a/math/p5-NetCDF/pkg-plist b/math/p5-NetCDF/pkg-plist
index 39518e6e26d0..74d7a8d3a783 100644
--- a/math/p5-NetCDF/pkg-plist
+++ b/math/p5-NetCDF/pkg-plist
@@ -4,4 +4,3 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetCDF/autosplit.ix
%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetCDF/.packlist
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetCDF 2>/dev/null || true
-@unexec rmdir %D/lib/perl5/%%PERL_VERSION%%/man/man1 2>/dev/null || true