You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
13 years ago
|
inherit perl-module
|
||
|
|
||
|
DESCRIPTION="Automatic command-line mp3/ogg/flac file tagger and renamer"
|
||
4 years ago
|
HOMEPAGE="http://bgoglin.free.fr/lltag/ https://github.com/bgoglin/lltag"
|
||
|
SRC_URI="https://github.com/bgoglin/lltag/archive/${P}.tar.gz"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="flac mp3 ogg readline"
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
|
dev-perl/libwww-perl
|
||
13 years ago
|
flac? ( media-libs/flac )
|
||
4 years ago
|
mp3? (
|
||
|
dev-perl/MP3-Tag
|
||
|
media-sound/mp3info
|
||
|
)
|
||
|
ogg? ( media-sound/vorbis-tools )
|
||
13 years ago
|
readline? ( dev-perl/Term-ReadLine-Perl )"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
4 years ago
|
S="${WORKDIR}/${PN}-${P}"
|
||
|
|
||
13 years ago
|
pkg_setup() {
|
||
|
mylltagopts=(
|
||
4 years ago
|
DESTDIR="${D}"
|
||
|
PREFIX=/usr
|
||
|
SYSCONFDIR=/etc
|
||
|
MANDIR=/usr/share/man
|
||
|
PERL_INSTALLDIRS=vendor
|
||
|
DOCDIR=/usr/share/doc/${PF}
|
||
|
)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
11 years ago
|
emake "${mylltagopts[@]}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
11 years ago
|
emake "${mylltagopts[@]}" install{,-doc,-man}
|
||
13 years ago
|
dodoc Changes
|
||
10 years ago
|
perl_delete_localpod
|
||
11 years ago
|
# Move config to recommended location
|
||
4 years ago
|
mv "${D}/usr/share/doc/${PF}"/config "${D}"/etc/lltag/ || die
|
||
13 years ago
|
}
|