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/pyzor |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyzor')
-rw-r--r-- | dev-python/pyzor/Manifest | 7 | ||||
-rw-r--r-- | dev-python/pyzor/metadata.xml | 18 | ||||
-rw-r--r-- | dev-python/pyzor/pyzor-0.7.0.ebuild | 56 | ||||
-rw-r--r-- | dev-python/pyzor/pyzor-1.0.0.ebuild | 66 |
4 files changed, 147 insertions, 0 deletions
diff --git a/dev-python/pyzor/Manifest b/dev-python/pyzor/Manifest new file mode 100644 index 000000000000..2d2c026b8bb4 --- /dev/null +++ b/dev-python/pyzor/Manifest @@ -0,0 +1,7 @@ +DIST pyzor-0.7.0.tar.bz2 78555 SHA256 6d9ca62bd4aa9a0210adb9d4c8ff2b38bb2cd051f1517ce29e88d7fbe4b1026d SHA512 40026fc0276b4cf60fe7dfe30e2d4d4d1f220cf860b8aaef9d983e632a7d87bc8deb3430ded7520a69269ef56550117735a6e3c8d046d4cad7066f8597ead3cd WHIRLPOOL dd8466477e38362fa0a64ec66822ae3820c22f8ae13b40002145b1e688d17c17edfb800eb44679ff961e74b667daa43ef09d8eadb92f683c9e73c9b00fad23b9 +DIST pyzor-1.0.0.tar.gz 126276 SHA256 548bc461c01e790cf8db1f26d9f66b281f3aa3cf5f5a6fd647071360ed663ef1 SHA512 b3fb8b2c5261e187a2ab3a5a3b12d221df7de08766c6bb2ad9990c0f23517534871ecc9d5ad529e79b0d0aef8b2b800728320c57435a8c0d8c3f80a4ba0f7e4a WHIRLPOOL ad92ca30c116b1c22cc49b5643ecb03880ef1911d7f2a59cf9b655ccd5fa5167e0ccdb890d92754ed1b1c0730785c186f6615c569b6bbbc36aed26e2423037b1 +EBUILD pyzor-0.7.0.ebuild 1570 SHA256 95c92d54d74766f4dd5127bfdc2fa51bd307543d076ec8190d0a0bba458c3c49 SHA512 c57af2dfe4662323575d9a992c1d5b385566bd5e7b03b3dc9a3d534b992f93effc991f6b7430eabfb518bc7eaeabb9018b1c6183501a69a948ca3a63c00377fd WHIRLPOOL 5d69dab6f570daa5debd4ef457ec988e062a09d93a1c0f61086dadf167a7e835e6974f7b0c7f074fc6124d4016e12305443d3140fe5090df2e47e03e6f3b75ad +EBUILD pyzor-1.0.0.ebuild 1790 SHA256 51ba05c0bf2553b394381d3d0c3d12a6ddf5d59698cfa6f9c917e533749f57ce SHA512 1d1ff3d8dea3a968b1244d032767ecbf6819bdc8c869869ba74c81569bb8dcd7dfa61f14a3e844403b5065f12b950daad1b90560a59c2e77a8b93939e3f53b04 WHIRLPOOL 1a14ad28778b88b0c34be9df70939129e702153e6207a105d441b900b6081b90c9bc51b7e191d87f7a322ad3ba5d86f5c73fbbc348a9d7af55d1ab380d45c4b6 +MISC ChangeLog 3542 SHA256 8235388ca136a871a3dafd03912248c1e128b4ced6d8c7ada5af7466c1929cb2 SHA512 ad909bd921877f17ac980fa1476d1b1897786bd93c982dc1db756b37a4a04c0a4e297b20f5b8e31dae765e3151d7bfbe0e3246fca1755ac9afb5de2fa58e3414 WHIRLPOOL 0d0b8bd3afe8e3b5679b38a959faecd8cb2e28625983f23c4ba70bcc090dba6212c72fd1c59a03a03b8a129f8182a69bf463a039c1d9e483ff53c4c0895be79d +MISC ChangeLog-2015 9029 SHA256 e60081e5a832eb1c4edf495f9b1fa2df7fea5050ceedcdaf8c40f71ead61e94c SHA512 ba37793d917d4cde0149bd61ffbde792790a05db8baa253d095e9716b1dad661ca643dfc4e97bcac3b54fc4cfa3f5666dbc6958bf185b3f354541441661ed290 WHIRLPOOL ccf73280a42dc67e97be685ddc39e9f008d9a8a5247ef16cd6b73a24646e4f61a4ec7fab3ebbc0921887c8e208b7fbf527d259549178c3d614977d57a0ba1448 +MISC metadata.xml 637 SHA256 123353a10d15ca0c0694c62ed5e21b468d103f6947695bc816d00a7a8c5d87c5 SHA512 067c5454713ea8fd1d14378537f65eec5c1c58b0b73a05a9a401b6e80afc46050e5f2020cfefff5d5925140f5b02128f44f179480066f8f325efd61b049899a2 WHIRLPOOL 6a85fdae96db8cfb433b52b03ebe48a1029b2ce9482e982b7769f2b6a986b714533d8d70f100f6bfa3f66716479555656d68b72ebd4bbdaf7fc64a1d28ae80d6 diff --git a/dev-python/pyzor/metadata.xml b/dev-python/pyzor/metadata.xml new file mode 100644 index 000000000000..601b2a901647 --- /dev/null +++ b/dev-python/pyzor/metadata.xml @@ -0,0 +1,18 @@ +<?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> + <use> + <flag name="pyzord">enable support for pyzord</flag> + <flag name="mysql">Enables mysql support</flag> + <flag name="redis">Enables redis support</flag> + <flag name="gevent">Enable support for the gevent based handler</flag> + </use> + <upstream> + <remote-id type="github">SpamExperts/pyzor</remote-id> + <remote-id type="sourceforge">pyzor</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyzor/pyzor-0.7.0.ebuild b/dev-python/pyzor/pyzor-0.7.0.ebuild new file mode 100644 index 000000000000..e1057b928862 --- /dev/null +++ b/dev-python/pyzor/pyzor-0.7.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4} ) +PYHON_REQ_USE="gdbm" + +inherit distutils-r1 + +DESCRIPTION="A distributed, collaborative spam detection and filtering network" +HOMEPAGE="http://pyzor.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +IUSE="mysql pyzord redis test" + +RDEPEND="mysql? ( $(python_gen_cond_dep '>=dev-python/mysql-python-1.2.5[${PYTHON_USEDEP}]' python2_7) ) + redis? ( ~dev-python/redis-py-2.9.1[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +# https://sourceforge.net/apps/trac/pyzor/attachment/ticket/196/ +DISTUTILS_IN_SOURCE_BUILD=1 + +REQUIRED_USE="test? ( mysql redis )" + +python_test() { + # https://sourceforge.net/apps/trac/pyzor/ticket/196 + # In this ticket it clearly states the suite is written for py2 + # While it's feasible to make it into a py3 ready state, nah + if ! python_is_python3; then + PYTHONPATH=. "${PYTHON}" ./tests/unit/__init__.py + fi +} + +src_install () { + distutils-r1_src_install + + if use pyzord; then + dodir /usr/sbin + mv "${ED}"usr/bin/pyzord* "${ED}usr/sbin" + else + rm "${ED}"usr/bin/pyzord* + fi +} + +pkg_postinst() { + if use pyzord; then + ewarn "/usr/bin/pyzord has been moved to /usr/sbin" + fi + + einfo "If you want to run the pyzor server you will need to emerge / re-emerge" + einfo "with use flag mysql and or redis. Without either flag provides only the pyzor client" +} diff --git a/dev-python/pyzor/pyzor-1.0.0.ebuild b/dev-python/pyzor/pyzor-1.0.0.ebuild new file mode 100644 index 000000000000..00d660a811b1 --- /dev/null +++ b/dev-python/pyzor/pyzor-1.0.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +PYHON_REQ_USE="gdbm" + +inherit distutils-r1 + +MY_PV="1-0-0" +DESCRIPTION="A distributed, collaborative spam detection and filtering network" +HOMEPAGE="https://github.com/SpamExperts/pyzor/" +SRC_URI="https://github.com/SpamExperts/${PN}/archive/release-${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux" + +IUSE="doc gevent mysql pyzord redis test" + +RDEPEND="mysql? ( $(python_gen_cond_dep '>=dev-python/mysql-python-1.2.5[${PYTHON_USEDEP}]' python2_7) ) + redis? ( ~dev-python/redis-py-2.9.1[${PYTHON_USEDEP}] ) + gevent? ( $(python_gen_cond_dep '~dev-python/gevent-1.0.1[${PYTHON_USEDEP}]' python2_7) )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +# https://sourceforge.net/apps/trac/pyzor/attachment/ticket/196/ +DISTUTILS_IN_SOURCE_BUILD=1 + +REQUIRED_USE="test? ( mysql redis )" +S="${WORKDIR}/${PN}-release-${MY_PV}" + +python_test() { + # The suite is py2 friendly only + if ! python_is_python3; then + PYTHONPATH=. "${PYTHON}" ./tests/unit/__init__.py + fi +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( docs/.build/html/. ) + distutils-r1_python_install_all +} + +src_install () { + distutils-r1_src_install + + if use pyzord; then + dodir /usr/sbin + mv "${D}"usr/bin/pyzord* "${ED}usr/sbin" + else + rm "${D}"usr/bin/pyzord* + fi +} + +pkg_postinst() { + if use pyzord; then + ewarn "/usr/bin/pyzord has been moved to /usr/sbin" + fi + + einfo "If you want to run the pyzor server you will need to emerge / re-emerge" + einfo "with use flag mysql and or redis. Without either flag provides only the pyzor client" +} |