Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2014 13:59:05 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358802 - head/devel/py-tconfpy
Message-ID:  <201406221359.s5MDx5PM065544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Sun Jun 22 13:59:05 2014
New Revision: 358802
URL: http://svnweb.freebsd.org/changeset/ports/358802
QAT: https://qat.redports.org/buildarchive/r358802/

Log:
  devel/py-tconfpy: support stage
  
  - Use PYDISTUTILS instead of makefile
  - Define DOCS option
  - Use auto plist

Modified:
  head/devel/py-tconfpy/Makefile
  head/devel/py-tconfpy/pkg-plist

Modified: head/devel/py-tconfpy/Makefile
==============================================================================
--- head/devel/py-tconfpy/Makefile	Sun Jun 22 13:39:24 2014	(r358801)
+++ head/devel/py-tconfpy/Makefile	Sun Jun 22 13:59:05 2014	(r358802)
@@ -12,27 +12,17 @@ MAINTAINER=	tconfpy@tundraware.com
 COMMENT=	Python Configuration File Parser
 
 USE_PYTHON=	yes
-INSTALLS_EGGINFO=	yes
-PYDISTUTILS_PKGNAME=	tconfpy
-PYDISTUTILS_PKGVERSION=	0.0.0
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
-MANCOMPRESSED=	yes
-MAN1=		test-tc.1
-MAN3=		tconfpy.3
-PORTDOCS=	READ-1ST.txt WHATSNEW.txt tconfpy-license.txt tconfpy.html tconfpy.pdf tconfpy.ps tconfpy.txt test-tc.html test-tc.pdf test-tc.ps test-tc.txt
-
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|python setup.py|${PYTHON_CMD} setup.py|' \
-		${WRKSRC}/Makefile
+PORTDOCS=	READ-1ST.txt WHATSNEW.txt tconfpy-license.txt tconfpy.html tconfpy.pdf tconfpy.ps tconfpy.txt test-tc.html test-tc.pdf test-tc.ps test-tc.txt
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/test-tc.1.gz ${STAGEDIR}${PREFIX}/man/man1/
+	${INSTALL_MAN} ${WRKSRC}/tconfpy.3.gz ${STAGEDIR}${PREFIX}/man/man3/
 
 .include <bsd.port.mk>

Modified: head/devel/py-tconfpy/pkg-plist
==============================================================================
--- head/devel/py-tconfpy/pkg-plist	Sun Jun 22 13:39:24 2014	(r358801)
+++ head/devel/py-tconfpy/pkg-plist	Sun Jun 22 13:59:05 2014	(r358802)
@@ -1,3 +1,2 @@
-bin/test-tc.py
-%%PYTHON_SITELIBDIR%%/tconfpy.py
-%%PYTHON_SITELIBDIR%%/tconfpy.pyc
+man/man1/test-tc.1.gz
+man/man3/tconfpy.3.gz



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