Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2013 21:37:51 +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: r337616 - head/textproc/coccigrep
Message-ID:  <201312262137.rBQLbprw086883@svn.freebsd.org>

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



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