summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2009-10-17 09:46:59 +0000
committerDirkjan Ochtman <djc@gentoo.org>2009-10-17 09:46:59 +0000
commit0f715d3a0d0e38668a4805838b67181d1b8547e9 (patch)
tree802a6a97eaf3f77f9a210ffebeda9ca93d24f6a4 /dev-python/pyzor
parentDisable src_test, bug 289452 (diff)
downloadhistorical-0f715d3a0d0e38668a4805838b67181d1b8547e9.tar.gz
historical-0f715d3a0d0e38668a4805838b67181d1b8547e9.tar.bz2
historical-0f715d3a0d0e38668a4805838b67181d1b8547e9.zip
Fix dependency based on useflag for dev-python/pyzor (#276070).
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pyzor')
-rw-r--r--dev-python/pyzor/ChangeLog7
-rw-r--r--dev-python/pyzor/Manifest13
-rw-r--r--dev-python/pyzor/pyzor-0.5.0-r1.ebuild53
3 files changed, 61 insertions, 12 deletions
diff --git a/dev-python/pyzor/ChangeLog b/dev-python/pyzor/ChangeLog
index 06a813e51c76..010e6dcd7135 100644
--- a/dev-python/pyzor/ChangeLog
+++ b/dev-python/pyzor/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pyzor
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.51 2009/09/06 21:21:26 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.52 2009/10/17 09:46:59 djc Exp $
+
+*pyzor-0.5.0-r1 (17 Oct 2009)
+
+ 17 Oct 2009; <djc@gentoo.org> +pyzor-0.5.0-r1.ebuild:
+ Depend on python[gdbm] only if installed with +pyzord (bug 276070).
06 Sep 2009; Christian Ruppert <idl0r@gentoo.org>
-files/debian_mbox.patch, -files/handle_unknown_encodings.patch,
diff --git a/dev-python/pyzor/Manifest b/dev-python/pyzor/Manifest
index bfcfc635363a..6d87aae403c1 100644
--- a/dev-python/pyzor/Manifest
+++ b/dev-python/pyzor/Manifest
@@ -1,15 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX pyzord_getopt.patch 640 RMD160 31e65c868032988cc42c4a6f7ca98efa0a0e6a12 SHA1 61754944886bc6138ba533fe51fdce1191dbaaa9 SHA256 6cc675c7caf935342c3728ef399c2ebdb57029d146903aa36593fa3a34f270a9
DIST pyzor-0.5.0.tar.bz2 40654 RMD160 6f0613e59cecfe390cc4602716ac4b7bb42c8d45 SHA1 ceb8a57dd3b281c06ebb62115123a629d348d3f1 SHA256 2bf3df9e916861063a73f7b46cb8b27bac6f661fce1362803de9e7921fc155ba
+EBUILD pyzor-0.5.0-r1.ebuild 1283 RMD160 e80af7339ae28d8fbb9fd473192f211de3bfdef3 SHA1 e1393e912cc4d93abf9ede51776c3a0597647220 SHA256 682805081619be92d83c46a7ed527ecdb8a174f569da8134e371b5de20af7d0e
EBUILD pyzor-0.5.0.ebuild 1231 RMD160 fa4b4cefcc29e6fa7531fb30ec1394b990d181f3 SHA1 c474b617b4fcd0539871cc561a574dff39c2953e SHA256 310a7c6ac38e5530c08fbdfa6bc383a87ef92ed8c321aa1f93699c100e353dca
-MISC ChangeLog 5848 RMD160 9c0ebf4774455e940ce51f6ec9687618c94dcd1e SHA1 265fd8595a69082864f2b7a24b23d087346b581e SHA256 03f23fc4273914a49714d45cc993bc1df88b2ae791910de8c4a7d0e595efff79
+MISC ChangeLog 6004 RMD160 cb1bc439607d7eccf031672788904e61d8586f2f SHA1 1d98ee0b808825fc2c3aeacd698f029702eed782 SHA256 9d1c8c9821d6319cf0caa9a2a7aa1250ba0d406a9f6f477f528928777f1091f9
MISC metadata.xml 226 RMD160 600a3f5f17f1fc118073824f628ff3b6b9593d9e SHA1 5ec42e8ac4995bfb7e9380daa1b4c53dc6f5566d SHA256 68c2b94a7055bb8f9fa53e636ebe8ae4f3713233181b75335efadaf903e5c400
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
-
-iEYEARECAAYFAkqkJ98ACgkQixe2jn+ufTgEGQCfXtU24MuMgr7Rt3GeHK5mZGwp
-hbMAmwWog7JgXPjVrQMtOaI9aSo9vh22
-=B1kf
------END PGP SIGNATURE-----
diff --git a/dev-python/pyzor/pyzor-0.5.0-r1.ebuild b/dev-python/pyzor/pyzor-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..0bdecdf37afe
--- /dev/null
+++ b/dev-python/pyzor/pyzor-0.5.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.5.0-r1.ebuild,v 1.1 2009/10/17 09:46:59 djc Exp $
+
+EAPI="2"
+
+inherit distutils eutils
+
+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 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pyzord"
+
+DEPEND="pyzord? ( dev-lang/python[gdbm] )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/pyzord_getopt.patch"
+
+ # rfc822BodyCleanerTest doesn't work fine.
+ # Remove it until it's fixed.
+ sed -i \
+ -e '/rfc822BodyCleanerTest/,/self\.assertEqual/d' \
+ unittests.py || die "sed in unittest.py failed"
+}
+
+src_install () {
+ DOCS="INSTALL THANKS UPGRADING"
+ distutils_src_install
+ dohtml docs/usage.html
+ rm -rf "${D}/usr/share/doc/pyzor"
+
+ if use pyzord; then
+ dodir /usr/sbin
+ mv "${D}/usr/bin/pyzord" "${D}/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
+}
+
+src_test() {
+ PYTHONPATH=build/lib/ "${python}" unittests.py || die "tests failed"
+}