summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-01-02 20:20:00 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-01-02 20:20:00 +0000
commitb2def392a7b90f30efc8db1562d5b90b6b3c763c (patch)
tree3376919a87c18df81c7f2c1aad22424d6a747c25 /dev-python/pydns
parentBug 295955 (diff)
downloadgentoo-2-b2def392a7b90f30efc8db1562d5b90b6b3c763c.tar.gz
gentoo-2-b2def392a7b90f30efc8db1562d5b90b6b3c763c.tar.bz2
gentoo-2-b2def392a7b90f30efc8db1562d5b90b6b3c763c.zip
Version bump. Set SUPPORT_PYTHON_ABIS.
(Portage version: 15155-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pydns')
-rw-r--r--dev-python/pydns/ChangeLog10
-rw-r--r--dev-python/pydns/pydns-2.3.4.ebuild46
2 files changed, 54 insertions, 2 deletions
diff --git a/dev-python/pydns/ChangeLog b/dev-python/pydns/ChangeLog
index d7353af83d86..a34bd42e5805 100644
--- a/dev-python/pydns/ChangeLog
+++ b/dev-python/pydns/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pydns
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pydns/ChangeLog,v 1.6 2009/02/15 11:54:35 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pydns/ChangeLog,v 1.7 2010/01/02 20:20:00 arfrever Exp $
+
+*pydns-2.3.4 (02 Jan 2010)
+
+ 02 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +pydns-2.3.4.ebuild:
+ Version bump. Set SUPPORT_PYTHON_ABIS.
15 Feb 2009; Markus Meier <maekke@gentoo.org> pydns-2.3.3.ebuild:
amd64/x86 stable, bug #258328
diff --git a/dev-python/pydns/pydns-2.3.4.ebuild b/dev-python/pydns/pydns-2.3.4.ebuild
new file mode 100644
index 000000000000..8de2cf4635fd
--- /dev/null
+++ b/dev-python/pydns/pydns-2.3.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pydns/pydns-2.3.4.ebuild,v 1.1 2010/01/02 20:20:00 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Python module for DNS (Domain Name Service)"
+HOMEPAGE="http://pydns.sourceforge.net/ http://pypi.python.org/pypi/pydns"
+SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="CNRI"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND="virtual/libiconv"
+RDEPEND=""
+RESTRICT_PYTHON_ABIS="3.*"
+
+DOCS="CREDITS.txt"
+PYTHON_MODNAME="DNS"
+
+src_prepare() {
+ # Fix encodings (should be utf-8 but is latin1).
+ for i in "${PYTHON_MODNAME}"/{Lib,Type}.py; do
+ iconv -f ISO-8859-1 -t UTF-8 < "${i}" > "${i}~" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+ done
+
+ # Don't compile bytecode.
+ sed -i -e 's:^\(compile\).*:\1 = 0:g' -e 's:^\(optimize\).*:\1 = 0:g' setup.cfg
+
+ # Fix Python shebangs in examples.
+ sed -i -e 's:#!/.*\(python\)/*$:#!/usr/bin/\1:g' {tests,tools}/*.py
+}
+
+src_install(){
+ distutils_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins tests/*.py tools/*.py
+ fi
+}