public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-sound/tunapie/
@ 2017-02-21  9:29 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-02-21  9:29 UTC (permalink / raw
  To: gentoo-commits

commit:     be7b512cf4a91e00c981856eef7641ba4a121eff
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 09:25:41 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 09:29:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be7b512c

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

 media-sound/tunapie/tunapie-2.1.17-r1.ebuild | 51 +++++++++++++++++++++++++
 media-sound/tunapie/tunapie-2.1.17.ebuild    | 57 ----------------------------
 2 files changed, 51 insertions(+), 57 deletions(-)

diff --git a/media-sound/tunapie/tunapie-2.1.17-r1.ebuild b/media-sound/tunapie/tunapie-2.1.17-r1.ebuild
new file mode 100644
index 0000000000..88ce8025a9
--- /dev/null
+++ b/media-sound/tunapie/tunapie-2.1.17-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="Directory browser for Radio and TV streams"
+HOMEPAGE="http://tunapie.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="offensive"
+
+RDEPEND=">=dev-python/wxpython-2.6[${PYTHON_USEDEP}]
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+	default
+
+	# fix pixmap lookup
+	sed -i -e 's@../pixmaps@../../share/pixmaps@' \
+		src/tunapie2_main.py || die
+
+	# the original script requires more sed than code,
+	cat > tunapie <<-_EOF_ || die
+		#!/bin/sh
+		exec ${EPYTHON} /usr/lib/tunapie/Tunapie.py
+	_EOF_
+}
+
+src_install() {
+	dobin tunapie
+	doman tunapie.1
+	dodoc CHANGELOG README
+
+	python_moduleinto /usr/lib/tunapie
+	python_domodule src/{*.py,*.png}
+
+	doicon src/tplogo.xpm
+	domenu tunapie.desktop
+
+	dodir /etc
+	usex offensive 1 0 > "${ED%/}"/etc/tunapie.config || die
+}

