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: Wed, 16 Sep 2015 12:52:16 +0000 (UTC)	[thread overview]
Message-ID: <1442407935.ce72f38df3772a65acb2580f24106daa87657e75.jlec@gentoo> (raw)

commit:     ce72f38df3772a65acb2580f24106daa87657e75
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 16 12:49:45 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 12:52:15 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce72f38d

dev-python/dnspython: Fix dual source locations,

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

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

 dev-python/dnspython/dnspython-1.12.0-r1.ebuild | 44 +++++++++++++------------
 dev-python/dnspython/metadata.xml               |  6 ++--
 2 files changed, 26 insertions(+), 24 deletions(-)

diff --git a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild b/dev-python/dnspython/dnspython-1.12.0-r1.ebuild
index a472b31..450cb03 100644
--- a/dev-python/dnspython/dnspython-1.12.0-r1.ebuild
+++ b/dev-python/dnspython/dnspython-1.12.0-r1.ebuild
@@ -12,7 +12,8 @@ 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
+SRC_URI="
+	http://www.dnspython.org/kits/${PV}/${P}.tar.gz
 	http://www.dnspython.org/kits3/${PV}/${P3}.zip"
 
 LICENSE="ISC"
@@ -30,39 +31,40 @@ S3="${WORKDIR}/${P3}"
 # For testsuite
 DISTUTILS_IN_SOURCE_BUILD=1
 
-python_prepare() {
+s_locator() {
 	if python_is_python3; then
-		cp -r "${WORKDIR}/${P3}" "${BUILD_DIR}" || die
+		einfo "Setting \${S} to ${S3}"
+		S="${S3}" $@
 	else
-		distutils-r1_python_prepare
+		einfo "Setting \${S} to ${S2}"
+		S="${S2}" $@
 	fi
 }
 
+python_prepare() {
+	s_locator distutils-r1_python_prepare
+}
+
 python_compile() {
-	if python_is_python3; then
-		run_in_build_dir distutils-r1_python_compile
-	else
-		distutils-r1_python_compile
-	fi
+	s_locator distutils-r1_python_compile
 }
 
 python_install(){
-	if python_is_python3; then
-		run_in_build_dir distutils-r1_python_install
-	else
-		distutils-r1_python_install
-	fi
+	s_locator distutils-r1_python_install
 }
 
-python_test() {
-	if python_is_python3; then
-		pushd "${S3}/tests" &> /dev/null
-	else
-		pushd "${S2}/tests" &> /dev/null
-	fi
+my_test() {
+	pushd tests &> /dev/null
 	"${PYTHON}" utest.py || die "tests failed under ${EPYTHON}"
 	einfo "Testsuite passed under ${EPYTHON}"
-	popd &> /dev/null
+}
+
+python_test() {
+	s_locator my_test
+}
+
+python_install() {
+	s_locator distutils-r1_python_install
 }
 
 python_install_all() {

diff --git a/dev-python/dnspython/metadata.xml b/dev-python/dnspython/metadata.xml
index e593ae8..1342021 100644
--- a/dev-python/dnspython/metadata.xml
+++ b/dev-python/dnspython/metadata.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>python</herd>
-<longdescription>
+	<herd>python</herd>
+	<longdescription>
 dnspython is a DNS toolkit for Python. It supports almost all of the record
 types. It can be used for queries, zone transfers, and dynamic updates. It
 supports TSIG authenticated messages and EDNS0.  dnspython provides both high
@@ -10,7 +10,7 @@ and low level access to DNS. The high level classes perform queries for data
 of a given name, type, and class, and return an answer set. The low level
 classes allow direct manipulation of DNS zones, messages, names, and records.
 </longdescription>
-<longdescription lang="ja">
+	<longdescription lang="ja">
 DNSPythonはPython言語用のDNSツールキットです。ほとんどのレコード・タイプをサポー
 トします。クエリー、ゾーン・トランスファー、ダイナミック・アップデートができます
 。TSTGメッセージ認証とEDNS0をサポートします。DNSPythonは高水準でのアクセスと低水


             reply	other threads:[~2015-09-16 12:52 UTC|newest]

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

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=1442407935.ce72f38df3772a65acb2580f24106daa87657e75.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