diff -Naur /usr/ports/audio/py-musicbrainz/Makefile py-musicbrainz/Makefile --- /usr/ports/audio/py-musicbrainz/Makefile Tue Jun 22 19:20:11 2004 +++ py-musicbrainz/Makefile Thu Jul 22 20:01:45 2004 @@ -6,33 +6,47 @@ # PORTNAME= musicbrainz -PORTVERSION= 1.0 -PORTREVISION= 2 +PORTVERSION= 1.0.b1 +PORTEPOCH= 1 CATEGORIES= audio python -MASTER_SITES= # none +MASTER_SITES= http://icepick.info/projects/python-musicbrainz/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTFILES= # none +DISTNAME= python-${PORTNAME}-${PORTVERSION} MAINTAINER= knu@FreeBSD.org COMMENT= MusicBrainz bindings for Python -EXTRACT_DEPENDS= ${NONEXISTENT}:${LIBMUSICBRAINZ_PORTDIR}:patch +BUILD_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes +RUN_DEPENDS= ${BUILD_DEPENDS} LIB_DEPENDS= musicbrainz.4:${LIBMUSICBRAINZ_PORTDIR} LIBMUSICBRAINZ_PORTDIR= ${PORTSDIR}/audio/libmusicbrainz +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} +EXAMPLES= cd2trm.py findartist.py getcdtracklengths.py cdid.py \ + findtrack.py gettrm.py cdlookup.py generatetrm.py \ + fileinfolookup.py getalbum.py USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib -IGNORE= Distfile needs to catch up with libmusicbrainz -DEPRECATED= ${IGNORE} -EXPIRATION_DATE=2004-08-20 +PLIST_FILES= %%PYTHON_SITELIBDIR%%/musicbrainz.py \ + %%PYTHON_SITELIBDIR%%/musicbrainz.pyc \ + %%PYTHON_SITELIBDIR%%/musicbrainz.pyo + +.ifndef(NOPORTDOCS) +.for i in ${EXAMPLES} +PLIST_FILES+=%%EXAMPLESDIR%%/${i} +.endfor +PLIST_DIRS= %%EXAMPLESDIR%% +.endif + +post-install: +.ifndef(NOPORTDOCS) + ${MKDIR} ${EXAMPLESDIR} +.for i in ${EXAMPLES} + ${INSTALL_SCRIPT} ${WRKSRC}/examples/${i} ${EXAMPLESDIR} +.endfor +.endif -.include <bsd.port.pre.mk> - -do-extract: - ${MKDIR} ${WRKDIR} - ${LN} -fs `cd ${LIBMUSICBRAINZ_PORTDIR}; ${MAKE} -V WRKSRC`/python ${WRKSRC} - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff -Naur /usr/ports/audio/py-musicbrainz/distinfo py-musicbrainz/distinfo --- /usr/ports/audio/py-musicbrainz/distinfo Mon Mar 24 03:47:16 2003 +++ py-musicbrainz/distinfo Wed Jul 21 22:23:52 2004 @@ -1 +1,2 @@ -MD5 (pyvorbis-1.0.tar.gz) = 158e38785543f2d945e20f67f77299b9 +MD5 (python-musicbrainz-1.0b1.tar.gz) = 8f07d75e67f3b2f1de89327126c0f418 +SIZE (python-musicbrainz-1.0b1.tar.gz) = 21029 diff -Naur /usr/ports/audio/py-musicbrainz/pkg-plist py-musicbrainz/pkg-plist --- /usr/ports/audio/py-musicbrainz/pkg-plist Mon Mar 24 03:47:16 2003 +++ py-musicbrainz/pkg-plist Thu Jan 1 01:00:00 1970 @@ -1,8 +0,0 @@ -%%PYTHON_SITELIBDIR%%/musicbrainz/__init__.py -%%PYTHON_SITELIBDIR%%/musicbrainz/__init__.pyc -%%PYTHON_SITELIBDIR%%/musicbrainz/__init__.pyo -%%PYTHON_SITELIBDIR%%/musicbrainz/_musicbrainz.so -%%PYTHON_SITELIBDIR%%/musicbrainz/queries.py -%%PYTHON_SITELIBDIR%%/musicbrainz/queries.pyc -%%PYTHON_SITELIBDIR%%/musicbrainz/queries.pyo -@dirrm %%PYTHON_SITELIBDIR%%/musicbrainz