mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# Created by: Hye-Shik Chang <perky@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= eyed3
|
|
PORTVERSION= 0.6.18
|
|
CATEGORIES= audio python
|
|
MASTER_SITES= http://eyed3.nicfit.net/releases/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= eyeD3-${PORTVERSION}
|
|
|
|
MAINTAINER= rm@FreeBSD.org
|
|
COMMENT= Python module for processing ID3 tags
|
|
|
|
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
|
|
|
|
INSTALLS_EGGINFO= yes
|
|
PYDISTUTILS_PKGNAME= eyeD3
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,PYTHON="",,g' -e 's,/usr/local,${LOCALBASE},g' \
|
|
-e 's,2\\\.\[23456789\]\\\.,2.[23456789],g' \
|
|
${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' \
|
|
${WRKSRC}/Makefile.in
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${REINPLACE_CMD} -e 's,.*docdir.*,#,g' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|