diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-05-18 13:27:44 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-05-18 13:27:44 +0000 |
commit | 8dd15a42008ce1010aa63ad27ab1a668ecb1e8c4 (patch) | |
tree | 9af60c50b0c649927283a73a6ecb9eee6308a582 /dev-python/pyzor/pyzor-0.5.0.ebuild | |
parent | Version bump (diff) | |
download | historical-8dd15a42008ce1010aa63ad27ab1a668ecb1e8c4.tar.gz historical-8dd15a42008ce1010aa63ad27ab1a668ecb1e8c4.tar.bz2 historical-8dd15a42008ce1010aa63ad27ab1a668ecb1e8c4.zip |
Version bump (bug #269194).
Package-Manager: portage-13623-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pyzor/pyzor-0.5.0.ebuild')
-rw-r--r-- | dev-python/pyzor/pyzor-0.5.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyzor/pyzor-0.5.0.ebuild b/dev-python/pyzor/pyzor-0.5.0.ebuild new file mode 100644 index 000000000000..11a70bb3ba60 --- /dev/null +++ b/dev-python/pyzor/pyzor-0.5.0.ebuild @@ -0,0 +1,51 @@ +# 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.ebuild,v 1.1 2009/05/18 13:27:44 arfrever 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="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/" + 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" +} |