summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2012-05-19 10:53:54 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2012-05-19 10:53:54 +0000
commit431dfaf3fba8d6692516c1ee04370a9c5057bec6 (patch)
treee2d638807681ac5ff3abfc8d94db1a36c628778d /dev-python/bottle
parentKeyword ~ppc/~ppc64 (to match keywording of app-arch/hardlink++) wrt #337250 ... (diff)
downloadgentoo-2-431dfaf3fba8d6692516c1ee04370a9c5057bec6.tar.gz
gentoo-2-431dfaf3fba8d6692516c1ee04370a9c5057bec6.tar.bz2
gentoo-2-431dfaf3fba8d6692516c1ee04370a9c5057bec6.zip
Initial import, fixes #415539 by Ian Delaney <johneed@hotmail.com>. Thanks to Mike MacDonald (crazymykl) <crazymykl@gmail.com> and Johan Bergström (jbergstroem) <bugs@bergstroem.nu> for their work on this ebuild in Sunrise overlay
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/bottle')
-rw-r--r--dev-python/bottle/ChangeLog13
-rw-r--r--dev-python/bottle/bottle-0.10.9.ebuild50
-rw-r--r--dev-python/bottle/metadata.xml14
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/bottle/ChangeLog b/dev-python/bottle/ChangeLog
new file mode 100644
index 000000000000..0ffd4ad8de82
--- /dev/null
+++ b/dev-python/bottle/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for dev-python/bottle
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bottle/ChangeLog,v 1.1 2012/05/19 10:53:54 xarthisius Exp $
+
+*bottle-0.10.9 (19 May 2012)
+
+ 19 May 2012; Kacper Kowalik <xarthisius@gentoo.org> +bottle-0.10.9.ebuild,
+ +metadata.xml:
+ Initial import, fixes #415539 by Ian Delaney <johneed@hotmail.com>. Thanks to
+ Mike MacDonald (crazymykl) <crazymykl@gmail.com> and Johan Bergström
+ (jbergstroem) <bugs@bergstroem.nu> for their work on this ebuild in Sunrise
+ overlay
+
diff --git a/dev-python/bottle/bottle-0.10.9.ebuild b/dev-python/bottle/bottle-0.10.9.ebuild
new file mode 100644
index 000000000000..e70a783ae3f2
--- /dev/null
+++ b/dev-python/bottle/bottle-0.10.9.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bottle/bottle-0.10.9.ebuild,v 1.1 2012/05/19 10:53:54 xarthisius Exp $
+
+EAPI=4
+
+SUPPORT_PYTHON_ABIS=1
+RESTRICT_PYTHON_ABIS="*-jython"
+
+inherit distutils eutils
+
+DESCRIPTION="A fast and simple micro-framework for small web-applications"
+HOMEPAGE="http://pypi.python.org/pypi/bottle http://bottlepy.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+PYTHON_MODNAME=bottle.py
+
+RDEPEND="dev-python/simplejson"
+DEPEND="${RDEPEND} dev-python/setuptools"
+
+src_prepare() {
+ distutils_src_prepare
+
+ sed -e "/^sys.path.insert/d" -i test/{servertest.py,testall.py} || die
+
+ 2to3_tests() {
+ local p_maj=$(python_get_version -l --major)
+
+ if [[ ! -d test-${p_maj} ]]; then
+ cp -r test test-${p_maj}
+ if [[ $p_maj == 3 ]]; then
+ 2to3-${PYTHON_ABI} -nw --no-diffs test-${p_maj}
+ fi
+ fi
+ }
+ python_execute_function 2to3_tests
+}
+
+src_test() {
+ testing() {
+ local p_maj=$(python_get_version -l --major)
+ PYTHONPATH="build-${PYTHON_ABI}/lib/" "$(PYTHON)" test-${p_maj}/testall.py
+ }
+ python_execute_function testing
+}
diff --git a/dev-python/bottle/metadata.xml b/dev-python/bottle/metadata.xml
new file mode 100644
index 000000000000..472ba4684030
--- /dev/null
+++ b/dev-python/bottle/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>johneed@hotmail.com</email>
+ <name>Ian Delaney</name>
+ </maintainer>
+ <maintainer>
+ <email>tampakrap@gentoo.org</email>
+ <name>Theo Chatzimichos</name>
+ </maintainer>
+ <herd>python</herd>
+</pkgmetadata>
+