pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/ja-man Fixed PKGMANDIR and a few pkglint warnings.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7a81722f64b
branches:  trunk
changeset: 520618:d7a81722f64b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Oct 24 07:25:45 2006 +0000

description:
Fixed PKGMANDIR and a few pkglint warnings.

diffstat:

 misc/ja-man/Makefile         |  33 +++++++++++++++++++--------------
 misc/ja-man/distinfo         |   4 ++--
 misc/ja-man/patches/patch-ac |   4 ++--
 3 files changed, 23 insertions(+), 18 deletions(-)

diffs (115 lines):

diff -r d4db6c0aeda7 -r d7a81722f64b misc/ja-man/Makefile
--- a/misc/ja-man/Makefile      Tue Oct 24 07:18:41 2006 +0000
+++ b/misc/ja-man/Makefile      Tue Oct 24 07:25:45 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/10/04 21:49:19 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2006/10/24 07:25:45 rillig Exp $
 
 DISTNAME=      NetBSD1.3I-jman-19990531
 PKGNAME=       ja-man-19990531
@@ -16,29 +16,35 @@
 JAMANDIR=      ja_JP.EUC
 PLIST_SUBST+=  JAMANDIR=${JAMANDIR:Q}
 MAKE_ENV+=     JAMANDIR=${JAMANDIR:Q}
+MAKE_ENV+=     PKGMANDIR=${PKGMANDIR}
+MAKE_ENV+=     ${BSD_MAKE_ENV}
+MAKE_ENV+=     MANDIR=${PREFIX}/${PKGMANDIR}/${JAMANDIR}
 
 PLIST_SRC=     ${WRKDIR}/PLIST
 
-USE_TOOLS+=            gtar
+USE_TOOLS+=            patch
 MANCOMPRESSED_IF_MANZ= yes
 INSTALLATION_DIRS=     bin etc share/groff/tmac
+.for c in 1 2 3 4 5 6 7 8 9
+INSTALLATION_DIRS+=    ${PKGMANDIR}/${JAMANDIR}/cat${c}
+INSTALLATION_DIRS+=    ${PKGMANDIR}/${JAMANDIR}/man${c}
+.endfor
 
 .include "../../mk/bsd.prefs.mk"
 
 post-extract:
-       @${GTAR} cCf ${PREFIX}/share/groff/tmac - tmac.andoc tmac.doc \
-           mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms | \
-           ${GTAR} xCf ${WRKSRC} -
+       cd ${PREFIX}/share/groff/tmac \
+       && pax -wr tmac.andoc tmac.doc mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms ${WRKSRC}
 
 post-patch:
-       @${PATCH} -s -p2 -d ${WRKSRC}/mdoc < \
+       patch -s -p2 -d ${WRKSRC}/mdoc < \
                ${WRKSRC}/jgroff-for-netbsd-jman.dif
 
 do-build:
-       @${SED} -e 's|$${BINDIR}|${PREFIX}/bin|g' \
+       sed -e 's|$${BINDIR}|${PREFIX}/bin|g' \
                -e 's|$${JMANCONFDIR}|${PREFIX}/etc|g' ${WRKSRC}/jman/jman.sh \
                > ${WRKSRC}/jman/jman
-       @${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
+       sed -e 's|$${PREFIX}|${PREFIX}|g' \
                -e 's|$${LOCALBASE}|${LOCALBASE}|g' \
                -e 's|$${X11BASE}|${X11BASE}|g' \
                -e 's|$${JAMANDIR}|${JAMANDIR}|g' \
@@ -49,14 +55,14 @@
 
 pre-install:
 .if ${MKCATPAGES} == no
-       @${SED} -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST > ${PLIST_SRC}
+       sed -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST > ${PLIST_SRC}
 .if exists(${PKGDIR}/PLIST.${MACHINE})
-       @${SED} -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
+       sed -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
 .endif
 .else
-       @${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
+       cp ${PKGDIR}/PLIST ${PLIST_SRC}
 .if exists(${PKGDIR}/PLIST.${MACHINE})
-       @${CAT} ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
+       cat ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
 .endif
 .endif
 
@@ -70,7 +76,6 @@
        ${INSTALL_DATA} ${WRKSRC}/jman/jman.conf.t ${PREFIX}/etc/jman.conf
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jman
        ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jman
-       @(cd ${WRKSRC}/man; \
-               ${MAKE} PREFIX='${PREFIX}' JAMANDIR='${JAMANDIR}' install)
+       cd ${WRKSRC}/man && ${MAKE} ${MAKE_ENV} install
 
 .include "../../mk/bsd.pkg.mk"
diff -r d4db6c0aeda7 -r d7a81722f64b misc/ja-man/distinfo
--- a/misc/ja-man/distinfo      Tue Oct 24 07:18:41 2006 +0000
+++ b/misc/ja-man/distinfo      Tue Oct 24 07:25:45 2006 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 11:02:53 agc Exp $
+$NetBSD: distinfo,v 1.3 2006/10/24 07:25:45 rillig Exp $
 
 SHA1 (NetBSD1.3I-jman-19990531.tar.gz) = 354a23fd50c03de1acc42117d0fa1a6091c67cf0
 RMD160 (NetBSD1.3I-jman-19990531.tar.gz) = 03d2781b62bce2f9d9425d9dbc6b5fe0e40479a6
 Size (NetBSD1.3I-jman-19990531.tar.gz) = 1645123 bytes
 SHA1 (patch-aa) = d7888279176becb0e4e100cca7873fabb9344643
 SHA1 (patch-ab) = 7765340d1e596cfdec4d180c0956a980f42f3a72
-SHA1 (patch-ac) = 2598d46314ba694a227dca3c4d38212da2f64361
+SHA1 (patch-ac) = 1a61567a1c05b36ef2ed1950012d9c262f38ba3a
 SHA1 (patch-ad) = b608d193a471c8694247fc3650ab1b1a1e75428f
 SHA1 (patch-ae) = 0ddbcea34c2deddff32e8148c8ee23cff6ab7d53
 SHA1 (patch-af) = 41806023d8844395df25b9fb2b53a4cf767a5ffd
diff -r d4db6c0aeda7 -r d7a81722f64b misc/ja-man/patches/patch-ac
--- a/misc/ja-man/patches/patch-ac      Tue Oct 24 07:18:41 2006 +0000
+++ b/misc/ja-man/patches/patch-ac      Tue Oct 24 07:25:45 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.1.1.1 2002/05/31 13:01:23 seb Exp $
+$NetBSD: patch-ac,v 1.2 2006/10/24 07:25:45 rillig Exp $
 --- ./man/Makefile.inc.orig    Tue Jul 28 01:25:43 1998
 +++ ./man/Makefile.inc Mon May 31 16:18:47 1999
 @@ -1,9 +1,9 @@
@@ -12,7 +12,7 @@
 -              ${TMACDIR}/mdoc/doc-nroff \
 -              ${TMACDIR}/mdoc/doc-syms
 +NROFF=                jgnroff -Tnippon
-+MANDIR=               ${PREFIX}/man/${JAMANDIR}
++MANDIR=               ${PREFIX}/${PKGMANDIR}/${JAMANDIR}
 +TMACDIR=      ${PREFIX}/share/groff/tmac
 +CATDEPS=      ${TMACDIR}/tmac.andocj \
 +              ${TMACDIR}/tmac.docj \



Home | Main Index | Thread Index | Old Index