Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 07:10:14 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356599 - head/www/mhonarc
Message-ID:  <201406050710.s557AEho090281@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Jun  5 07:10:13 2014
New Revision: 356599
URL: http://svnweb.freebsd.org/changeset/ports/356599
QAT: https://qat.redports.org/buildarchive/r356599/

Log:
  - Stage support
  
  PR:		190277

Modified:
  head/www/mhonarc/Makefile
  head/www/mhonarc/pkg-plist

Modified: head/www/mhonarc/Makefile
==============================================================================
--- head/www/mhonarc/Makefile	Thu Jun  5 06:42:05 2014	(r356598)
+++ head/www/mhonarc/Makefile	Thu Jun  5 07:10:13 2014	(r356599)
@@ -12,26 +12,29 @@ DISTNAME=	MHonArc-${PORTVERSION}
 MAINTAINER=	kerndtr@kerndt.com
 COMMENT=	WWW front end for mail archives
 
-USE_BZIP2=	Yes
-USES=		perl5
+USES=		tar:bzip2 perl5
 NO_BUILD=	Yes
 
-MAN1=	mhonarc.1 mha-dbedit.1 mha-dbrecover.1 mha-decode.1
-
-INSTALL_ARGS=	-binpath ${PREFIX}/bin \
-		-libpath ${SITE_PERL} \
-		-manpath ${PREFIX}/man \
+INSTALL_ARGS=	-prefix ${STAGEDIR} -binpath ${STAGEDIR}${PREFIX}/bin \
+		-libpath ${STAGEDIR}${SITE_PERL} \
+		-manpath ${STAGEDIR}${PREFIX}/man \
 		-batch
 
 .if !defined(NOPORTDOCS)
-DOCSDIR=	${PREFIX}/share/doc/MHonArc
-INSTALL_ARGS+=	-docpath ${DOCSDIR}
+THEDOCSDIR=	${STAGEDIR}${PREFIX}/share/doc/MHonArc
+DOCSDIR=${PREFIX}/share/doc/MHonArc
+INSTALL_ARGS+=	-docpath ${THEDOCSDIR}
 .else
 INSTALL_ARGS+=	-nodoc
 .endif
 
-NO_STAGE=	yes
 do-install:
 	cd ${WRKSRC} && ${PERL5} install.me ${INSTALL_ARGS}
 
+post-install:
+.for file in mha-dbedit mha-dbrecover mha-decode mhonarc
+	${REINPLACE_CMD} -E -e 's,${STAGEDIR},,g' ${STAGEDIR}/${PREFIX}/bin/${file}
+	${RM} ${STAGEDIR}/${PREFIX}/bin/${file}.bak
+.endfor
+
 .include <bsd.port.mk>

Modified: head/www/mhonarc/pkg-plist
==============================================================================
--- head/www/mhonarc/pkg-plist	Thu Jun  5 06:42:05 2014	(r356598)
+++ head/www/mhonarc/pkg-plist	Thu Jun  5 07:10:13 2014	(r356599)
@@ -2,6 +2,10 @@ bin/mha-dbedit
 bin/mha-dbrecover
 bin/mha-decode
 bin/mhonarc
+man/man1/mha-dbedit.1.gz
+man/man1/mha-dbrecover.1.gz
+man/man1/mha-decode.1.gz
+man/man1/mhonarc.1.gz
 %%SITE_PERL%%/MHonArc/Char.pm
 %%SITE_PERL%%/MHonArc/Char/JP.pm
 %%SITE_PERL%%/MHonArc/Char/KR.pm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406050710.s557AEho090281>