summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-09 15:40:20 +0000
committerjlam <jlam>2006-03-09 15:40:20 +0000
commit0de4a178e071a91e0fe97d0815b26eeda56d6f66 (patch)
tree393f3972a01a6c2d2305bdf55f9b144984de3b93 /math
parent45419e2c9d42b0f4302ec8d8741956d205d09b48 (diff)
downloadpkgsrc-0de4a178e071a91e0fe97d0815b26eeda56d6f66.tar.gz
Generated info files may no longer be split, so handle this fact when
installing the liboctave info files.
Diffstat (limited to 'math')
-rw-r--r--math/octave/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 4fdd594f3d9..59b80bc5281 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.62 2006/03/05 16:27:27 jlam Exp $
+# $NetBSD: Makefile,v 1.63 2006/03/09 15:40:20 jlam Exp $
DISTNAME= octave-${OCTAVE_VER}
PKGREVISION= 1
@@ -43,8 +43,7 @@ GNU_PLATFORM_DIR!= ${.CURDIR}/../../mk/gnu-config/config.sub ${MACHINE_GNU_PLATF
PLIST_SUBST+= GNU_PLATFORM_DIR=${GNU_PLATFORM_DIR:Q}
INFO_FILES= octave.info liboctave.info
-LIBOCTAVE_INFO= liboctave.info liboctave.info-1 \
- liboctave.info-2 liboctave.info-3
+LIBOCTAVE_INFO= liboctave.info liboctave.info-[0-9]*
OCTAVE_DOC= faq/Octave-FAQ.ps interpreter/octave.ps \
liboctave/liboctave.ps refcard/refcard-a4.ps \
refcard/refcard-legal.ps refcard/refcard-letter.ps
@@ -73,8 +72,11 @@ post-build:
${CHMOD} a+x ${WRKSRC}/mkoctfile
post-install:
-.for f in ${LIBOCTAVE_INFO}
- ${INSTALL_DATA} ${WRKSRC}/doc/liboctave/${f} ${PREFIX}/info
+ cd ${WRKSRC}/doc/liboctave; \
+ for f in ${LIBOCTAVE_INFO}; do \
+ ${TEST} ! -f "$$f" || \
+ ${INSTALL_DATA} "$$f" ${PREFIX}/${INFO_DIR}; \
+ done
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/octave/${OCTAVE_VER}/doc
.for f in ${OCTAVE_DOC}