Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 15:35:36 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r354327 - head/japanese/srd-fpw-package
Message-ID:  <201405171535.s4HFZaFx062742@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



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