summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronder <jsbronder@gentoo.org>2013-01-03 20:33:33 +0000
committerJustin Bronder <jsbronder@gentoo.org>2013-01-03 20:33:33 +0000
commita2d96c55d72856190e7c8386c243be53672c58a2 (patch)
tree8bddc4b2987ba8b50b25edb8623b4560047fccb6 /dev-python/yenc
parentAdded a patch for netcdf-4 support, bug #449984 (diff)
downloadgentoo-2-a2d96c55d72856190e7c8386c243be53672c58a2.tar.gz
gentoo-2-a2d96c55d72856190e7c8386c243be53672c58a2.tar.bz2
gentoo-2-a2d96c55d72856190e7c8386c243be53672c58a2.zip
add dev-python/yenc
(Portage version: 2.1.11.37/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
Diffstat (limited to 'dev-python/yenc')
-rw-r--r--dev-python/yenc/ChangeLog10
-rw-r--r--dev-python/yenc/files/yenc-remove-cflags.patch11
-rw-r--r--dev-python/yenc/metadata.xml7
-rw-r--r--dev-python/yenc/yenc-0.4.0.ebuild37
4 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/yenc/ChangeLog b/dev-python/yenc/ChangeLog
new file mode 100644
index 000000000000..0ed1d063f1f8
--- /dev/null
+++ b/dev-python/yenc/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/yenc
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/yenc/ChangeLog,v 1.1 2013/01/03 20:33:33 jsbronder Exp $
+
+*yenc-0.4.0 (03 Jan 2013)
+
+ 03 Jan 2013; Justin Bronder <jsbronder@gentoo.org> +yenc-0.4.0.ebuild,
+ +files/yenc-remove-cflags.patch, +metadata.xml:
+ add dev-python/yenc
+
diff --git a/dev-python/yenc/files/yenc-remove-cflags.patch b/dev-python/yenc/files/yenc-remove-cflags.patch
new file mode 100644
index 000000000000..27721c727db3
--- /dev/null
+++ b/dev-python/yenc/files/yenc-remove-cflags.patch
@@ -0,0 +1,11 @@
+--- setup.py 2011-09-06 09:04:33.000000000 +0200
++++ setup.py.NEW 2012-07-07 15:33:13.295906002 +0200
+@@ -33,7 +33,7 @@
+ platforms = ["Unix"],
+ package_dir = { '': 'lib' },
+ py_modules = ["yenc"],
+- ext_modules = [Extension("_yenc",["src/_yenc.c"],extra_compile_args=["-O2","-g"])],
++ ext_modules = [Extension("_yenc",["src/_yenc.c"])],
+ classifiers = [
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2.5",
diff --git a/dev-python/yenc/metadata.xml b/dev-python/yenc/metadata.xml
new file mode 100644
index 000000000000..c2318979e416
--- /dev/null
+++ b/dev-python/yenc/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>jsbronder@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/yenc/yenc-0.4.0.ebuild b/dev-python/yenc/yenc-0.4.0.ebuild
new file mode 100644
index 000000000000..7fa6654d0e05
--- /dev/null
+++ b/dev-python/yenc/yenc-0.4.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/yenc/yenc-0.4.0.ebuild,v 1.1 2013/01/03 20:33:33 jsbronder Exp $
+
+EAPI="4"
+PYTHON_DEPEND="2:2.6"
+
+inherit eutils distutils
+
+DESCRIPTION="Module providing raw yEnc encoding/decoding"
+HOMEPAGE="http://www.golug.it/yenc.html"
+SRC_URI="http://www.golug.it/pub/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare(){
+ # Remove forced CFLAG on setup.py
+ epatch "${FILESDIR}/${PN}-remove-cflags.patch"
+}
+
+python_test() {
+ PYTHONPATH="${BUILD_DIR}/lib" \
+ "${PYTHON}" test/test.py || die "Test failed."
+}
+
+src_install() {
+ distutils_src_install
+ dodoc doc/${PN}-draft.1.3.txt
+}