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/python-lzo |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-lzo')
-rw-r--r-- | dev-python/python-lzo/Manifest | 8 | ||||
-rw-r--r-- | dev-python/python-lzo/files/lzo2compat.patch | 13 | ||||
-rw-r--r-- | dev-python/python-lzo/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-lzo/python-lzo-1.08-r1.ebuild | 28 | ||||
-rw-r--r-- | dev-python/python-lzo/python-lzo-1.11.ebuild | 33 |
5 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/python-lzo/Manifest b/dev-python/python-lzo/Manifest new file mode 100644 index 000000000000..9221ac67571d --- /dev/null +++ b/dev-python/python-lzo/Manifest @@ -0,0 +1,8 @@ +AUX lzo2compat.patch 417 SHA256 db59a49162a6b79055f9bff2b9140f2a36a0d423cf0d62caaa97da39863190d0 SHA512 eb433f90ac40fc85de8872f2bf94805712ff4b085bbcac168aec230a55b325ab5474746b2aa0a81b0e58b04e9da50e10877bbee66768106a03f7d83c97c7ffb3 WHIRLPOOL 8a32e93774449157aa427c92dc97c273b8073bff0cf85fcc290fd47ec56da30a686ebe5970b0aa07d233f12aa165a0366076ee144923fbbc1c28f8172b99ad56 +DIST python-lzo-1.08.tar.gz 13046 SHA256 2865afe7b995844bf80af94441d1ccf908b0e3aba3eacf5ba602f23e748476c4 SHA512 94b33e3b0e62b9c8a97147507f4516706d25d62c63ea938f0748e520a3e27760f0e3be142cb3e68aea132ae06759c91b3a4dac8e5010cdfab633e6c8d5904d8c WHIRLPOOL 84bcf130df8341ff145d895bc814b58ec2183c15ffedbc345aa6eb89931f22a9c78899c50b7a054beef9d7ca0b0c4be4e5e407a0ee794ee1830e2c6c9e796a31 +DIST python-lzo-1.11.tar.gz 13823 SHA256 38a0ea4ceb27cdd8e3526509fe1b7a936e5dfa57c64608fd32085c129e8be386 SHA512 580c68d2a5fdc43f6cb904507795c25b686c42074f217d067f51b336afa75d3eea10fcb7925c84aea352ce4383c591ff70583bef6c2fbc74116487ae87e1f87f WHIRLPOOL 1773200bbe7dbfe87e121aac733595d713eda4a4139241b11078dca617722a01c4fd5aa041d15be161de6b82dd4982f077c18a7f4edcc9fd18a1d3519eb8c992 +EBUILD python-lzo-1.08-r1.ebuild 622 SHA256 133d58ae211d14e892e015b3ceaacf7105772eb831d7b30a53cb542edabd8e54 SHA512 908c281da215817826e0b9b2dbbc3b5b24179c504d0ddf2aa5b7b58a766a023a52f713a84f61a387518323658850b061c29a48babcee461624711b8d17c05fc7 WHIRLPOOL 3c8172ca58d12ecfa76c6758bec0741a2c92b599cac7871ce0235227966e61349ce1be7c51385a67f1b361acaeb7553ec0605140cd74228f7639ae433deffa94 +EBUILD python-lzo-1.11.ebuild 719 SHA256 359c12be32da8731b3b0d45bb6aa950663370cb5c850e3d9b5b2698c525efbb4 SHA512 d060093a27551a7ae89244161056134d15c16bc7a6e34b718bffe0318fd6a834eaebc8afa6d488f0ec11ddb8f6c583d72ef7b1efd2ad99dbd5f782b7f9b71c0a WHIRLPOOL 00a45c73772bb5cf17dfd1e79e2bfdc8ce558f4bdf29b18b251d4f678d4ba7dd70782266c649fdf384a056a20e5d0abe0081280a029cad23218eef0b3f76756d +MISC ChangeLog 2467 SHA256 0e3f63ecda37e5b5ec1bf9b48cf959b4593df7860789208fdbfc88a8fd790269 SHA512 43eeeeec4ae90f00cceb0b896225a2150f4170517e952e88e72cdae4a6aa58ca1438fa4081eda72837d1d8c3f4ffdf5d6feb1005031cfb6c9707f1e672c633df WHIRLPOOL b4f5fb5b0529af702ece62768e6aac96eb8148acd3e0db46fbf52ef6e38fa6dd9f1c32d0fad9ee067ccd41550c23a9db0c2eb2f7579b11641e1f93f4603f7845 +MISC ChangeLog-2015 1275 SHA256 99af70d571be4c721fb2c2768362e5aaa24536984aee73474f5e8f9e33551588 SHA512 72cd5a594b484003599a285d16876395843762c5ae219213aa2b135542f761448cfd51f5140521b20f004cb4f3d4150d3d59fe2a4aa15a8e2ca02e7c29083b04 WHIRLPOOL ca3d537ea578dc0506e2d99ede73bb431e48ea90d2b985683efe3dfebd73bec253fd81e847bca4dcc5a7d1b78f1463147858867c3a0c4ac3636eaed55aa33339 +MISC metadata.xml 385 SHA256 2cd95cfe0fd92a8f45a5a2501117b0349b53a41ad100a3036aef7acc39f9475f SHA512 634d30e62ce3a8c09b3de241642e9ce8b059d9d3ff02e6530642dea4b0b4bcc8f108566bdc5ba52f6e63214546e11f734bdc094ef60ad13197b9f74cab71d03c WHIRLPOOL d745918c449bdab4e4d84db92a1b787098076454d407fa8650c9a0d1688bfed33cc84bf7302be35a5f29ddadb362b1d0379c57ec1f1cb30a8e6853dbe499ac9e diff --git a/dev-python/python-lzo/files/lzo2compat.patch b/dev-python/python-lzo/files/lzo2compat.patch new file mode 100644 index 000000000000..6ce728753df6 --- /dev/null +++ b/dev-python/python-lzo/files/lzo2compat.patch @@ -0,0 +1,13 @@ +--- setup.py ++++ setup.py +@@ -24,8 +24,8 @@ + include_dirs.append(os.path.join(CURL_DIR, "include")) + extra_objects.append(os.path.join(CURL_DIR, "lzo.lib")) + else: +- libraries = ["lzo"] +- ##include_dirs.append("/usr/local/include") ++ libraries = ["lzo2"] ++ include_dirs.append("/usr/include/lzo") + ##library_dirs.append("/usr/local/lib") + ##runtime_library_dirs.append("/usr/local/lib") + diff --git a/dev-python/python-lzo/metadata.xml b/dev-python/python-lzo/metadata.xml new file mode 100644 index 000000000000..7a73a15e9a73 --- /dev/null +++ b/dev-python/python-lzo/metadata.xml @@ -0,0 +1,12 @@ +<?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">python-lzo</remote-id> + <remote-id type="github">jd-boyd/python-lzo</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild new file mode 100644 index 000000000000..2c2c9210601d --- /dev/null +++ b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils prefix + +DESCRIPTION="Python interface to lzo" +HOMEPAGE="http://www.oberhumer.com/opensource/lzo/" +SRC_URI="http://www.oberhumer.com/opensource/lzo/download/LZO-v1/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/lzo:2" +RDEPEND="${DEPEND}" + +python_test() { + "${PYTHON}" tests/test.py || die "tests failed" +} + +src_prepare() { + epatch "$(PREFIX_LINE_MATCH='/##/!' \ + prefixify_ro "${FILESDIR}"/lzo2compat.patch)" +} diff --git a/dev-python/python-lzo/python-lzo-1.11.ebuild b/dev-python/python-lzo/python-lzo-1.11.ebuild new file mode 100644 index 000000000000..34f5c61abb3f --- /dev/null +++ b/dev-python/python-lzo/python-lzo-1.11.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 + +DESCRIPTION="Python interface to lzo" +HOMEPAGE="https://github.com/jd-boyd/python-lzo" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="dev-libs/lzo:2" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +src_prepare() { + distutils-r1_src_prepare + PREFIX="${EPREFIX}" +} + +python_test() { + distutils_install_for_testing + PYTHONPATH="${TEST_DIR}"/lib nosetests -v || die "tests failed" +} |