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)
This commit is contained in:
William Grzybowski 2013-12-14 23:18:22 +00:00
parent 32c4cb7bed
commit dbb41ffec9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336498
2 changed files with 8 additions and 72 deletions

View file

@ -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>

View file

@ -1,64 +0,0 @@
%%PYTHON_SITELIBDIR%%/tvgrab/__init__.py
%%PYTHON_SITELIBDIR%%/tvgrab/__init__.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/__init__.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/config_locale.py
%%PYTHON_SITELIBDIR%%/tvgrab/config_locale.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/config_locale.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/customizedparser.py
%%PYTHON_SITELIBDIR%%/tvgrab/customizedparser.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/customizedparser.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/datetime2.py
%%PYTHON_SITELIBDIR%%/tvgrab/datetime2.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/datetime2.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/enum.py
%%PYTHON_SITELIBDIR%%/tvgrab/enum.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/enum.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/grab.py
%%PYTHON_SITELIBDIR%%/tvgrab/grab.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/grab.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/grabexceptions.py
%%PYTHON_SITELIBDIR%%/tvgrab/grabexceptions.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/grabexceptions.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/i18n.py
%%PYTHON_SITELIBDIR%%/tvgrab/i18n.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/i18n.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/message.py
%%PYTHON_SITELIBDIR%%/tvgrab/message.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/message.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/mtgrab.py
%%PYTHON_SITELIBDIR%%/tvgrab/mtgrab.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/mtgrab.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/output.py
%%PYTHON_SITELIBDIR%%/tvgrab/output.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/output.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/prog.py
%%PYTHON_SITELIBDIR%%/tvgrab/prog.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/prog.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/re2.py
%%PYTHON_SITELIBDIR%%/tvgrab/re2.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/re2.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/tag.py
%%PYTHON_SITELIBDIR%%/tvgrab/tag.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/tag.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/tagutils.py
%%PYTHON_SITELIBDIR%%/tvgrab/tagutils.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/tagutils.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/timezone.py
%%PYTHON_SITELIBDIR%%/tvgrab/timezone.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/timezone.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/timezone_test_gen.py
%%PYTHON_SITELIBDIR%%/tvgrab/timezone_test_gen.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/timezone_test_gen.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/unittest2.py
%%PYTHON_SITELIBDIR%%/tvgrab/unittest2.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/unittest2.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/urlutils.py
%%PYTHON_SITELIBDIR%%/tvgrab/urlutils.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/urlutils.pyo
%%PYTHON_SITELIBDIR%%/tvgrab/xmltv.py
%%PYTHON_SITELIBDIR%%/tvgrab/xmltv.pyc
%%PYTHON_SITELIBDIR%%/tvgrab/xmltv.pyo
share/locale/pt_BR/LC_MESSAGES/pytvgrab.mo
@dirrm %%PYTHON_SITELIBDIR%%/tvgrab
@dirrmtry %%PYTHON_SITELIBDIR%%
@dirrmtry %%PYTHON_LIBDIR%%