summaryrefslogtreecommitdiff
path: root/misc/ja-man/Makefile
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-24 07:25:45 +0000
committerrillig <rillig>2006-10-24 07:25:45 +0000
commitff8484f4f30a448ba96187c70764a60c7542f88a (patch)
treed1f7fb8cf2fb4cdf2092ef0b447c0eab419e91f2 /misc/ja-man/Makefile
parentea9a12b0f2737c817b121ed2b5c6d3b25ab5d79a (diff)
downloadpkgsrc-ff8484f4f30a448ba96187c70764a60c7542f88a.tar.gz
Fixed PKGMANDIR and a few pkglint warnings.
Diffstat (limited to 'misc/ja-man/Makefile')
-rw-r--r--misc/ja-man/Makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/misc/ja-man/Makefile b/misc/ja-man/Makefile
index c91d389bb71..b402de3f645 100644
--- a/misc/ja-man/Makefile
+++ b/misc/ja-man/Makefile
@@ -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 @@ DEPENDS+= ja-groff-0.99{,nb*}:../../textproc/ja-groff
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 @@ MKCATPAGES?= yes
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 @@ do-install:
${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"