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

Contents of /media-gfx/picasa/picasa-3.0.0.57.4402.0_beta.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Jun 8 02:57:49 2012 UTC (2 years, 3 months ago) by zmedico
Branch: MAIN
Changes since 1.7: +2 -2 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

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/picasa/picasa-3.0.0.57.4402.0_beta.ebuild,v 1.7 2012/04/17 13:36:02 ssuominen Exp $
4
5 # needs SRC_URI arrows
6 EAPI=2
7
8 inherit eutils multilib versionator rpm nsplugins
9
10 MY_P="${PN}-$(get_version_component_range 1-2)"
11 DESCRIPTION="Google's photo organizer"
12 HOMEPAGE="http://picasa.google.com"
13 SRC_URI="http://dl.google.com/linux/rpm/testing/i386/${MY_P}-current.i386.rpm
14 -> ${P}.i386.rpm"
15 LICENSE="google-picasa"
16 SLOT="0"
17 KEYWORDS="-* amd64 x86"
18 RESTRICT="mirror strip"
19 IUSE="nsplugin"
20
21 RDEPEND="x86? (
22 dev-libs/atk
23 dev-libs/glib:2
24 dev-libs/libxml2:2
25 sys-libs/zlib
26 x11-libs/gtk+:2
27 x11-libs/libICE
28 x11-libs/libSM
29 x11-libs/libX11
30 x11-libs/libXext
31 x11-libs/libXi
32 x11-libs/libXt
33 x11-libs/pango )
34 amd64? (
35 app-emulation/emul-linux-x86-gtklibs
36 )
37 nsplugin? ( >=www-client/firefox-3.0.0 )
38 "
39 DEPEND=""
40
41 QA_TEXTRELS="opt/google/picasa/3.0/wine/lib/wine/set_lang.exe.so
42 opt/google/picasa/3.0/wine/lib/wine/browser_prompt.exe.so
43 opt/google/picasa/3.0/wine/lib/wine/check_dir.exe.so
44 opt/google/picasa/3.0/wine/lib/wine/license.exe.so"
45
46 S="${WORKDIR}"
47
48 src_unpack() {
49 rpm_src_unpack ${A}
50 }
51
52 src_install() {
53 local target="opt/google/picasa/3.0"
54 cd ${target}
55 dodir /${target}
56 mv bin $(get_libdir) wine "${D}/${target}" || die
57
58 # bug #298496
59 rm -rfv "${D}/${target}/wine/lib/wine/wineesd.drv.so" || die
60
61 dodir /usr/bin
62 for i in picasa picasafontcfg showpicasascreensaver; do
63 dosym /${target}/bin/${i} /usr/bin/${i}
64 done
65
66 dodir /${target}/desktop
67 mv desktop/picasa32x32.xpm "${D}/${target}/desktop/" || die
68
69 dodoc README LICENSE.FOSS || die
70
71 cd desktop || die
72
73 sed -e "s:EXEC:picasa:" -e "s:ICON:picasa.xpm:" \
74 picasa.desktop.template > picasa.desktop || die
75 echo "Categories=Graphics;" >> picasa.desktop
76
77 sed -e "s:EXEC:picasafontcfg:" -e "s:ICON:picasa-fontcfg.xpm:" \
78 picasa-fontcfg.desktop.template > picasa-fontcfg.desktop || die
79 echo "Categories=Graphics;" >> picasa-fontcfg.desktop
80
81 doicon picasa{,-fontcfg}.xpm || die
82 domenu {picasa{,-fontcfg,-kdehal},picasascr}.desktop || die
83
84 use nsplugin && inst_plugin /${target}/$(get_libdir)/npPicasa3.so
85 }

  ViewVC Help
Powered by ViewVC 1.1.20