1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- USE_PYTHON -> USES=python

- Add LICENSE_FILE
- Strip binaries
- Use options helpers
- Add USES=desktop-file-utils per stage-qa
- Bump PORTREVISION since d-f-u changes RUN_DEPENDS and plist
This commit is contained in:
Jason E. Hale 2014-08-16 16:01:51 +00:00
parent 715cf897de
commit f322351990
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365096

View File

@ -3,6 +3,7 @@
PORTNAME= picard PORTNAME= picard
PORTVERSION= 1.2 PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= audio python CATEGORIES= audio python
MASTER_SITES= http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \ MASTER_SITES= http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/ \ ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
@ -12,6 +13,7 @@ MAINTAINER= jhale@FreeBSD.org
COMMENT= Next generation MusicBrainz Tagger COMMENT= Next generation MusicBrainz Tagger
LICENSE= GPLv2 LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LIB_DEPENDS= libdiscid.so:${PORTSDIR}/audio/libdiscid LIB_DEPENDS= libdiscid.so:${PORTSDIR}/audio/libdiscid
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \
@ -20,28 +22,20 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \
${PYTHON_PKGNAMEPREFIX}qt4-network>=0:${PORTSDIR}/net/py-qt4-network \ ${PYTHON_PKGNAMEPREFIX}qt4-network>=0:${PORTSDIR}/net/py-qt4-network \
${PYTHON_PKGNAMEPREFIX}qt4-xml>=0:${PORTSDIR}/textproc/py-qt4-xml ${PYTHON_PKGNAMEPREFIX}qt4-xml>=0:${PORTSDIR}/textproc/py-qt4-xml
USES= gettext USES= gettext python:2 desktop-file-utils
USE_PYTHON= 2 PYTHON_FEATURES=distutils
USE_PYDISTUTILS=yes
INSTALLS_ICONS= yes INSTALLS_ICONS= yes
OPTIONS_DEFINE= ACOUSTID REPLAYGAIN OPTIONS_DEFINE= ACOUSTID REPLAYGAIN
ACOUSTID_DESC= AcoustID audio fingerprinting support ACOUSTID_DESC= AcoustID audio fingerprinting support
REPLAYGAIN_DESC=ReplayGain audio normalization support ACOUSTID_RUN_DEPENDS= fpcalc:${PORTSDIR}/audio/chromaprint
.include <bsd.port.options.mk> REPLAYGAIN_DESC= ReplayGain audio normalization support
REPLAYGAIN_RUN_DEPENDS= metaflac:${PORTSDIR}/audio/flac \
.if ${PORT_OPTIONS:MACOUSTID}
RUN_DEPENDS+= fpcalc:${PORTSDIR}/audio/chromaprint
.endif
.if ${PORT_OPTIONS:MREPLAYGAIN}
RUN_DEPENDS+= metaflac:${PORTSDIR}/audio/flac \
mp3gain:${PORTSDIR}/audio/mp3gain \ mp3gain:${PORTSDIR}/audio/mp3gain \
vorbisgain:${PORTSDIR}/audio/vorbisgain \ vorbisgain:${PORTSDIR}/audio/vorbisgain \
wvgain:${PORTSDIR}/audio/wavpack wvgain:${PORTSDIR}/audio/wavpack
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e "s|'picard.plugins',|'picard.plugins', 'picard.plugins.lastfm', 'picard.plugins.lastfmplus', 'picard.plugins.replaygain',|" \ @${REINPLACE_CMD} -e "s|'picard.plugins',|'picard.plugins', 'picard.plugins.lastfm', 'picard.plugins.lastfmplus', 'picard.plugins.replaygain',|" \
@ -49,4 +43,7 @@ post-patch:
${WRKSRC}/setup.py ${WRKSRC}/setup.py
@${CP} -R ${WRKSRC}/contrib/plugins/ ${WRKSRC}/picard/plugins @${CP} -R ${WRKSRC}/contrib/plugins/ ${WRKSRC}/picard/plugins
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/picard/util/astrcmp.so
.include <bsd.port.mk> .include <bsd.port.mk>