diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/bsddb3 |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/bsddb3')
-rw-r--r-- | dev-python/bsddb3/Manifest | 7 | ||||
-rw-r--r-- | dev-python/bsddb3/bsddb3-6.1.1.ebuild | 75 | ||||
-rw-r--r-- | dev-python/bsddb3/bsddb3-6.2.4.ebuild | 76 | ||||
-rw-r--r-- | dev-python/bsddb3/metadata.xml | 11 |
4 files changed, 169 insertions, 0 deletions
diff --git a/dev-python/bsddb3/Manifest b/dev-python/bsddb3/Manifest new file mode 100644 index 000000000000..441094e5cb42 --- /dev/null +++ b/dev-python/bsddb3/Manifest @@ -0,0 +1,7 @@ +DIST bsddb3-6.1.1.tar.gz 450571 SHA256 6f21b0252125c07798d784c164ef135ad153d226c01b290258ee1c5b9e7c4dd3 SHA512 f5e95edf2d18f04f4a306450a67ad675902b102cde9fdebd870727c2649ba7dd759206708c9225af871e0811e17812ef46c90ea6854eb3209ba36c86900ffb01 WHIRLPOOL c8552008d8de272ef665ca54ec134a8bf64e31c41b4738c9ff461d5d2f6c045f20bc9604bff2acbb86222d838649297d8e96060ec060f2da342ce0314e0b2211 +DIST bsddb3-6.2.4.tar.gz 242397 SHA256 4866aa32ad6ec6d5ff401d9aec8da07c4e84502298dc27f7c758545e243550e6 SHA512 15bb714242b05649a7c40ccd153979e596340ef039c89549b215fc5438a12fedb44150195063d2783c6c06ede3552506e31e8013b6b0431d27dd7e14975c08b0 WHIRLPOOL e835c62753bed8fb26a82452b0b1946be169ea863c3fa532e05e1cbeab21eae34291175fdcc73fa376924cdd577606dcddb5b560b560735cb39a81b3d3e01bb2 +EBUILD bsddb3-6.1.1.ebuild 1949 SHA256 c248c5c5090bc725fec3e0ac4dcf2c7ac4c6e36cd8d5d10085bc9f015560b722 SHA512 4288d31c4c38a8f4d8e2319b6a8a81712fb6fe77f8b4baa87a3d65459abacad1fa8c28b437c9fde8035404c518949f65229e0a545a37f35f21d3ffac2c40febf WHIRLPOOL 6931ddd4f3e89157a7d0898b714bbbcf9d6dde4e35096f20f60fa0851c617944e682b3f9d8c026673f91f49a92241a78587e89788f75443bf21dcdc36d171293 +EBUILD bsddb3-6.2.4.ebuild 1939 SHA256 969cb8b7797aac2245d6fe6b9ffe43831175948292d81f150e0608dc7ff755e6 SHA512 181bacbcbe8e688e007543c09b4166d00f3d21b336a0a1e047d10d1a4d3dab7bbb693f0737ad575adcfb48903305d9424b3daca42f8f1aa7d9f1e588fe39ed91 WHIRLPOOL c12144e9dfea29ac9708b822561482386eaac7c8ef8fb9352c968cbb3e742f9062ab3983df5c6413f643422bdb79d92270999b0b2345aa8e8eaeebb17d9ab3de +MISC ChangeLog 5721 SHA256 ec4f5d57c439b29e8e9f727f797d15e4916d5940b4cf7589c8ec593bf85c1bc4 SHA512 367b6589989b044332e79b16f51f327bf61e8d4055040d5e64f7c185939fdcf08607b4fce2e602667a5827d591574db09a4023ebfabf4c344ef9dcb63be13eec WHIRLPOOL 24208602b2a5b56e62ae05c6eb30f76bf7d669a013b871b9973d3d33d437c86e993aabb91a27d9fbe06440d29c0705d4144e16d82ecfae1d3355bf9b0d10d8d3 +MISC ChangeLog-2015 15337 SHA256 2fd0b3f84c3882480b302e525b108ef7b4bd5b5f130b6abb085e1adb028d8258 SHA512 90adeb34d36a03d3b0e946755143ac073e09527aecbbf42f71ccbe46b2008b7ecceed2cfefa5686764535c2e1d963e3caa1eab4559cfdc6c1f6ff610582fb830 WHIRLPOOL c3e57e4764e86e0bef9bdcd7fb514dc9e5de1edf469f7ddc183760497cb912a2d61492f27efeced48bda509f77e40209abb1c02ddb29a5d5e7f2814e8f86e886 +MISC metadata.xml 309 SHA256 cd2d29268ad77f7d8783f368387bc54e6168f311ed010662fd82d72554e51728 SHA512 edf575ec4a06047d837caffa6c8c8a35d53c5236d806e6d2b4804943617000d8f745f1b94fecfe2af117be823821669e6b7e9aea2a427aa2d97b1eb6ec11eb20 WHIRLPOOL 6f176f5a8a7cd15d9677a904be3dd1997a76ff53570adba32933c224f6901a1664c0e22e045ac895f4ce6d0e50e147ae318ea65cfb2587cfa5f46a28fad33190 diff --git a/dev-python/bsddb3/bsddb3-6.1.1.ebuild b/dev-python/bsddb3/bsddb3-6.1.1.ebuild new file mode 100644 index 000000000000..335bb3826ac8 --- /dev/null +++ b/dev-python/bsddb3/bsddb3-6.1.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) +PYTHON_REQ_USE="threads(+)" + +inherit db-use distutils-r1 multilib + +DESCRIPTION="Python bindings for Berkeley DB" +HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm https://pypi.python.org/pypi/bsddb3" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +RDEPEND=" + >=sys-libs/db-4.7:= + <sys-libs/db-6.2:= +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +DISTUTILS_IN_SOURCE_BUILD=1 + +src_prepare() { + # This list should be kept in sync with setup.py. + if [[ -z ${DB_VER} ]]; then + for DB_VER in 6.1 6.0 5.3 5.2 5.1 5.0 4.8 4.7; do + has_version "sys-libs/db:${DB_VER}" && break + done + fi + + # Force version. + sed -e "s/db_ver = None/db_ver = (${DB_VER%.*}, ${DB_VER#*.})/" \ + -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \ + -i setup2.py setup3.py || die + + # Adjust test.py to look in build/lib. + sed -e "s/'lib.%s' % PLAT_SPEC/'lib'/" \ + -i test2.py test3.py || die + + distutils-r1_src_prepare +} + +src_configure() { + # These are needed for both build and install. + export BERKELEYDB_DIR="${EPREFIX}/usr" + export BERKELEYDB_INCDIR="$(db_includedir ${DB_VER})" + export BERKELEYDB_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + export YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1 +} + +python_compile() { + if ! python_is_python3; then + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + distutils-r1_python_compile +} + +python_test() { + if python_is_python3; then + PYTHONPATH=Lib3 "${PYTHON}" test3.py -v || die "Testing failed with ${EPYTHON}" + else + PYTHONPATH=Lib "${PYTHON}" test.py -v || die "Testing failed with ${EPYTHON}" + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/bsddb3/bsddb3-6.2.4.ebuild b/dev-python/bsddb3/bsddb3-6.2.4.ebuild new file mode 100644 index 000000000000..debbad654805 --- /dev/null +++ b/dev-python/bsddb3/bsddb3-6.2.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE="threads(+)" + +inherit db-use distutils-r1 + +DESCRIPTION="Python bindings for Berkeley DB" +HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm https://pypi.python.org/pypi/bsddb3" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + <sys-libs/db-6.3:= + || ( + sys-libs/db:6.2 + sys-libs/db:6.1 + sys-libs/db:5.3 + sys-libs/db:5.1 + sys-libs/db:4.8 + sys-libs/db:4.7 + ) +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + # This list should be kept in sync with setup.py. + if [[ -z ${DB_VER} ]]; then + for DB_VER in 6.2 6.1 5.3 5.1 4.8 4.7; do + has_version "sys-libs/db:${DB_VER}" && break + done + fi + + # Force version. + sed -e "s/db_ver = None/db_ver = (${DB_VER%.*}, ${DB_VER#*.})/" \ + -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \ + -i setup2.py setup3.py || die + + # Adjust test.py to look in build/lib. + sed -e "s/'lib.%s' % PLAT_SPEC/'lib'/" \ + -i test2.py test3.py || die + + distutils-r1_python_prepare_all +} + +src_configure() { + # These are needed for both build and install. + export BERKELEYDB_DIR="${EPREFIX}/usr" + export BERKELEYDB_INCDIR="$(db_includedir ${DB_VER})" + export BERKELEYDB_LIBDIR="${EPREFIX}/usr/$(get_libdir)" + export YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1 +} + +python_compile() { + if ! python_is_python3; then + local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + distutils-r1_python_compile +} + +python_test() { + if python_is_python3; then + PYTHONPATH=Lib3 "${PYTHON}" test3.py -v || die "Testing failed with ${EPYTHON}" + else + PYTHONPATH=Lib "${PYTHON}" test.py -v || die "Testing failed with ${EPYTHON}" + fi +} diff --git a/dev-python/bsddb3/metadata.xml b/dev-python/bsddb3/metadata.xml new file mode 100644 index 000000000000..f91cbe0b667a --- /dev/null +++ b/dev-python/bsddb3/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">bsddb3</remote-id> + </upstream> +</pkgmetadata> |