diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2009-10-17 09:46:59 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2009-10-17 09:46:59 +0000 |
commit | 3dd1fa63e303cd20f6465ae7c20e87edcde2711b (patch) | |
tree | 58922f17e98c62a5dc30b0dc095f41cbb44fa63e /dev-python | |
parent | Disable src_test, bug 289452 (diff) | |
download | gentoo-2-3dd1fa63e303cd20f6465ae7c20e87edcde2711b.tar.gz gentoo-2-3dd1fa63e303cd20f6465ae7c20e87edcde2711b.tar.bz2 gentoo-2-3dd1fa63e303cd20f6465ae7c20e87edcde2711b.zip |
Fix dependency based on useflag for dev-python/pyzor (#276070).
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyzor/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pyzor/pyzor-0.5.0-r1.ebuild | 53 |
2 files changed, 59 insertions, 1 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/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" +} |