Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions media-sound/beets/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DIST beets-1.3.4.tar.gz 912109 SHA256 5f8f5d11c7892f95e6556c4d72cb2177adc00f45c89bbd91ef0358e08f859ec0 SHA512 b138836445d1f960033a16af95f8b4bb366226d65e3f75e4cadc68d446ac5e1e9911480c74d6b2dfef4ea7858830e548714def2e8d86b06b59822521e8791e50 WHIRLPOOL 79ef8eefacef9f031bbcbf2e55a460aa3bc60a2a33b35cf85440b5373f0e272c637d1e887cbe1e0cdb1e91915062b1cd6740199030d0575a92215b6ce7d6f73a
DIST beets-1.3.5.tar.gz 928014 SHA256 09a463f06c0e0e0609b8e9bd9b8f4567aedd2d4825984379da3eb05daf537ef5 SHA512 c1b85d5d1163801eec82109695300fc3a8d04b4b486b66fb892c6bb274d0dfc58a382d4ca64037b6ce1d7efa686a1fdcadc630a4b00c1d28bbe438b048974a91 WHIRLPOOL eca0f6ae012b1a48c4a81b8b44f4fda61c5b69e428183f885af635a67e367dc94866ce45c524e0ffdb9a8483761dae90733ef786e2db82d33bc8ba9d646e9579
DIST beets-1.3.6.tar.gz 1107280 SHA256 a62160585ce7f4784088db11b5f91d1ae886601e8ba3aab584b11dbbc43e3ce3 SHA512 7a27edcbd7462f527cf3361c69555446130ddd6c0b06bc4628d213008f87446b478084d5e5153d961053c8663b427fe9a50b7ebc65fc07429a101a68e582f3da WHIRLPOOL e5448a576c46b91aa26a31f11e1188cc0f5d8668fd3b91bd8f1ac069f6f73d608c9f0d70c92e8b9e96fadfb10412c7cb686aa8fa8b0470a9f1aee497e5b09598
118 changes: 118 additions & 0 deletions media-sound/beets/beets-1.3.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite"

inherit distutils-r1 eutils

MY_PV=${PV/_beta/-beta.}
MY_P=${PN}-${MY_PV}

DESCRIPTION="A media library management system for obsessive-compulsive music geeks"
SRC_URI="https://github.com/sampsyo/beets/releases/download/v${PV}/${P}.tar.gz"
HOMEPAGE="http://beets.radbox.org/ http://pypi.python.org/pypi/beets"

KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="MIT"
IUSE="bpd chroma convert discogs doc echonest lastgenre mpdstats replaygain test web"

