mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 22:01:11 +02:00
new picard ebuild with added useflag
This commit is contained in:
parent
4c7620ca2a
commit
5bf2dc655b
3 changed files with 93 additions and 8 deletions
|
|
@ -1,4 +1,6 @@
|
|||
DIST coverart.py 6476 RMD160 20401b82e0a8a55d38d2451ef3c7ba32c0a0981c SHA1 5a4787842979c66f645b7aa9f94427c4cb869596 SHA256 51f0c657f8877b449d9529d4883a6deaf68a05f78872e81832a4d7a2f559859a
|
||||
DIST picard-0.12.1.tar.gz 1361157 RMD160 9d91e53f6ea0fd4c4a25bd1dbd8036a413971aef SHA1 965412de954d2a73487a1332b49ac7725e719f0c SHA256 7ffb28a47b610c45cfd972eacbb65c95a224aeaed0750d57c61a47d29f9a8183
|
||||
EBUILD picard-0.12.1.ebuild 2131 RMD160 42989576072ef9d9f8b4b23863b7f1a0829856f1 SHA1 260d9918cd6036bf514c3ff8d616cf13ce83c77f SHA256 5a81d244c8a8d97bba4f9b58d598344348ad74c87ddd6ff81b0e0d779c716432
|
||||
EBUILD picard-0.12.1-r1.ebuild 2548 RMD160 e78415ca8e0e1221f634e1709b1b756e7209dc4a SHA1 3e42955a84b95f4cc840d82bbfa656c604893a0a SHA256 c01fab6d6c625db22eb582a7a39d81afc6fc07cc31923a5fc51c56b4b64dc63f
|
||||
EBUILD picard-0.12.1.ebuild 2128 RMD160 754f306609609e391d12eccb3663271bf0fc5623 SHA1 edf4328a2f3659135cdad0524cde6e01022f9499 SHA256 f3c269483cefd6ea8d266a5ed5e934372531829491c87d9b3eec46f313e34068
|
||||
MISC ChangeLog 3661 RMD160 16a00120c84a68236206de12c5547a3c19ea52a3 SHA1 76fc529960a07b7a682bf3fa6966b306cafb967d SHA256 8fa54fcc049b490b3e4dc7b8bde978d6fa5138ee19a0ffe2fd46dfd5f854ac4f
|
||||
MISC metadata.xml 616 RMD160 6bd96d66533a76c240081842407f1a671d2d767d SHA1 6c0fe6eed91152e91502503e902fb6ca0881e57b SHA256 074c40346934b7915bfd0851546a7ea381197ee1d847dd24e284f6448822fd73
|
||||
|
|
|
|||
85
media-sound/picard/picard-0.12.1-r1.ebuild
Normal file
85
media-sound/picard/picard-0.12.1-r1.ebuild
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.12.1.ebuild,v 1.1 2009/11/17 23:35:31 yngwin Exp $
|
||||
|
||||
EAPI="2"
|
||||
inherit distutils
|
||||
|
||||
MY_P="${P/_/}"
|
||||
DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
|
||||
HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
|
||||
SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz
|
||||
coverart? ( http://users.musicbrainz.org/~outsidecontext/picard/plugins/coverart.py )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cdda ffmpeg nls +coverart"
|
||||
|
||||
DEPEND="|| ( >=dev-lang/python-2.5
|
||||
( dev-lang/python:2.4[cxx] =dev-python/ctypes-0.9 ) )
|
||||
dev-python/PyQt4[X]
|
||||
media-libs/mutagen
|
||||
cdda? ( >=media-libs/libdiscid-0.1.1 )
|
||||
ffmpeg? ( media-video/ffmpeg
|
||||
>=media-libs/libofa-0.9.2 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
if ! use ffmpeg; then
|
||||
ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
|
||||
ewarn "recognition will not be available."
|
||||
fi
|
||||
if ! use cdda; then
|
||||
ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
|
||||
ewarn "identification will not be available. You can get audio CD support"
|
||||
ewarn "by installing media-libs/libdiscid."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use coverart; then
|
||||
cp ${DISTDIR}/coverart.py ${S}/picard/plugins/coverart.py || die "Copy of coverart plugin failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
${python} setup.py config || die "setup.py config failed"
|
||||
if ! use ffmpeg; then
|
||||
sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
|
||||
-e "s:\(^with-libofa\ =\ \).*:\1False:" \
|
||||
build.cfg || die "sed failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
${python} setup.py build $(use nls || echo "--disable-locales") \
|
||||
|| die "setup.py build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install --disable-autoupdate --skip-build \
|
||||
$(use nls || echo "--disable-locales")
|
||||
|
||||
doicon picard.ico || die 'doicon failed'
|
||||
domenu picard.desktop || die 'domenu failed'
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
echo
|
||||
ewarn "If you are upgrading Picard and it does not start"
|
||||
ewarn "try removing Picard's settings:"
|
||||
ewarn " rm ~/.config/MusicBrainz/Picard.conf"
|
||||
elog
|
||||
elog "You should set the environment variable BROWSER to something like"
|
||||
elog "\"firefox '%s' &\" to let python know which browser to use."
|
||||
if use coverart; then
|
||||
ewarn "You have downloaded and installed the coverart downloader plugin."
|
||||
ewarn "If you expect it to work please enable it in Options->Plugins."
|
||||
fi
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.11.ebuild,v 1.4 2009/07/22 15:59:44 ssuominen Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.12.1.ebuild,v 1.1 2009/11/17 23:35:31 yngwin Exp $
|
||||
|
||||
EAPI="2"
|
||||
inherit distutils
|
||||
|
|
@ -12,19 +12,17 @@ SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz"
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cdda ffmpeg nls"
|
||||
|
||||
RDEPEND="|| (
|
||||
>=dev-lang/python-2.5
|
||||
( dev-lang/python:2.4[cxx] =dev-python/ctypes-0.9 )
|
||||
)
|
||||
DEPEND="|| ( >=dev-lang/python-2.5
|
||||
( dev-lang/python:2.4[cxx] =dev-python/ctypes-0.9 ) )
|
||||
dev-python/PyQt4[X]
|
||||
media-libs/mutagen
|
||||
cdda? ( >=media-libs/libdiscid-0.1.1 )
|
||||
ffmpeg? ( media-video/ffmpeg
|
||||
>=media-libs/libofa-0.9.2 )"
|
||||
DEPEND="${RDEPEND}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue