aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/mh/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-08-24 22:33:25 +0800
committerhrs <hrs@FreeBSD.org>2014-08-24 22:33:25 +0800
commit92d7eb4acc796e0116eee3e7a9aba152083f8a6c (patch)
tree7949a18e84ccf3f9e9901da5b9d5dbb843866153 /japanese/mh/Makefile
parent0150b8af02ccd85bf7f6260b93cc25148c065e16 (diff)
downloadfreebsd-ports-gnome-92d7eb4acc796e0116eee3e7a9aba152083f8a6c.tar.gz
freebsd-ports-gnome-92d7eb4acc796e0116eee3e7a9aba152083f8a6c.tar.zst
freebsd-ports-gnome-92d7eb4acc796e0116eee3e7a9aba152083f8a6c.zip
* Add staging support.
* Use OPTIONS_DEFINE=DOCS instead of NOPORTDOCS. * Remove obsolete MAN* variables, and use pkg-plist. * Take maintainership. Submitted by: WATANABE Kazuhiro PR: 192966
Diffstat (limited to 'japanese/mh/Makefile')
-rw-r--r--japanese/mh/Makefile33
1 files changed, 10 insertions, 23 deletions
diff --git a/japanese/mh/Makefile b/japanese/mh/Makefile
index 05b18e5a8010..d80aac8b3b4c 100644
--- a/japanese/mh/Makefile
+++ b/japanese/mh/Makefile
@@ -10,7 +10,7 @@ MASTER_SITES= ${MASTER_SITE_LOCAL} \
MASTER_SITE_SUBDIR= motoyuki
DISTNAME= ${PORTNAME}-${VERSION}-JP-${JP_VERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= CQG00620@nifty.ne.jp
COMMENT= Rand MH mail handling system + Japanese patches
BUILD_DEPENDS= jless:${PORTSDIR}/japanese/less
@@ -25,38 +25,25 @@ CONFIGURE_ARGS= --enable-batchmode \
MAKE_JOBS_UNSAFE= yes
CFLAGS+= -Wno-return-type
-MAN1= ali.1 anno.1 bbc.1 burst.1 comp.1 dist.1 folder.1 forw.1 inc.1 mark.1 \
- mh-chart.1 mh.1 mhl.1 mhmail.1 mhn.1 mhook.1 mhparam.1 mhpath.1 \
- msgchk.1 msh.1 next.1 packf.1 pgped.1 pick.1 prev.1 prompter.1 rcvstore.1 \
- refile.1 repl.1 rmf.1 rmm.1 scan.1 send.1 show.1 slocal.1 sortm.1 \
- vmh.1 whatnow.1 whom.1
-MAN5= mh-alias.5 mh-format.5 mh-mail.5 mh-profile.5 mh-sequence.5 mh-tailor.5
-MAN8= ap.8 conflict.8 dp.8 fmtdump.8 install-mh.8 post.8
-MANLANG= "" ja
-MANCOMPRESSED= yes
USE_LDCONFIG= yes
-DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
-READMES= 00.READ.ME.1ST CHANGES.JP COMMANDS.JP FAQ.JP FEATURES.JP \
+PORTDOCS= 00.READ.ME.1ST CHANGES.JP COMMANDS.JP FAQ.JP FEATURES.JP \
INSTALL.JP OPTIONS.JP READ-ME.JP TODO.JP
+DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
CONFLICTS= nmh-[0-9]*
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e "s/-O /${CFLAGS} /g" ${WRKSRC}/configure
-.if !defined(NOPORTDOCS)
-pre-install:
- ${MKDIR} ${PREFIX}/share/doc/ja-mh
-.endif
-
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
- ${MKDIR} ${DOCDIR}
- (cd ${WRKSRC}/doc-JP; ${INSTALL_DATA} ${READMES} ${DOCDIR})
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc-JP && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>