diff --git a/media-sound/tunapie/tunapie-2.1.17.ebuild b/media-sound/tunapie/tunapie-2.1.17.ebuild
deleted file mode 100644
index 7c81522025..0000000000
--- a/media-sound/tunapie/tunapie-2.1.17.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=3
-PYTHON_DEPEND="2"
-inherit eutils multilib python
-
-DESCRIPTION="Directory browser for Radio and TV streams"
-HOMEPAGE="http://tunapie.sourceforge.net"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="offensive"
-
-RDEPEND=">=dev-python/wxpython-2.6"
-DEPEND=""
-
-pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
-}
-
-src_prepare() {
-	sed -i -e "s:/usr/local/share:/usr/$(get_libdir):" ${PN} \
-		|| die "sed failed"
-}
-
-src_install() {
-	dobin ${PN} || die "dobin failed"
-	doman ${PN}.1
-	dodoc CHANGELOG README
-
-	doicon src/tplogo.xpm
-	domenu ${PN}.desktop
-
-	insinto /usr/$(get_libdir)/${PN}
-	doins src/{*.py,*.png} || die "doins failed"
-
-	dodir /etc
-
-	if use offensive; then
-		echo 1 > "${D}"/etc/${PN}.config
-	else
-		echo 0 > "${D}"/etc/${PN}.config
-	fi
-}
-
-pkg_postinst() {
-	python_mod_optimize /usr/$(get_libdir)/${PN}
-}
-
-pkg_postrm() {
-	python_mod_cleanup /usr/$(get_libdir)/${PN}
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/tunapie/
@ 2017-04-23 11:11 Alexis Ballier
  0 siblings, 0 replies; 3+ messages in thread
From: Alexis Ballier @ 2017-04-23 11:11 UTC (permalink / raw
  To: gentoo-commits

commit:     0c8aadcbccddd583dbf702269d17da792a5b5195
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 23 11:10:34 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Apr 23 11:10:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c8aadcb

media-sound/tunapie: bump to 2.1.19

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 media-sound/tunapie/Manifest              |  1 +
 media-sound/tunapie/tunapie-2.1.19.ebuild | 50 +++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/media-sound/tunapie/Manifest b/media-sound/tunapie/Manifest
index 3cde4d1bdb2..967ccddefb6 100644
--- a/media-sound/tunapie/Manifest
+++ b/media-sound/tunapie/Manifest
@@ -1 +1,2 @@
 DIST tunapie-2.1.17.tar.gz 50165 SHA256 d3cf0d102df52da37ee50125fbaa8f9709b18d9f8bc13dd9fa3932e4f28828f6 SHA512 62215f99b863f3db24b78048302f8b2f54aa5b969e9ba09034e98227dcada3f561a1afcf5babd65dca7f251aeeba816352b252f9f8f22fdec77272d7583f7ce9 WHIRLPOOL d1ee2991c1f0f77ede710c9eadcfa003c359a262988f9599ac1740b412182b2e588a9e417f9cdb0e807a00715ea2e163dddde58fe9fb2c3d96cfe2d3808078a3
+DIST tunapie-2.1.19.tar.gz 48459 SHA256 2b83c146dd54478a7b35e58b21b7cef52efaa2431b92cd10d97715eeaa7dcb85 SHA512 6a53034e4172f8c96d6e1c92433a3d94c3e8b8bceb9587ff39bad5e7b97937ac000419c683474427ea293b7ba10d5e9dd845b4aa7eaad1a3bcc5b980d57e5669 WHIRLPOOL 79f5663b9d76aa74754be281f29e99a3db70d19a4192b14f40907b3957ca2971c4f32c0f534a9fa843dc017cc1cc130392e2515b3b36ff65c5cea17e82ad6920

diff --git a/media-sound/tunapie/tunapie-2.1.19.ebuild b/media-sound/tunapie/tunapie-2.1.19.ebuild
new file mode 100644
index 00000000000..db38951688e
--- /dev/null
+++ b/media-sound/tunapie/tunapie-2.1.19.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="Directory browser for Radio and TV streams"
+HOMEPAGE="http://tunapie.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="offensive"
+
+RDEPEND=">=dev-python/wxpython-2.6[${PYTHON_USEDEP}]
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+	default
+
+	# fix pixmap lookup
+	sed -i -e 's@../pixmaps@../../share/pixmaps@' \
+		src/tunapie2_main.py || die
+
+	# the original script requires more sed than code,
+	cat > tunapie <<-_EOF_ || die
+		#!/bin/sh
+		exec ${EPYTHON} /usr/lib/tunapie/Tunapie.py
+	_EOF_
+}
+
+src_install() {
+	dobin tunapie
+	doman tunapie.1
+	dodoc CHANGELOG README
+
+	python_moduleinto /usr/lib/tunapie
+	python_domodule src/{*.py,*.png}
+
+	doicon src/tplogo.xpm
+	domenu tunapie.desktop
+
+	dodir /etc
+	usex offensive 1 0 > "${ED%/}"/etc/tunapie.config || die
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/tunapie/
@ 2020-02-09 16:31 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2020-02-09 16:31 UTC (permalink / raw
  To: gentoo-commits

commit:     979a4ca0850fc1a34dc27d6eb70f0b46f1895ea5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  7 16:54:18 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 16:31:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=979a4ca0

media-sound/tunapie: Switch to PYTHON_MULTI_USEDEP API

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 media-sound/tunapie/tunapie-2.1.17-r1.ebuild                       | 7 +++++--
 .../tunapie/{tunapie-2.1.19.ebuild => tunapie-2.1.19-r1.ebuild}    | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/media-sound/tunapie/tunapie-2.1.17-r1.ebuild b/media-sound/tunapie/tunapie-2.1.17-r1.ebuild
index db38951688e..c171a0b8d67 100644
--- a/media-sound/tunapie/tunapie-2.1.17-r1.ebuild
+++ b/media-sound/tunapie/tunapie-2.1.17-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,7 +14,10 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="offensive"
 
-RDEPEND=">=dev-python/wxpython-2.6[${PYTHON_USEDEP}]
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/wxpython-2.6[${PYTHON_MULTI_USEDEP}]
+	')
 	${PYTHON_DEPS}"
 DEPEND="${RDEPEND}"
 

diff --git a/media-sound/tunapie/tunapie-2.1.19.ebuild b/media-sound/tunapie/tunapie-2.1.19-r1.ebuild
similarity index 88%
rename from media-sound/tunapie/tunapie-2.1.19.ebuild
rename to media-sound/tunapie/tunapie-2.1.19-r1.ebuild
index db38951688e..c171a0b8d67 100644
--- a/media-sound/tunapie/tunapie-2.1.19.ebuild
+++ b/media-sound/tunapie/tunapie-2.1.19-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,7 +14,10 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="offensive"
 
-RDEPEND=">=dev-python/wxpython-2.6[${PYTHON_USEDEP}]
+RDEPEND="
+	$(python_gen_cond_dep '
+		>=dev-python/wxpython-2.6[${PYTHON_MULTI_USEDEP}]
+	')
 	${PYTHON_DEPS}"
 DEPEND="${RDEPEND}"
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-09 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21  9:29 [gentoo-commits] repo/gentoo:master commit in: media-sound/tunapie/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2017-04-23 11:11 Alexis Ballier
2020-02-09 16:31 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox