public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dnspython/
Date: Fri, 30 Oct 2015 12:03:59 +0000 (UTC)	[thread overview]
Message-ID: <1446206629.455634fa7080a3aa5437871558552d722efbfe70.jlec@gentoo> (raw)

commit:     455634fa7080a3aa5437871558552d722efbfe70
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 30 10:05:55 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Oct 30 12:03:49 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=455634fa

dev-python/dnspython: Conver to py ABI slotted ebuilds

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=484954

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/dnspython/dnspython-1.11.1.ebuild       |  5 +-
 dev-python/dnspython/dnspython-1.12.0-r1.ebuild    | 73 ----------------------
 ...-1.12.0.ebuild => dnspython-1.12.0-r200.ebuild} | 17 ++---
 ...-1.12.0.ebuild => dnspython-1.12.0-r300.ebuild} | 26 +++++---
 4 files changed, 31 insertions(+), 90 deletions(-)

diff --git a/dev-python/dnspython/dnspython-1.11.1.ebuild b/dev-python/dnspython/dnspython-1.11.1.ebuild
index ea07615..3969929 100644
--- a/dev-python/dnspython/dnspython-1.11.1.ebuild
+++ b/dev-python/dnspython/dnspython-1.11.1.ebuild
@@ -17,7 +17,10 @@ KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd
 IUSE="examples test"
 
 DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+	!dev-python/dnspython:py2
+	!dev-python/dnspython:py3
+"
 
 DOCS=( ChangeLog README )
 

diff --git a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild b/dev-python/dnspython/dnspython-1.12.0-r1.ebuild
deleted file mode 100644
index 450cb03..0000000
--- a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_3,3_4} )
-
-inherit distutils-r1 multilib
-
-PN3="${PN}3"
-P3="${PN3}-${PV}"
-
-DESCRIPTION="DNS toolkit for Python"
-HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython"
-SRC_URI="
-	http://www.dnspython.org/kits/${PV}/${P}.tar.gz
-	http://www.dnspython.org/kits3/${PV}/${P3}.zip"
-
-LICENSE="ISC"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
-IUSE="examples test"
-
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
-	app-arch/unzip"
-RDEPEND="${DEPEND}"
-
-S2="${S}"
-S3="${WORKDIR}/${P3}"
-
-# For testsuite
-DISTUTILS_IN_SOURCE_BUILD=1
-
-s_locator() {
-	if python_is_python3; then
-		einfo "Setting \${S} to ${S3}"
-		S="${S3}" $@
-	else
-		einfo "Setting \${S} to ${S2}"
-		S="${S2}" $@
-	fi
-}
-
-python_prepare() {
-	s_locator distutils-r1_python_prepare
-}
-
-python_compile() {
-	s_locator distutils-r1_python_compile
-}
-
-python_install(){
-	s_locator distutils-r1_python_install
-}
-
-my_test() {
-	pushd tests &> /dev/null
-	"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}"
-	einfo "Testsuite passed under ${EPYTHON}"
-}
-
-python_test() {
-	s_locator my_test
-}
-
-python_install() {
-	s_locator distutils-r1_python_install
-}
-
-python_install_all() {
-	use examples && local EXAMPLES=( examples/. )
-	distutils-r1_python_install_all
-}

diff --git a/dev-python/dnspython/dnspython-1.12.0.ebuild b/dev-python/dnspython/dnspython-1.12.0-r200.ebuild
similarity index 77%
copy from dev-python/dnspython/dnspython-1.12.0.ebuild
copy to dev-python/dnspython/dnspython-1.12.0-r200.ebuild
index 9edf38a..6bb0c4b 100644
--- a/dev-python/dnspython/dnspython-1.12.0.ebuild
+++ b/dev-python/dnspython/dnspython-1.12.0-r200.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
+
 PYTHON_COMPAT=( python2_7 )
 
 inherit distutils-r1
@@ -12,21 +13,23 @@ HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython"
 SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz"
 
 LICENSE="ISC"
-SLOT="0"
+SLOT="py2"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
 IUSE="examples test"
 
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}"
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
+	!dev-python/dnspython:0"
+DEPEND="${RDEPEND}
+	!dev-python/dnspython:0
+	app-arch/unzip"
 
-# For tests
+# For testsuite
 DISTUTILS_IN_SOURCE_BUILD=1
 
 python_test() {
-	pushd "${BUILD_DIR}"/../tests &> /dev/null
+	cd tests || die
 	"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}"
 	einfo "Testsuite passed under ${EPYTHON}"
-	popd &> /dev/null
 }
 
 python_install_all() {

diff --git a/dev-python/dnspython/dnspython-1.12.0.ebuild b/dev-python/dnspython/dnspython-1.12.0-r300.ebuild
similarity index 63%
rename from dev-python/dnspython/dnspython-1.12.0.ebuild
rename to dev-python/dnspython/dnspython-1.12.0-r300.ebuild
index 9edf38a..a32c94a 100644
--- a/dev-python/dnspython/dnspython-1.12.0.ebuild
+++ b/dev-python/dnspython/dnspython-1.12.0-r300.ebuild
@@ -1,32 +1,40 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-PYTHON_COMPAT=( python2_7 )
+
+PYTHON_COMPAT=( python3_{3,4} )
 
 inherit distutils-r1
 
+MY_PN="${PN}3"
+MY_P="${MY_PN}-${PV}"
+
 DESCRIPTION="DNS toolkit for Python"
 HOMEPAGE="http://www.dnspython.org/ https://pypi.python.org/pypi/dnspython"
-SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz"
+SRC_URI="http://www.dnspython.org/kits3/${PV}/${MY_P}.zip"
 
 LICENSE="ISC"
-SLOT="0"
+SLOT="py3"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
 IUSE="examples test"
 
-DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}"
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
+	!dev-python/dnspython:0"
+DEPEND="${RDEPEND}
+	!dev-python/dnspython:0
+	app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
 
-# For tests
+# For testsuite
 DISTUTILS_IN_SOURCE_BUILD=1
 
 python_test() {
-	pushd "${BUILD_DIR}"/../tests &> /dev/null
+	cd tests || die
 	"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}"
 	einfo "Testsuite passed under ${EPYTHON}"
-	popd &> /dev/null
 }
 
 python_install_all() {


             reply	other threads:[~2015-10-30 12:04 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 12:03 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-26 15:32 [gentoo-commits] repo/gentoo:master commit in: dev-python/dnspython/ Michał Górny
2024-10-26 14:47 Arthur Zamarin
2024-10-06  2:30 Michał Górny
2024-05-17 10:51 Michał Górny
2024-03-07 16:10 Michał Górny
2024-02-19  4:10 Michał Górny
2024-02-17  6:10 Michał Górny
2024-02-11 13:14 Michał Górny
2024-02-11  6:01 Sam James
2024-01-21  6:21 Michał Górny
2023-08-19 16:05 Michał Górny
2023-08-19 15:56 Arthur Zamarin
2023-08-10  2:53 Michał Górny
2023-07-27  3:21 Michał Górny
2023-07-16  3:06 Michał Górny
2023-05-28 11:36 Sam James
2023-02-16 20:21 Michał Górny
2023-01-16 18:21 Michał Górny
2023-01-16  6:11 Michał Górny
2022-10-09 16:15 James Le Cuirot
2022-07-29 14:37 Michał Górny
2022-07-29 14:37 Michał Górny
2022-07-04  6:57 Michał Górny
2022-07-04  6:57 Michał Górny
2022-07-04  6:57 Michał Górny
2022-05-15 10:41 Michał Górny
2022-05-11 12:56 Jakov Smolić
2022-05-05  9:51 WANG Xuerui
2022-04-15 15:23 Arthur Zamarin
2022-04-15 15:21 Arthur Zamarin
2022-04-08 14:23 Arthur Zamarin
2022-03-09 19:13 Arthur Zamarin
2022-02-04 19:28 Michał Górny
2022-01-18 22:44 Michał Górny
2021-12-03 20:47 Arthur Zamarin
2021-11-28 14:42 Michał Górny
2021-07-28  0:19 Marek Szuba
2021-06-05 11:03 Michał Górny
2021-06-05 11:03 Michał Górny
2021-02-19  8:35 Michał Górny
2021-02-19  2:54 Sam James
2021-01-08  9:43 Michał Górny
2021-01-08  0:45 Michał Górny
2020-08-22  9:15 Michał Górny
2020-08-19  4:09 Sam James
2020-07-19 17:18 Michał Górny
2020-07-11 22:08 Sam James
2020-05-26 18:09 Michał Górny
2020-05-26 18:09 Michał Górny
2020-04-27 19:21 Michał Górny
2020-03-26 20:52 Michał Górny
2020-03-26 20:52 Michał Górny
2020-03-26 20:52 Michał Górny
2019-11-27  7:58 Patrick McLean
2019-11-11 19:39 Sergei Trofimovich
2019-07-31 13:13 Agostino Sarubbo
2019-07-31 13:11 Agostino Sarubbo
2019-07-31 12:09 Agostino Sarubbo
2019-07-31 10:59 Agostino Sarubbo
2019-07-31 10:55 Agostino Sarubbo
2019-07-31 10:54 Agostino Sarubbo
2019-07-30  5:40 Michał Górny
2019-07-30  5:40 Michał Górny
2019-07-30  5:40 Michał Górny
2019-05-13 14:34 Manuel Rüger
2018-10-10 15:49 Matthew Thode
2018-08-05 11:06 Manuel Rüger
2018-01-03 22:13 Michał Górny
2017-05-27  6:57 Markus Meier
2017-05-19  2:23 Michael Weber
2017-05-12 17:56 Tobias Klausmann
2017-05-11  7:05 Jeroen Roovers
2017-05-10 14:55 Mike Gilbert
2017-03-26  4:16 Matt Thode
2017-03-13  2:18 Zac Medico
2017-02-20 18:12 Markus Meier
2017-01-23 18:58 Tobias Klausmann
2017-01-22 11:29 Jeroen Roovers
2017-01-21 20:33 Agostino Sarubbo
2017-01-18 11:57 Agostino Sarubbo
2017-01-17 16:22 Agostino Sarubbo
2016-11-26 17:59 Mike Gilbert
2016-10-10 18:42 Matt Thode
2016-03-27 17:44 David Seifert
2016-02-28  7:32 Matt Thode
2016-02-28  7:08 Matt Thode
2016-01-11 11:32 Justin Lecher
2016-01-11 11:32 Justin Lecher
2015-09-16 12:52 Justin Lecher

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=1446206629.455634fa7080a3aa5437871558552d722efbfe70.jlec@gentoo \
    --to=jlec@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