Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2013 23:18:23 +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: r336498 - head/textproc/py-tvgrab
Message-ID:  <201312142318.rBENIN11007805@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Sat Dec 14 23:18:22 2013
New Revision: 336498
URL: http://svnweb.freebsd.org/changeset/ports/336498

Log:
  textproc/py-tvgrab: fix usage of python and stagify
  
  - Fix usage of python
  - Trim COMMENT
  - Use python auto plist
  - Allow staging
  
  Reported by:	exp-run (PR 184591)

Deleted:
  head/textproc/py-tvgrab/pkg-plist
Modified:
  head/textproc/py-tvgrab/Makefile

Modified: head/textproc/py-tvgrab/Makefile
==============================================================================
--- head/textproc/py-tvgrab/Makefile	Sat Dec 14 23:14:13 2013	(r336497)
+++ head/textproc/py-tvgrab/Makefile	Sat Dec 14 23:18:22 2013	(r336498)
@@ -10,25 +10,25 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	pytvgrab-lib-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A xmltv python library to write grabbers of tv scheduling collections
+COMMENT=	Library to write grabbers of tv scheduling collections
 
 EXTRACT_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=1.4:${PORTSDIR}/devel/py-dateutil:extract
 
 USE_BZIP2=		yes
-USE_PYTHON=		yes
+USE_PYTHON=		2
 USE_PYDISTUTILS=	yes
-PYDISTUTILS_PKGNAME=	pytvgrab_lib
+PYDISTUTILS_AUTOPLIST=	yes
 
 PORTDOCS=	README
 
-NO_STAGE=	yes
 post-extract:
 	@${CP} ${FILESDIR}/timezone.py ${WRKSRC}/lib/timezone.py
 
+post-patch:
+	@${REINPLACE_CMD} -e 's,python -c,${PYTHON_CMD} -c,' ${WRKSRC}/setup.py
+
 post-install:
-.ifndef(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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