pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/octave PR#36479 fix plus pkglint cosmetics



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50b01f950043
branches:  trunk
changeset: 533877:50b01f950043
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Oct 05 16:31:33 2007 +0000

description:
PR#36479 fix plus pkglint cosmetics

diffstat:

 math/octave/Makefile      |  27 +++++++++++++--------------
 math/octave/PLIST         |   5 ++++-
 math/octave/buildlink3.mk |   4 ++--
 3 files changed, 19 insertions(+), 17 deletions(-)

diffs (138 lines):

diff -r f7aaddd5b6b6 -r 50b01f950043 math/octave/Makefile
--- a/math/octave/Makefile      Fri Oct 05 16:11:17 2007 +0000
+++ b/math/octave/Makefile      Fri Oct 05 16:31:33 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.69 2007/01/07 12:25:54 wiz Exp $
+# $NetBSD: Makefile,v 1.70 2007/10/05 16:31:33 adam Exp $
 
 DISTNAME=      octave-${OCTAVE_VER}
 PKGREVISION=   1
@@ -18,19 +18,21 @@
 DEPENDS+=      gnuplot>=3.7:../../graphics/gnuplot
 
 OCTAVE_VER=    2.1.73
-CONFLICTS+=    octave-current-*
+CONFLICTS+=    octave-current-[0-9]*
 
 .if (${MACHINE_ARCH} == "arm32")
 BROKEN=                Internal compiler error occurs on arm32 (even with gcc-2.95.3)
 .endif
 
 USE_GNU_READLINE=      yes
+USE_LANGUAGES=         c c++ fortran
 USE_LIBTOOL=           yes
 USE_TOOLS+=            gmake makeinfo perl
 GNU_CONFIGURE=         yes
 
 GCC_REQD+=             3.0
-USE_LANGUAGES=         c c++ fortran
+INSTALLATION_DIRS+=    share/doc/octave
+INSTALLATION_DIRS+=    share/octave/${OCTAVE_VER}/doc
 
 # needed for loading of shared objects such as those in the
 # octave-forge package or user written ones compiled with
@@ -42,18 +44,18 @@
 GNU_PLATFORM_DIR!=     ${.CURDIR}/../../mk/gnu-config/config.sub ${MACHINE_GNU_PLATFORM}
 PLIST_SUBST+=  GNU_PLATFORM_DIR=${GNU_PLATFORM_DIR:Q}
 
-INFO_FILES=    # PLIST
+INFO_FILES=    yes
 OCTAVE_DOC=    faq/Octave-FAQ.ps interpreter/octave.ps \
                liboctave/liboctave.ps refcard/refcard-a4.ps \
                refcard/refcard-legal.ps  refcard/refcard-letter.ps
-OCTAVE_HTML=   faq/Octave-FAQ_*.html interpreter/octave_*.html \
-               liboctave/liboctave_*.html
+OCTAVE_HTML=   faq/Octave-FAQ*.html interpreter/octave*.html \
+               liboctave/liboctave*.html
 
 UNWRAP_FILES+= mkoctfile octave-bug src/oct-conf.h
 
 post-extract:
-       ${FIND} ${WRKSRC}/doc -type f -name '*.info*' -print | ${XARGS} ${RM} -f
-       ${MKDIR} ${WRKSRC}/src/pic
+       find ${WRKSRC}/doc -type f -name '*.info*' -print | xargs rm -f
+       mkdir ${WRKSRC}/src/pic
 
 # substitute in the real path to various bits of the toolchain because
 # mkoctfile will be used potentially by users and it needs to point
@@ -61,14 +63,13 @@
 # fix up the path to sed otherwise we end up with the buildlink directory
 # in mkoctfile
 post-build:
-       ${MV} ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak
-       ${SED} \
-               -e 's;"${CC}";"${CCPATH}";g' \
+       mv ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak
+       sed     -e 's;"${CC}";"${CCPATH}";g' \
                -e 's;"${CXX}";"${CXXPATH}";g' \
                -e 's;"${FC}";"${FCPATH}";g' \
                -e 's@^:[ \t]*\$${SED=.*@: \$$\{SED="${SED}"\}@g' \
                ${WRKSRC}/mkoctfile.bak > ${WRKSRC}/mkoctfile
-       ${CHMOD} a+x ${WRKSRC}/mkoctfile
+       chmod a+x ${WRKSRC}/mkoctfile
 
 post-install:
        cd ${WRKSRC}/doc/liboctave;                                     \
@@ -76,11 +77,9 @@
                ${TEST} ! -f "$$f" ||                                   \
                ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR};          \
        done
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/octave/${OCTAVE_VER}/doc
 .for f in ${OCTAVE_DOC}
        ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${PREFIX}/share/octave/${OCTAVE_VER}/doc
 .endfor
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/octave
 .for f in ${OCTAVE_HTML}
        ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${PREFIX}/share/doc/octave
 .endfor
diff -r f7aaddd5b6b6 -r 50b01f950043 math/octave/PLIST
--- a/math/octave/PLIST Fri Oct 05 16:11:17 2007 +0000
+++ b/math/octave/PLIST Fri Oct 05 16:31:33 2007 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2006/04/06 09:10:28 adam Exp $
+@comment $NetBSD: PLIST,v 1.14 2007/10/05 16:31:33 adam Exp $
 bin/mkoctfile
 bin/mkoctfile-${PKGVERSION}
 bin/octave
@@ -636,6 +636,7 @@
 man/man1/octave-bug.1
 man/man1/octave-config.1
 man/man1/octave.1
+share/doc/octave/Octave-FAQ.html
 share/doc/octave/Octave-FAQ_1.html
 share/doc/octave/Octave-FAQ_10.html
 share/doc/octave/Octave-FAQ_11.html
@@ -652,6 +653,7 @@
 share/doc/octave/Octave-FAQ_fot.html
 share/doc/octave/Octave-FAQ_ovr.html
 share/doc/octave/Octave-FAQ_toc.html
+share/doc/octave/liboctave.html
 share/doc/octave/liboctave_1.html
 share/doc/octave/liboctave_10.html
 share/doc/octave/liboctave_11.html
@@ -678,6 +680,7 @@
 share/doc/octave/liboctave_abt.html
 share/doc/octave/liboctave_ovr.html
 share/doc/octave/liboctave_toc.html
+share/doc/octave/octave.html
 share/doc/octave/octave_1.html
 share/doc/octave/octave_10.html
 share/doc/octave/octave_11.html
diff -r f7aaddd5b6b6 -r 50b01f950043 math/octave/buildlink3.mk
--- a/math/octave/buildlink3.mk Fri Oct 05 16:11:17 2007 +0000
+++ b/math/octave/buildlink3.mk Fri Oct 05 16:31:33 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2007/01/07 12:25:54 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2007/10/05 16:31:33 adam Exp $
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
 OCTAVE_BUILDLINK3_MK:= ${OCTAVE_BUILDLINK3_MK}+
@@ -13,7 +13,7 @@
 
 .if !empty(OCTAVE_BUILDLINK3_MK:M+)
 BUILDLINK_API_DEPENDS.octave+= octave>=2.1.69
-BUILDLINK_ABI_DEPENDS.octave?= octave>=2.1.73nb1
+BUILDLINK_ABI_DEPENDS.octave+= octave>=2.1.73nb1
 BUILDLINK_PKGSRCDIR.octave?=   ../../math/octave
 .endif # OCTAVE_BUILDLINK3_MK
 



Home | Main Index | Thread Index | Old Index