# beatport, bench and echonest_tempo are not listed in the beets plugin docs. Guess they are mandatory.
RDEPEND="
dev-python/munkres[${PYTHON_USEDEP}]
>=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_USEDEP}]
dev-python/unidecode[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.22[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
bpd? ( dev-python/bluelet[${PYTHON_USEDEP}] )
chroma? ( dev-python/pyacoustid[${PYTHON_USEDEP}] )
convert? ( media-video/ffmpeg:0[encode] )
discogs? ( dev-python/discogs-client[${PYTHON_USEDEP}] )
doc? ( dev-python/sphinx )
echonest? ( dev-python/pyechonest[${PYTHON_USEDEP}] )
lastgenre? ( dev-python/pylast[${PYTHON_USEDEP}] )
mpdstats? ( dev-python/python-mpd[${PYTHON_USEDEP}] )
replaygain? ( || ( media-sound/mp3gain media-sound/aacgain ) )
web? ( dev-python/flask[${PYTHON_USEDEP}] )
"

DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

S=${WORKDIR}/${MY_P}

src_prepare() {
# remove plugins that do not have appropriate dependencies installed
for flag in bpd chroma convert discogs echonest lastgenre mpdstats \
replaygain web;do
if ! use $flag ; then
rm -r beetsplug/${flag}.py || \
rm -r beetsplug/${flag}/ ||
die "Unable to remove $flag plugin"
fi
done

if ! use echonest ; then
rm -r beetsplug/echonest_tempo.py || \
die "Unable to fully remove echonest plugin"
fi

for flag in bpd lastgenre web;do
if ! use $flag ; then
sed -i "s:'beetsplug.$flag',::" setup.py || \
die "Unable to disable $flag plugin "
fi
done

use bpd || rm -f test/test_player.py

}

python_compile_all() {
use doc && emake -C docs html
}

python_test() {
cd test
if ! use web;then
rm test_web.py || die "Failed to remove test_web.py"
fi
"${PYTHON}" testall.py || die "Testsuite failed"
}

python_install_all() {
doman man/beet.1 man/beetsconfig.5

use doc && dohtml -r docs/_build/html/
}

pkg_postinst() {
elog "The following plugins has been installed:"
elog " FromFilename Plugin"
elog " Lyrics Plugin"
elog " MBSync Plugin"
elog " FetchArt Plugin"
elog " EmbedArt Plugin"
elog " Scrub Plugin"
elog " Zero Plugin"
elog " FtInTitle Plugin"
elog " Inline Plugin"
elog " Rewrite Plugin"
elog " The Plugin"
elog " MPDUpdate Plugin"
elog " ImportFeeds Plugin"
elog " Smart Playlist Plugin"
elog " Random Plugin"
elog " Fuzzy Search Plugin"
elog " MusicBrainz Collection Plugin"
elog " IHate Plugin"
elog " Info Plugin"
elog " Missing Plugin"
elog " Duplicates Plugin"
elog "The remaining plugins require dependiencies and are USE flag driven."
elog "Learn more about beets plugins at http://beets.readthedocs.org/en/v${PV}/plugins/"
}
124 changes: 124 additions & 0 deletions media-sound/beets/beets-1.3.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite"

inherit distutils-r1 eutils

MY_PV=${PV/_beta/-beta.}
MY_P=${PN}-${MY_PV}

DESCRIPTION="A media library management system for obsessive-compulsive music geeks"
SRC_URI="https://github.com/sampsyo/beets/releases/download/v${PV}/${P}.tar.gz"
HOMEPAGE="http://beets.radbox.org/ http://pypi.python.org/pypi/beets"

KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="MIT"
IUSE="bpd chroma convert discogs doc echonest lastgenre mpdstats replaygain test web"

# beatport, bench and echonest_tempo are not listed in the beets plugin docs. Guess they are mandatory.
RDEPEND="
dev-python/munkres[${PYTHON_USEDEP}]
>=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_USEDEP}]
dev-python/unidecode[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.22[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/enum34[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
bpd? ( dev-python/bluelet[${PYTHON_USEDEP}] )
chroma? ( dev-python/pyacoustid[${PYTHON_USEDEP}] )
convert? ( media-video/ffmpeg:0[encode] )
discogs? ( dev-python/discogs-client[${PYTHON_USEDEP}] )
doc? ( dev-python/sphinx )
echonest? ( dev-python/pyechonest[${PYTHON_USEDEP}] )
lastgenre? ( dev-python/pylast[${PYTHON_USEDEP}] )
mpdstats? ( dev-python/python-mpd[${PYTHON_USEDEP}] )
replaygain? (
media-libs/gstreamer:1.0
|| ( media-sound/mp3gain media-sound/aacgain )
)
web? ( dev-python/flask[${PYTHON_USEDEP}] )
"

DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

S=${WORKDIR}/${MY_P}

src_prepare() {
# remove plugins that do not have appropriate dependencies installed
for flag in bpd chroma convert discogs echonest lastgenre mpdstats \
replaygain web;do
if ! use $flag ; then
rm -r beetsplug/${flag}.py || \
rm -r beetsplug/${flag}/ ||
die "Unable to remove $flag plugin"
fi
done

if ! use echonest ; then
rm -r beetsplug/echonest_tempo.py || \
die "Unable to fully remove echonest plugin"
fi

for flag in bpd lastgenre web;do
if ! use $flag ; then
sed -i "s:'beetsplug.$flag',::" setup.py || \
die "Unable to disable $flag plugin "
fi
done

use bpd || rm -f test/test_player.py

}

python_compile_all() {
use doc && emake -C docs html
}

python_test() {
cd test
if ! use web;then
rm test_web.py || die "Failed to remove test_web.py"
fi
"${PYTHON}" testall.py || die "Testsuite failed"
}

python_install_all() {
doman man/beet.1 man/beetsconfig.5

use doc && dohtml -r docs/_build/html/
}

pkg_postinst() {
elog "The following plugins has been installed:"
elog " FromFilename Plugin"
elog " Lyrics Plugin"
elog " MBSync Plugin"
elog " FetchArt Plugin"
elog " EmbedArt Plugin"
elog " Scrub Plugin"
elog " Zero Plugin"
elog " FtInTitle Plugin"
elog " Key Finder Plugin"
elog " Inline Plugin"
elog " Rewrite Plugin"
elog " The Plugin"
elog " MPDUpdate Plugin"
elog " ImportFeeds Plugin"
elog " Smart Playlist Plugin"
elog " Random Plugin"
elog " Fuzzy Search Plugin"
elog " MusicBrainz Collection Plugin"
elog " IHate Plugin"
elog " Info Plugin"
elog " Missing Plugin"
elog " Duplicates Plugin"
elog "The remaining plugins require dependiencies and are USE flag driven."
elog "Learn more about beets plugins at http://beets.readthedocs.org/en/v${PV}/plugins/"
}

109 changes: 109 additions & 0 deletions media-sound/beets/beets-1.3.6.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite"

inherit bash-completion-r1 distutils-r1 eutils

MY_PV=${PV/_beta/-beta.}
MY_P=${PN}-${MY_PV}

DESCRIPTION="A media library management system for obsessive-compulsive music geeks"
SRC_URI="https://github.com/sampsyo/beets/releases/download/v${PV}/${P}.tar.gz"
HOMEPAGE="http://beets.radbox.org/ http://pypi.python.org/pypi/beets"

KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="MIT"
IUSE="bpd chroma convert discogs doc echonest info lastgenre mpdstats replaygain test web"

# beatport and bench are not listed in the beets plugin docs, I guess they are mandatory.
# echonest_tempo is a deprecated version of echonest.
RDEPEND="
dev-python/munkres[${PYTHON_USEDEP}]
>=dev-python/python-musicbrainz-ngs-0.4[${PYTHON_USEDEP}]
dev-python/unidecode[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.22[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/enum34[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
bpd? ( dev-python/bluelet[${PYTHON_USEDEP}] )
chroma? ( dev-python/pyacoustid[${PYTHON_USEDEP}] )
convert? ( media-video/ffmpeg:0[encode] )
discogs? ( dev-python/discogs-client[${PYTHON_USEDEP}] )
doc? ( dev-python/sphinx )
echonest? ( dev-python/pyechonest[${PYTHON_USEDEP}] )
info? ( || ( media-sound/id3v2 media-sound/mp3info ) )
lastgenre? ( dev-python/pylast[${PYTHON_USEDEP}] )
mpdstats? ( dev-python/python-mpd[${PYTHON_USEDEP}] )
replaygain? (
dev-python/gst-python:1.0
media-plugins/gst-plugins-mad:1.0
media-libs/gst-plugins-good:1.0
)
web? ( dev-python/flask[${PYTHON_USEDEP}] )
"

DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"

S=${WORKDIR}/${MY_P}

src_prepare() {
# remove plugins that do not have appropriate dependencies installed
for flag in bpd chroma convert discogs echonest info lastgenre mpdstats \
replaygain web;do
if ! use $flag ; then
rm -r beetsplug/${flag}.py || \
rm -r beetsplug/${flag}/ ||
die "Unable to remove $flag plugin"
fi
done

if ! use echonest ; then
rm -r beetsplug/echonest_tempo.py || \
die "Unable to fully remove echonest plugin"
fi

for flag in bpd lastgenre web;do
if ! use $flag ; then
sed -i "s:'beetsplug.$flag',::" setup.py || \
die "Unable to disable $flag plugin "
fi
done

use bpd || rm -f test/test_player.py

}

python_compile_all() {
use doc && emake -C docs html
}

python_test() {
cd test
if ! use web;then
rm test_web.py || die "Failed to remove test_web.py"
fi
"${PYTHON}" testall.py || die "Testsuite failed"
}

python_install_all() {
doman man/beet.1 man/beetsconfig.5

use doc && dohtml -r docs/_build/html/

distutils-r1_python_install_all

newbashcomp "${PN}/ui/completion_base.sh" ${PN}
}

pkg_postinst() {
elog "The following plugins has been installed without extra dependencies:"
elog "FromFilename, Lyrics, MBSync, FetchArt, EmbedArt, Scrub, Zero, FtInTitle, Key Finder, Inline, Rewrite, The, Bucket, MPDUpdate, ImportFeeds, Smart Playlist, Play, Random, Fuzzy Search, MusicBrainz Collection, IHate, Missing, Duplicates"
elog "The remaining plugins require dependiencies and are USE flag driven."
elog "Learn more about beets plugins at http://beets.readthedocs.org/en/v${PV}/plugins/"
}