Lines 1-13
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2013 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/x11-misc/zim/zim-0.57.ebuild,v 1.1 2012/12/13 16:49:49 jer Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=3 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
PYTHON_USE_WITH="sqlite" |
7 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
8 |
PYTHON_DEPEND="2:2.5" |
8 |
PYTHON_REQ_USE="sqlite" |
|
|
9 |
DISTUTILS_SINGLE_IMPL=1 |
9 |
|
10 |
|
10 |
inherit distutils eutils fdo-mime virtualx |
11 |
inherit distutils-r1 gnome2-utils fdo-mime virtualx |
11 |
|
12 |
|
12 |
DESCRIPTION="A desktop wiki" |
13 |
DESCRIPTION="A desktop wiki" |
13 |
HOMEPAGE="http://zim-wiki.org/" |
14 |
HOMEPAGE="http://zim-wiki.org/" |
Lines 18-53
Link Here
|
18 |
KEYWORDS="~amd64 ~x86" |
19 |
KEYWORDS="~amd64 ~x86" |
19 |
IUSE="test" |
20 |
IUSE="test" |
20 |
|
21 |
|
21 |
RDEPEND="|| ( >=dev-lang/python-2.6 dev-python/simplejson ) |
22 |
RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]" |
22 |
dev-python/pygtk" |
|
|
23 |
DEPEND="${RDEPEND} |
23 |
DEPEND="${RDEPEND} |
24 |
x11-misc/xdg-utils |
24 |
x11-misc/xdg-utils |
25 |
test? ( dev-vcs/bzr )" |
25 |
test? ( |
|
|
26 |
dev-vcs/bzr |
27 |
dev-vcs/git |
28 |
dev-vcs/mercurial )" |
26 |
|
29 |
|
27 |
pkg_setup() { |
30 |
PATCHES=( "${FILESDIR}"/${P}-remove-ubuntu-theme.patch ) |
28 |
python_set_active_version 2 |
|
|
29 |
python_pkg_setup |
30 |
} |
31 |
|
31 |
|
32 |
src_prepare() { |
32 |
python_prepare() { |
33 |
sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die |
33 |
sed -i -e "s/'USER'/'LOGNAME'/g" zim/__init__.py zim/fs.py || die |
|
|
34 |
distutils-r1_python_prepare |
35 |
} |
36 |
|
37 |
python_test() { |
38 |
VIRTUALX_COMMAND="${PYTHON}" virtualmake test.py |
34 |
} |
39 |
} |
35 |
|
40 |
|
36 |
src_test() { |
41 |
python_install() { |
37 |
VIRTUALX_COMMAND="$(PYTHON)" virtualmake test.py || die |
42 |
distutils-r1_python_install --skip-xdg-cmd |
38 |
} |
43 |
} |
39 |
|
44 |
|
40 |
src_install () { |
45 |
pkg_preinst() { |
41 |
doicon data/${PN}.png || die "doicon failed" |
46 |
gnome2_icon_savelist |
42 |
distutils_src_install --skip-xdg-cmd |
|
|
43 |
} |
47 |
} |
44 |
|
48 |
|
45 |
pkg_postinst() { |
49 |
pkg_postinst() { |
46 |
distutils_pkg_postinst |
|
|
47 |
fdo-mime_desktop_database_update |
50 |
fdo-mime_desktop_database_update |
48 |
xdg-icon-resource install --context mimetypes --size 64 \ |
51 |
gnome2_icon_cache_update |
49 |
"${ROOT}/usr/share/pixmaps/zim.png" \ |
|
|
50 |
application-x-zim-notebook || die "xdg-icon-resource install failed" |
51 |
if ! has_version ${CATEGORY}/${PN}; then |
52 |
if ! has_version ${CATEGORY}/${PN}; then |
52 |
einfo "Please emerge these packages for additional functionality" |
53 |
einfo "Please emerge these packages for additional functionality" |
53 |
einfo " dev-lang/R" |
54 |
einfo " dev-lang/R" |
Lines 64-71
Link Here
|
64 |
} |
65 |
} |
65 |
|
66 |
|
66 |
pkg_postrm() { |
67 |
pkg_postrm() { |
67 |
distutils_pkg_postrm |
|
|
68 |
fdo-mime_desktop_database_update |
68 |
fdo-mime_desktop_database_update |
69 |
xdg-icon-resource uninstall --context mimetypes --size 64 \ |
69 |
gnome2_icon_cache_update |
70 |
application-x-zim-notebook || die "xdg-icon-resource uninstall failed" |
|
|
71 |
} |
70 |
} |