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 | 57f89deaea9b788b08d576d0562ae28fb075a6c5 (patch) | |
tree | 24e6789166dc5a4e7b9bdd6ec366a9fdc5605f11 /dev-python/pyzor | |
parent | Version bump (diff) | |
download | gentoo-2-57f89deaea9b788b08d576d0562ae28fb075a6c5.tar.gz gentoo-2-57f89deaea9b788b08d576d0562ae28fb075a6c5.tar.bz2 gentoo-2-57f89deaea9b788b08d576d0562ae28fb075a6c5.zip |
Version bump (bug #269194).
(Portage version: 13623-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyzor')
-rw-r--r-- | dev-python/pyzor/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pyzor/pyzor-0.5.0.ebuild | 51 |
2 files changed, 59 insertions, 2 deletions
diff --git a/dev-python/pyzor/ChangeLog b/dev-python/pyzor/ChangeLog index 19db37305a7c..a57fc9d01bc5 100644 --- a/dev-python/pyzor/ChangeLog +++ b/dev-python/pyzor/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyzor -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.41 2009/01/05 07:43:11 robbat2 Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.42 2009/05/18 13:27:44 arfrever Exp $ + +*pyzor-0.5.0 (18 May 2009) + + 18 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +pyzor-0.5.0.ebuild: + Version bump (bug #269194). *pyzor-0.4.0-r4 (05 Jan 2009) 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" +} |