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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun May 17 16:08:26 2009 UTC (5 years, 7 months ago) by nixnut
Branch: MAIN
Changes since 1.3: +2 -2 lines
ppc stable #268860
(Portage version: 2.1.6.13/cvs/Linux ppc)

1 # Copyright 1999-2009 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.3.ebuild,v 1.3 2009/05/13 19:40:00 maekke Exp $
4
5 inherit python
6
7 DESCRIPTION="A GTK image viewer specifically designed to handle comic books."
8 HOMEPAGE="http://comix.sourceforge.net"
9 SRC_URI="mirror://sourceforge/comix/${P}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
13 RDEPEND=">=dev-python/imaging-1.1.5
14 >=dev-python/pygtk-2.12
15 rar? ( || ( app-arch/unrar app-arch/rar ) )"
16 LANGS=" ca cs es fr hr hu id ja ko pl pt_BR ru sv zh_CN zh_TW"
17 IUSE="rar $(echo ${LANGS//\ /\ linguas_})"
18
19 src_unpack() {
20 unpack ${A}
21 # do not install .pyc into /usr/share
22 local pythondir="$(python_get_sitedir)/comix"
23 pythondir="${pythondir/\/usr\/}"
24 sed -i -e "s:share/comix/src:${pythondir}:g" "${S}"/install.py || die
25 }
26
27 src_compile() {
28 einfo "Nothing to be compiled."
29 }
30
31 src_install() {
32 dodir /usr
33 python install.py install --no-mime --dir "${D}"usr || die
34 insinto /usr/share/mime/packages/
35 doins "${S}"/mime/comix.xml || die
36 insinto /etc/gconf/schemas/
37 doins "${S}"/mime/comicbook.schemas || die
38 dobin "${S}"/mime/comicthumb || die
39 dodoc ChangeLog README || die
40
41 for lang in ${LANGS} ; do
42 use linguas_${lang} || rm -r "${D}"/usr/share/locale/${lang}
43 done
44 }

  ViewVC Help
Powered by ViewVC 1.1.20