Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/apetag: ChangeLog apetag-1.12.ebuild
Date: Mon, 23 Aug 2010 17:45:11
Message-Id: 20100823174505.8DE522004E@flycatcher.gentoo.org
1 ssuominen 10/08/23 17:45:05
2
3 Modified: ChangeLog apetag-1.12.ebuild
4 Log:
5 Install to python sitedir and comform more to python.eclass wrt #313933.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.10 media-sound/apetag/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/ChangeLog?rev=1.10&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/ChangeLog?rev=1.10&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/ChangeLog?r1=1.9&r2=1.10
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/media-sound/apetag/ChangeLog,v
18 retrieving revision 1.9
19 retrieving revision 1.10
20 diff -u -r1.9 -r1.10
21 --- ChangeLog 8 May 2009 16:16:54 -0000 1.9
22 +++ ChangeLog 23 Aug 2010 17:45:05 -0000 1.10
23 @@ -1,6 +1,9 @@
24 # ChangeLog for media-sound/apetag
25 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/media-sound/apetag/ChangeLog,v 1.9 2009/05/08 16:16:54 ssuominen Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/apetag/ChangeLog,v 1.10 2010/08/23 17:45:05 ssuominen Exp $
29 +
30 + 23 Aug 2010; Samuli Suominen <ssuominen@g.o> apetag-1.12.ebuild:
31 + Install to python sitedir and comform more to python.eclass wrt #313933.
32
33 08 May 2009; Samuli Suominen <ssuominen@g.o> apetag-1.12.ebuild:
34 Remove -Werror from build.
35
36
37
38 1.4 media-sound/apetag/apetag-1.12.ebuild
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild?rev=1.4&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild?rev=1.4&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild?r1=1.3&r2=1.4
43
44 Index: apetag-1.12.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild,v
47 retrieving revision 1.3
48 retrieving revision 1.4
49 diff -u -r1.3 -r1.4
50 --- apetag-1.12.ebuild 8 May 2009 18:23:31 -0000 1.3
51 +++ apetag-1.12.ebuild 23 Aug 2010 17:45:05 -0000 1.4
52 @@ -1,9 +1,12 @@
53 -# Copyright 1999-2009 Gentoo Foundation
54 +# Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild,v 1.3 2009/05/08 18:23:31 ssuominen Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/media-sound/apetag/apetag-1.12.ebuild,v 1.4 2010/08/23 17:45:05 ssuominen Exp $
58
59 -EAPI=2
60 -inherit toolchain-funcs
61 +EAPI=3
62 +
63 +PYTHON_DEPEND="2"
64 +
65 +inherit python toolchain-funcs
66
67 DESCRIPTION="Command-line ape 2.0 tagger"
68 HOMEPAGE="http://muth.org/Robert/Apetag/"
69 @@ -14,23 +17,46 @@
70 KEYWORDS="~amd64 ~x86"
71 IUSE=""
72
73 -RDEPEND="dev-lang/python"
74 -DEPEND=""
75 -
76 S=${WORKDIR}/Apetag
77
78 +pkg_setup() {
79 + python_set_active_version 2
80 + python_pkg_setup
81 +}
82 +
83 src_prepare() {
84 - sed -i -e 's:CXXDEBUG:LDFLAGS:g' \
85 - "${S}"/Makefile || die "sed failed"
86 + sed -i \
87 + -e 's:CXXDEBUG:LDFLAGS:' \
88 + Makefile || die
89 + python_convert_shebangs -r 2 .
90 }
91
92 src_compile() {
93 tc-export CXX
94 - emake CXXFLAGS="${CXXFLAGS} -pedantic" \
95 - LDFLAGS="${LDFLAGS}" || die "emake failed"
96 + emake \
97 + CXXFLAGS="${CXXFLAGS} -Wall -pedantic" \
98 + LDFLAGS="${LDFLAGS}" || die
99 }
100
101 src_install() {
102 - dobin apetag tagdir.py rmid3tag.py cddb.py || die "dobin failed"
103 + dobin ${PN} || die
104 +
105 + local sitedir="$(python_get_sitedir)"/${PN}
106 + exeinto ${sitedir}
107 + doexe *.py || die
108 +
109 + local x
110 + for x in {rmid3tag,tagdir}.py; do
111 + ln -s "${sitedir}"/${x} "${D}"/usr/bin/${x} || die
112 + done
113 +
114 dodoc 00readme
115 }
116 +
117 +pkg_postinst() {
118 + python_mod_optimize apetag
119 +}
120 +
121 +pkg_postrm() {
122 + python_mod_cleanup apetag
123 +}