blob: ff55159673202a23f458abd3474271c06026fb48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: py-musicbrainz
# Date created: 23 March 2003
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= musicbrainz
PORTVERSION= 2.1.5
PORTEPOCH= 1
CATEGORIES= audio python
MASTER_SITES= ftp://ftp.musicbrainz.org/pub/musicbrainz/ \
http://uk.musicbrainz.org/pub/musicbrainz/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= libmusicbrainz-${PORTVERSION}
MAINTAINER= bsdkaffee@gmail.com
COMMENT= MusicBrainz bindings for Python
BUILD_DEPENDS= ${PYCTYPES}
RUN_DEPENDS= ${PYCTYPES}
LIB_DEPENDS= musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
EXAMPLES= cd2trm.py cdid.py cdlookup.py fileinfolookup.py findartist.py \
findtrack.py generatetrm.py getalbum.py getcdtracklengths.py \
gettrm.py
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python-musicbrainz
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
DESCR= ${PORTSDIR}/audio/libmusicbrainz/pkg-descr
MD5_FILE= ${PORTSDIR}/audio/libmusicbrainz/distinfo
PLIST_FILES= %%PYTHON_SITELIBDIR%%/musicbrainz.py \
%%PYTHON_SITELIBDIR%%/musicbrainz.pyc \
%%PYTHON_SITELIBDIR%%/musicbrainz.pyo
.ifndef(NOPORTDOCS)
PLIST_FILES+= ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
.endif
WRKSRC= ${WRKDIR}/libmusicbrainz-${PORTVERSION}/python
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_SCRIPT} ${EXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
|