svn commit: r354327 - head/japanese/srd-fpw-package

Pawel Pekala pawel at FreeBSD.org
Sat May 17 15:35:37 UTC 2014


Author: pawel
Date: Sat May 17 15:35:36 2014
New Revision: 354327
URL: http://svnweb.freebsd.org/changeset/ports/354327
QAT: https://qat.redports.org/buildarchive/r354327/

Log:
  - Add staging support
  - Convert to new options framework
  - Switch to PLIST_FILES
  - Remove leading article from COMMENT

Deleted:
  head/japanese/srd-fpw-package/pkg-plist
Modified:
  head/japanese/srd-fpw-package/Makefile

Modified: head/japanese/srd-fpw-package/Makefile
==============================================================================
--- head/japanese/srd-fpw-package/Makefile	Sat May 17 15:34:01 2014	(r354326)
+++ head/japanese/srd-fpw-package/Makefile	Sat May 17 15:35:36 2014	(r354327)
@@ -8,28 +8,29 @@ CATEGORIES=	japanese elisp
 MASTER_SITES=	http://openlab.ring.gr.jp/edict/fpw/dist/srd/
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A supplement file for lookup to use "Random House"
+COMMENT=	Supplement file for lookup to use "Random House"
 
 RUN_DEPENDS=	display:${PORTSDIR}/graphics/ImageMagick
 # Your PC does not have an audio card always.
 #		realplay:${PORTSDIR}/multimedia/linux-realplayer
 
 NO_BUILD=	yes
-PLIST_SUB=	PKGNAME=${PKGNAME}
 USES=		perl5
 
-PKG_DIR=	${PREFIX}/share/dict/lookup-package
+PKG_DIR=	${STAGEDIR}${PREFIX}/share/dict/lookup-package
+
+PLIST_FILES=	share/dict/lookup-package/srd-fpw.el \
+		share/dict/lookup-package/extract-srd.pl
+PLIST_DIRS=	share/dict/lookup-package
+PORTDOCS=	ChangeLog README.TXT
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 do-install:
-	${MKDIR} ${PKG_DIR}
+	@${MKDIR} ${PKG_DIR}
 	${INSTALL_DATA} ${WRKSRC}/srd-fpw.el ${PKG_DIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/extract-srd.pl ${PKG_DIR}
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for file in ChangeLog README.TXT
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA}	${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list