/[gentoo-x86]/media-gfx/comix/comix-4.0.4.ebuild
Gentoo

Contents of /media-gfx/comix/comix-4.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 14 10:33:16 2012 UTC (2 years ago) by ssuominen
Branch: MAIN
Changes since 1.1: +30 -19 lines
Use python.eclass for forcing python2 instead of python3 wrt #363765 by Ewgenij Starostin and John J. Aylward

(Portage version: 2.2.0_alpha127/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/comix/comix-4.0.4.ebuild,v 1.1 2010/02/11 00:52:38 vanquirius Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit python
10
11 DESCRIPTION="A GTK image viewer specifically designed to handle comic books."
12 HOMEPAGE="http://comix.sourceforge.net"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
18 LANGS=" ca cs es fr hr hu id ja ko pl pt_BR ru sv zh_CN zh_TW"
19 IUSE="rar $(echo ${LANGS//\ /\ linguas_})"
20
21 RDEPEND=">=dev-python/imaging-1.1.5
22 >=dev-python/pygtk-2.12
23 rar? ( || ( app-arch/unrar app-arch/rar ) )"
24
25 pkg_setup() {
26 python_set_active_version 2
27 python_pkg_setup
28 }
29
30 src_prepare() {
31 # do not install .pyc into /usr/share
32 local pythondir="$(python_get_sitedir)/comix"
33 pythondir="${pythondir/\/usr\/}"
34 sed -i -e "s:share/comix/src:${pythondir}:g" install.py || die
35 python_convert_shebangs -r 2 install.py mime/comicthumb src/comix.py
36 }
37
38 src_install() {
39 dodir /usr
40 python2 install.py install --no-mime --dir "${D}"usr || die
41
42 insinto /usr/share/mime/packages
43 doins mime/comix.xml
44
45 insinto /etc/gconf/schemas
46 doins mime/comicbook.schemas
47
48 dobin mime/comicthumb
49 dodoc ChangeLog README
50
51 local lang
52 for lang in ${LANGS} ; do
53 use linguas_${lang} || rm -r "${D}"/usr/share/locale/${lang}
54 done
55 }

  ViewVC Help
Powered by ViewVC 1.1.20