svn commit: r353448 - head/japanese/edict-fpw

Pawel Pekala pawel at FreeBSD.org
Fri May 9 11:56:42 UTC 2014


Author: pawel
Date: Fri May  9 11:56:41 2014
New Revision: 353448
URL: http://svnweb.freebsd.org/changeset/ports/353448
QAT: https://qat.redports.org/buildarchive/r353448/

Log:
  - Add staging support
  - Remove leading article from COMMENT
  - Define DOCS option

Modified:
  head/japanese/edict-fpw/Makefile

Modified: head/japanese/edict-fpw/Makefile
==============================================================================
--- head/japanese/edict-fpw/Makefile	Fri May  9 11:49:43 2014	(r353447)
+++ head/japanese/edict-fpw/Makefile	Fri May  9 11:56:41 2014	(r353448)
@@ -9,23 +9,23 @@ MASTER_SITES=	http://openlab.ring.gr.jp/
 DISTNAME=	${PORTNAME}${PORTVERSION}
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A Japanese <-> English Dictionary (EPWING V1 format)
+COMMENT=	Japanese <-> English Dictionary (EPWING V1 format)
 
 USES=		zip:infozip
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/edict
 EXTRACT_BEFORE_ARGS=	-qL
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	${MKDIR} ${PREFIX}/share/dict/edict-fpw/edict/data
-	${INSTALL_DATA} ${WRKSRC}/edict/data/honmon ${PREFIX}/share/dict/edict-fpw/edict/data
-	${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/edict-fpw
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for i in readme.pkg edict.txt
-	${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/dict/edict-fpw/edict/data
+	${INSTALL_DATA} ${WRKSRC}/edict/data/honmon \
+		${STAGEDIR}${PREFIX}/share/dict/edict-fpw/edict/data
+	${INSTALL_DATA} ${WRKSRC}/catalogs \
+		${STAGEDIR}${PREFIX}/share/dict/edict-fpw
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} readme.pkg edict.txt \
+		${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list