Skip to content

Commit

Permalink
audio/picard-plugins: Update to snapshot from 2022-02-14
Browse files Browse the repository at this point in the history
Add DOCS option and install documentation in ${DOCSDIR}.

New plugins:
- submit_isrc (submit ISRCs found in audio files metadata)
Removed plugins:
- videotools (provided formats are non-functional and the is_video()
  and is_audio() functions are part of Picard)

Additional info can be found at: https://picard.musicbrainz.org/plugins/
  • Loading branch information
BSDKaffee committed Feb 25, 2022
1 parent 99b1c25 commit 25dae30
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 241 deletions.
31 changes: 21 additions & 10 deletions audio/picard-plugins/Makefile
@@ -1,5 +1,5 @@
PORTNAME= picard-plugins
PORTVERSION= 2.0.20210413
PORTVERSION= 2.0.20220214
CATEGORIES= audio python

MAINTAINER= jhale@FreeBSD.org
Expand All @@ -8,11 +8,11 @@ COMMENT= Plugins for Picard tagger
LICENSE= GPLv2+ GPLv3+ MIT WTFPL
LICENSE_COMB= multi

USES= python:3.6+
USES= python:3.7+

USE_GITHUB= yes
GH_ACCOUNT= metabrainz
GH_TAGNAME= d859757
GH_TAGNAME= dac5623

PORTSCOUT= limit:^2\.

Expand All @@ -21,7 +21,7 @@ NO_ARCH= yes
BUILD_WRKSRC= ${WRKSRC}/build
PLUGINSDIR= ${PYTHON_SITELIBDIR}/picard/plugins

OPTIONS_DEFINE= BPM MOODBAR
OPTIONS_DEFINE= BPM DOCS MOODBAR
OPTIONS_GROUP= REPLAYGAIN
OPTIONS_GROUP_REPLAYGAIN= FLAC MP3 VORBIS WAVPACK
OPTIONS_SUB= yes
Expand All @@ -46,21 +46,32 @@ do-build:
# be installed into their own subdirectories under PLUGINSDIR. Plugins
# written as a single .py file must be installed directly in PLUGINSDIR.
# We copy them into the correct hierarchy and compile them here.
@${MKDIR} ${BUILD_WRKSRC}
@${MKDIR} ${BUILD_WRKSRC}/plugins
@(cd ${WRKSRC}/plugins; \
for dir in *; \
do \
if [ -f $${dir}/[Rr][Ee][Aa][Dd][Mm][Ee]* ]; \
then ${MKDIR} ${BUILD_WRKSRC}/doc/$${dir}; \
${MV} $${dir}/[Rr][Ee][Aa][Dd][Mm][Ee]* ${BUILD_WRKSRC}/doc/$${dir}; \
fi; \
if [ -d $${dir}/docs ]; \
then ${MKDIR} ${BUILD_WRKSRC}/doc/$${dir}; \
${MV} $${dir}/docs/* ${BUILD_WRKSRC}/doc/$${dir}; \
${RM} -r $${dir}/docs; \
fi; \
if [ -f $${dir}/__init__.py ]; \
then ${CP} -R $${dir} ${BUILD_WRKSRC}; \
else ${CP} -R $${dir}/* ${BUILD_WRKSRC}; \
then ${CP} -R $${dir} ${BUILD_WRKSRC}/plugins; \
else ${CP} -R $${dir}/* ${BUILD_WRKSRC}/plugins; \
fi; \
done;)
${FIND} ${BUILD_WRKSRC} -type f \( -name '.*' -o -name '*.bak' -o -name '*.orig' \) -exec ${RM} {} \;
${PYTHON_CMD} -m compileall ${BUILD_WRKSRC}
${PYTHON_CMD} -O -m compileall ${BUILD_WRKSRC}
${PYTHON_CMD} -m compileall ${BUILD_WRKSRC}/plugins
${PYTHON_CMD} -O -m compileall ${BUILD_WRKSRC}/plugins

do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${BUILD_WRKSRC}/doc; ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${PLUGINSDIR}
(cd ${BUILD_WRKSRC}; ${COPYTREE_SHARE} . ${STAGEDIR}${PLUGINSDIR})
(cd ${BUILD_WRKSRC}/plugins; ${COPYTREE_SHARE} . ${STAGEDIR}${PLUGINSDIR})

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions audio/picard-plugins/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1618333954
SHA256 (metabrainz-picard-plugins-2.0.20210413-d859757_GH0.tar.gz) = a9a7d85e73ec8b1be9d6d09ef74099b474b623b9858c154283ee5cf65629d207
SIZE (metabrainz-picard-plugins-2.0.20210413-d859757_GH0.tar.gz) = 400528
TIMESTAMP = 1645731423
SHA256 (metabrainz-picard-plugins-2.0.20220214-dac5623_GH0.tar.gz) = 35f35e59f5ef3ef70cb151fc285320b65fbe45c8b8667c4c1a563c356e2ab89e
SIZE (metabrainz-picard-plugins-2.0.20220214-dac5623_GH0.tar.gz) = 363511

0 comments on commit 25dae30

Please sign in to comment.