aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-08-08 04:48:31 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-08-08 04:48:31 +0000
commit24103d5fe9f272bf87f90d8ed7962d1b2442922d (patch)
treeb41cfdcf08401ef6002722be71251b415d3851d8
parent4a952a9b4df12c1abd3c46fe1c9ad0bcbb5a6711 (diff)
downloadports-24103d5fe9f272bf87f90d8ed7962d1b2442922d.tar.gz
ports-24103d5fe9f272bf87f90d8ed7962d1b2442922d.zip
- Respect PORTDOCS
Reported by: IonBot
Notes
Notes: svn path=/head/; revision=218227
-rw-r--r--science/netcdf/Makefile7
-rw-r--r--science/netcdf/pkg-plist4
-rw-r--r--science/netcdf4/Makefile7
-rw-r--r--science/netcdf4/pkg-plist4
4 files changed, 6 insertions, 16 deletions
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index 9455b3c9fa46..7ef4c97f6305 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -23,6 +23,7 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFor
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV+= ${MAKE_ENV}
+PORTDOCS= COPYRIGHT README RELEASE_NOTES
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
@@ -44,10 +45,8 @@ post-install:
${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so
${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in COPYRIGHT README RELEASE_NOTES
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ @${INSTALL} -d ${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.else
CONFIGURE_ARGS+= --disable-docs-install
.endif
diff --git a/science/netcdf/pkg-plist b/science/netcdf/pkg-plist
index 972db7bbf9e8..b03a9ba0e399 100644
--- a/science/netcdf/pkg-plist
+++ b/science/netcdf/pkg-plist
@@ -18,7 +18,3 @@ lib/libnetcdf_c++.so.4
%%FORTRAN%%lib/libnetcdff.la
%%FORTRAN%%lib/libnetcdff.so
%%FORTRAN%%lib/libnetcdff.so.4
-%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
diff --git a/science/netcdf4/Makefile b/science/netcdf4/Makefile
index 9455b3c9fa46..7ef4c97f6305 100644
--- a/science/netcdf4/Makefile
+++ b/science/netcdf4/Makefile
@@ -23,6 +23,7 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFor
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV+= ${MAKE_ENV}
+PORTDOCS= COPYRIGHT README RELEASE_NOTES
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
@@ -44,10 +45,8 @@ post-install:
${LN} -fs libnetcdf.so.4 ${PREFIX}/lib/libnetcdf.so
${LN} -fs libnetcdf_c++.so.4 ${PREFIX}/lib/libnetcdf_c++.so
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in COPYRIGHT README RELEASE_NOTES
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+ @${INSTALL} -d ${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.else
CONFIGURE_ARGS+= --disable-docs-install
.endif
diff --git a/science/netcdf4/pkg-plist b/science/netcdf4/pkg-plist
index 972db7bbf9e8..b03a9ba0e399 100644
--- a/science/netcdf4/pkg-plist
+++ b/science/netcdf4/pkg-plist
@@ -18,7 +18,3 @@ lib/libnetcdf_c++.so.4
%%FORTRAN%%lib/libnetcdff.la
%%FORTRAN%%lib/libnetcdff.so
%%FORTRAN%%lib/libnetcdff.so.4
-%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
-%%PORTDOCS%%@dirrm %%DOCSDIR%%