1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

py-eyed3: fix packaging and support staging

- fix packaging by correcting reversed logic of PORTDOCS installation [1]
- support staging
- general clean-ip
- bump PORTREVISION, because those, who didn't need PORTDOCS, had them installed

Reported by:	mandree [1]
This commit is contained in:
Ruslan Makhmatkhanov 2014-03-02 17:33:38 +00:00
parent 8fdeb94925
commit ccc3187ca4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346784
2 changed files with 6 additions and 12 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= eyed3
PORTVERSION= 0.6.18
PORTREVISION= 1
CATEGORIES= audio python
MASTER_SITES= http://eyed3.nicfit.net/releases/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,18 +17,15 @@ LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:${PORTSDIR}/devel/py-setuptools
USE_PYTHON= 2
NO_STAGE= yes
USE_PYTHON_PREFIX= yes
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ENV= PYTHON="${PYTHON_CMD}"
MAKE_ENV= SETUP_ARGS_BUILD="${PYDISTUTILS_BUILDARGS}" \
SETUP_ARGS_INSTALL="${PYDISTUTILS_INSTALLARGS}" \
SETUP_COMMAND="${PYDISTUTILS_SETUP:S,",\",g}"
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
MAN1= eyeD3.1
MANCOMPRESSED= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= AUTHORS COPYING.gz ChangeLog.gz README
INSTALLS_EGGINFO= yes
PYDISTUTILS_PKGNAME= eyeD3
@ -42,9 +40,9 @@ post-patch:
${WRKSRC}/configure
${REINPLACE_CMD} -e 's,\(setup.py build\),$${SETUP_COMMAND} build $${SETUP_ARGS_BUILD},g' \
-e 's,\(setup.py install\),$${SETUP_COMMAND} install $${SETUP_ARGS_INSTALL} ,g' \
-e 's,^docdir:=.*,docdir:=${DOCSDIR},g' \
-e 's,^docdir:=.*,docdir:=${STAGEDIR}${DOCSDIR},g' \
${WRKSRC}/Makefile.in
.if ${PORT_OPTIONS:MDOCS}
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's,.*docdir.*,#,g' \
${WRKSRC}/Makefile.in
.endif

View File

@ -17,9 +17,5 @@ bin/eyeD3
%%PYTHON_SITELIBDIR%%/eyeD3/utils.py
%%PYTHON_SITELIBDIR%%/eyeD3/utils.pyc
%%PYTHON_SITELIBDIR%%/eyeD3/utils.pyo
man/man1/eyeD3.1.gz
@dirrm %%PYTHON_SITELIBDIR%%/eyeD3
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%