Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 542310
Collapse All | Expand All

(-)archivemail-0.9.0.ebuild (-16 / +11 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-mail/archivemail/archivemail-0.9.0.ebuild,v 1.6 2014/08/10 20:43:13 slyfox Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-mail/archivemail/archivemail-0.9.0.ebuild,v 1.6 2014/08/10 20:43:13 slyfox Exp $
4
4
5
EAPI="3"
5
EAPI=5
6
PYTHON_DEPEND="2"
7
6
8
inherit distutils
7
PYTHON_COMPAT=( python2_7 )
8
DISTUTILS_SINGLE_IMPL=1
9
10
inherit distutils-r1
9
11
10
DESCRIPTION="Tool written in Python for archiving and compressing old email in mailboxes"
12
DESCRIPTION="Tool written in Python for archiving and compressing old email in mailboxes"
11
HOMEPAGE="http://archivemail.sourceforge.net/"
13
HOMEPAGE="http://archivemail.sourceforge.net/"
Lines 13-42 Link Here
13
15
14
LICENSE="GPL-2"
16
LICENSE="GPL-2"
15
SLOT="0"
17
SLOT="0"
16
KEYWORDS="amd64 sparc x86"
18
KEYWORDS="~amd64 ~sparc ~x86"
17
IUSE=""
19
IUSE=""
18
20
19
DOCS="examples/* FAQ"
21
DOCS="examples/* FAQ"
20
22
21
pkg_setup() {
23
pkg_setup() {
22
	python_set_active_version 2
24
	python-single-r1_pkg_setup
23
	python_pkg_setup
24
}
25
}
25
26
26
src_prepare() {
27
python_prepare_all() {
27
	distutils_src_prepare
28
	# Fix tests for python-2.7
28
	# Fix tests for python-2.7
29
	sed -i -e 's:\(fp_archive = \)FixedGzipFile:\1gzip.GzipFile:' \
29
	sed -i -e 's:\(fp_archive = \)FixedGzipFile:\1gzip.GzipFile:' \
30
		test_archivemail || die "sed failed"
30
		test_archivemail || die "sed failed"
31
	distutils-r1_python_prepare_all
31
}
32
}
32
33
33
src_test() {
34
python_test() {
34
	echo ">>> Test phase: ${CATEGORY}/${PF}"
35
	echo ">>> Test phase: ${CATEGORY}/${PF}"
35
	"${S}"/test_archivemail || die "test_archivemail failed"
36
	"${S}"/test_archivemail || die "test_archivemail failed"
36
}
37
}
37
38
src_install() {
39
	distutils_src_install --install-data=/usr/share
40
	mv "${D}/usr/share/share/man" "${D}/usr/share/" && \
41
		rm -rf "${D}/usr/share/share" || die
42
}

Return to bug 542310