summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-18 22:24:07 +0100
committerMichał Górny <mgorny@gentoo.org>2017-02-18 22:32:32 +0100
commit43695e318a2c00e5036b46f04258cc3d8aaab596 (patch)
tree459a1eb5cfa83e101b2a696a219c2a5644eb3839
parentsys-fs/lvm2: revbump 2.02.166 to fix #609416 (diff)
downloadgentoo-43695e318a2c00e5036b46f04258cc3d8aaab596.tar.gz
gentoo-43695e318a2c00e5036b46f04258cc3d8aaab596.tar.bz2
gentoo-43695e318a2c00e5036b46f04258cc3d8aaab596.zip
media-sound/apetag: python-single-r1, EAPI=6
-rw-r--r--media-sound/apetag/apetag-1.12-r1.ebuild48
-rw-r--r--media-sound/apetag/apetag-1.12.ebuild62
2 files changed, 48 insertions, 62 deletions
diff --git a/media-sound/apetag/apetag-1.12-r1.ebuild b/media-sound/apetag/apetag-1.12-r1.ebuild
new file mode 100644
index 000000000000..6a35cba1cba6
--- /dev/null
+++ b/media-sound/apetag/apetag-1.12-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 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 ~ppc64 x86"
+IUSE=""
+
+S=${WORKDIR}/Apetag
+
+src_prepare() {
+ eapply_user
+ sed -i \
+ -e 's:CXXDEBUG:LDFLAGS:' \
+ Makefile || die
+ python_fix_shebang *.py
+}
+
+src_compile() {
+ tc-export CXX
+ emake \
+ CXXFLAGS="${CXXFLAGS} -Wall -pedantic" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+
+ python_moduleinto /usr/lib/apetag
+ python_domodule *.py
+
+ fperms +x /usr/lib/apetag/{rmid3tag,tagdir}.py
+ dosym ../lib/apetag/rmid3tag.py /usr/bin/rmid3tag.py
+ dosym ../lib/apetag/tagdir.py /usr/bin/tagdir.py
+
+ dodoc 00readme
+}
diff --git a/media-sound/apetag/apetag-1.12.ebuild b/media-sound/apetag/apetag-1.12.ebuild
deleted file mode 100644
index 97c2acb844d3..000000000000
--- a/media-sound/apetag/apetag-1.12.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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 ~ppc64 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
-}