blob: 044fc9a8efc0fb8beb03c9e4d41a959347ccfedf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="2"
inherit python toolchain-funcs
DESCRIPTION="Command-line ape 2.0 tagger"
HOMEPAGE="http://muth.org/Robert/Apetag/"
SRC_URI="http://muth.org/Robert/Apetag/${PN}.${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S=${WORKDIR}/Apetag
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
sed -i \
-e 's:CXXDEBUG:LDFLAGS:' \
Makefile || die
python_convert_shebangs -r 2 .
}
src_compile() {
tc-export CXX
emake \
CXXFLAGS="${CXXFLAGS} -Wall -pedantic" \
LDFLAGS="${LDFLAGS}" || die
}
src_install() {
dobin ${PN} || die
local sitedir="$(python_get_sitedir)"/${PN}
exeinto ${sitedir}
doexe *.py || die
local x
for x in {rmid3tag,tagdir}.py; do
ln -s "${sitedir}"/${x} "${D}"/usr/bin/${x} || die
done
dodoc 00readme
}
pkg_postinst() {
python_mod_optimize apetag
}
pkg_postrm() {
python_mod_cleanup apetag
}
|