svn commit: r337616 - head/textproc/coccigrep

Pawel Pekala pawel at FreeBSD.org
Thu Dec 26 21:37:51 UTC 2013


Author: pawel
Date: Thu Dec 26 21:37:51 2013
New Revision: 337616
URL: http://svnweb.freebsd.org/changeset/ports/337616

Log:
  - Don't use easy_install for build/install
  - Use auto generated plist
  - Support staging

Deleted:
  head/textproc/coccigrep/pkg-plist
Modified:
  head/textproc/coccigrep/Makefile   (contents, props changed)

Modified: head/textproc/coccigrep/Makefile
==============================================================================
--- head/textproc/coccigrep/Makefile	Thu Dec 26 21:14:23 2013	(r337615)
+++ head/textproc/coccigrep/Makefile	Thu Dec 26 21:37:51 2013	(r337616)
@@ -3,6 +3,7 @@
 
 PORTNAME=	coccigrep
 PORTVERSION=	1.12
+PORTREVISION=	1
 CATEGORIES=	textproc
 
 MAINTAINER=	pawel at FreeBSD.org
@@ -18,27 +19,23 @@ GH_TAGNAME=	v${PORTVERSION}
 GH_COMMIT=	5ca9276
 
 USE_PYTHON=	yes
-USE_PYDISTUTILS=easy_install
-MANCOMPRESSED=	no
+USE_PYDISTUTILS=yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-MAN1=		coccigrep.1
+PLIST_FILES=	man/man1/coccigrep.1.gz \
+		${DATADIR_REL}/cocci-grep.el \
+		${DATADIR_REL}/cocci-grep.vim
+PLIST_DIRS=	${DATADIR_REL}
 PORTDOCS=	ChangeLog README.rst
 
 OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/coccigrep.1 ${MANPREFIX}/man/man1
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.el ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.vim ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.rst ${DOCSDIR}
-.endif
+	${INSTALL_MAN} ${WRKSRC}/coccigrep.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.el ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.vim ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list