public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/apetag/
Date: Sat, 18 Feb 2017 21:32:38 +0000 (UTC)	[thread overview]
Message-ID: <1487453552.43695e318a2c00e5036b46f04258cc3d8aaab596.mgorny@gentoo> (raw)

commit:     43695e318a2c00e5036b46f04258cc3d8aaab596
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 21:24:07 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 21:32:32 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43695e31

media-sound/apetag: python-single-r1, EAPI=6

 media-sound/apetag/apetag-1.12-r1.ebuild | 48 +++++++++++++++++++++++++
 media-sound/apetag/apetag-1.12.ebuild    | 62 --------------------------------
 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 0000000000..6a35cba1cb
--- /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 97c2acb844..0000000000
--- 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
-}


             reply	other threads:[~2017-02-18 21:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-18 21:32 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-30  9:18 [gentoo-commits] repo/gentoo:master commit in: media-sound/apetag/ Pacho Ramos
2023-05-03  5:33 Sam James
2022-06-21  5:35 Sam James
2021-09-26 22:16 Marek Szuba
2020-09-23 10:35 Miroslav Šulc
2020-09-23 10:29 Agostino Sarubbo
2020-09-23 10:24 Agostino Sarubbo
2020-09-23 10:20 Agostino Sarubbo
2020-09-20 22:40 Thomas Deutschmann
2017-09-23 19:45 Sergei Trofimovich
2017-02-19 10:33 David Seifert
2016-06-06 13:33 Agostino Sarubbo
2015-10-05  5:26 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487453552.43695e318a2c00e5036b46f04258cc3d8aaab596.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox