/[gentoo-x86]/media-gfx/picasa/picasa-2.7.3736.15.ebuild
Gentoo

Contents of /media-gfx/picasa/picasa-2.7.3736.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 29 12:24:56 2011 UTC (3 years, 8 months ago) by angelos
Branch: MAIN
Changes since 1.3: +7 -5 lines
Fixed slot deps

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/picasa/picasa-2.7.3736.15.ebuild,v 1.3 2009/02/08 01:49:47 caster Exp $
4
5 EAPI=1
6 inherit eutils versionator rpm
7
8 MY_P="picasa-$(replace_version_separator 3 '-')"
9 DESCRIPTION="Google's photo organizer"
10 HOMEPAGE="http://picasa.google.com"
11 SRC_URI="http://dl.google.com/linux/rpm/stable/i386/${MY_P}.i386.rpm"
12 LICENSE="google-picasa"
13 SLOT="0"
14 KEYWORDS="-* amd64 x86"
15 IUSE=""
16 RESTRICT="mirror strip"
17 QA_TEXTRELS_x86="opt/picasa/wine/lib/wine/set_lang.exe.so
18 opt/picasa/wine/lib/wine/browser_prompt.exe.so
19 opt/picasa/wine/lib/wine/license.exe.so"
20 #QA_EXECSTACK_x86="opt/picasa/bin/xsu
21 # opt/picasa/wine/bin/wine
22 # opt/picasa/wine/bin/wineserver
23 # opt/picasa/wine/bin/wine-pthread
24 # opt/picasa/wine/bin/wine-kthread
25 # opt/picasa/wine/lib/*
26 # opt/picasa/wine/lib/wine/*"
27
28 RDEPEND="x86? (
29 dev-libs/atk
30 dev-libs/glib:2
31 dev-libs/libxml2:2
32 sys-libs/zlib
33 x11-libs/gtk+:2
34 x11-libs/libICE
35 x11-libs/libSM
36 x11-libs/libX11
37 x11-libs/libXext
38 x11-libs/libXi
39 x11-libs/libXt
40 x11-libs/pango )
41 amd64? (
42 app-emulation/emul-linux-x86-gtklibs )"
43
44 S="${WORKDIR}"
45
46 src_unpack() {
47 rpm_src_unpack ${A}
48 }
49
50 src_install() {
51 cd opt/picasa
52 dodir /opt/picasa
53 mv bin wine "${D}/opt/picasa/"
54
55 dodir /usr/bin
56 for i in picasa picasafontcfg mediadetector showpicasascreensaver; do
57 dosym /opt/picasa/bin/${i} /usr/bin/${i}
58 done
59
60 dodoc README LICENSE.FOSS
61
62 cd desktop
63
64 mv google-picasa-mediadetector.desktop.template google-picasa-mediadetector.desktop
65 mv google-picasa.desktop.template google-picasa.desktop
66 mv google-picasa-fontcfg.desktop.template google-picasa-fontcfg.desktop
67
68 sed -i -e "s:EXEC:mediadetector:" google-picasa-mediadetector.desktop
69 sed -i -e "s:EXEC:picasa:" google-picasa.desktop
70 sed -i -e "s:ICON:picasa.xpm:" google-picasa{,-mediadetector}.desktop
71 sed -i -e "s:EXEC:picasafontcfg:" google-picasa-fontcfg.desktop
72 sed -i -e "s:ICON:picasa-fontcfg.xpm:" google-picasa-fontcfg.desktop
73
74 echo "Categories=Graphics;" >> google-picasa.desktop
75 echo "Categories=Graphics;" >> google-picasa-fontcfg.desktop
76
77 doicon picasa.xpm picasa-fontcfg.xpm
78 domenu {google-picasa{,-mediadetector,-fontcfg},picasascr}.desktop
79 }

  ViewVC Help
Powered by ViewVC 1.1.20