summaryrefslogtreecommitdiff
blob: afc3c3f703ef065a45c8b993830c1565bf794128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $

inherit eutils versionator rpm

MY_P="picasa-$(replace_version_separator 3 '-')"
DESCRIPTION="Google's photo organizer"
HOMEPAGE="http://picasa.google.com"
SRC_URI="http://dl.google.com/linux/rpm/stable/i386/${MY_P}.i386.rpm"
LICENSE="google-picasa"
SLOT="0"
KEYWORDS="-* amd64 x86"
RESTRICT="mirror strip"
QA_TEXTRELS_x86="opt/picasa/wine/lib/wine/set_lang.exe.so
		opt/picasa/wine/lib/wine/browser_prompt.exe.so
		opt/picasa/wine/lib/wine/license.exe.so"
#QA_EXECSTACK_x86="opt/picasa/bin/xsu
#               opt/picasa/wine/bin/wine
#               opt/picasa/wine/bin/wineserver
#               opt/picasa/wine/bin/wine-pthread
#               opt/picasa/wine/bin/wine-kthread
#               opt/picasa/wine/lib/*
#               opt/picasa/wine/lib/wine/*"

RDEPEND="x86? (
		dev-libs/atk
		dev-libs/glib
		dev-libs/libxml2
		sys-libs/zlib
		x11-libs/gtk+
		x11-libs/libICE
		x11-libs/libSM
		x11-libs/libX11
		x11-libs/libXext
		x11-libs/libXi
		x11-libs/libXt
		x11-libs/pango )
	amd64? (
		app-emulation/emul-linux-x86-gtklibs )"

S="${WORKDIR}"

src_unpack() {
	rpm_src_unpack ${A}
}

src_install() {
	cd opt/picasa
	dodir /opt/picasa
	mv bin wine "${D}/opt/picasa/"

	dodir /usr/bin
	for i in picasa picasafontcfg mediadetector showpicasascreensaver; do
		dosym /opt/picasa/bin/${i} /usr/bin/${i}
	done

	dodoc README LICENSE.FOSS

	cd desktop

	mv google-picasa-mediadetector.desktop.template google-picasa-mediadetector.desktop
	mv google-picasa.desktop.template google-picasa.desktop
	mv google-picasa-fontcfg.desktop.template google-picasa-fontcfg.desktop

	sed -i -e "s:EXEC:mediadetector:" google-picasa-mediadetector.desktop
	sed -i -e "s:EXEC:picasa:" google-picasa.desktop
	sed -i -e "s:ICON:picasa.xpm:" google-picasa{,-mediadetector}.desktop
	sed -i -e "s:EXEC:picasafontcfg:" google-picasa-fontcfg.desktop
	sed -i -e "s:ICON:picasa-fontcfg.xpm:" google-picasa-fontcfg.desktop

	echo "Categories=Graphics;" >> google-picasa.desktop
	echo "Categories=Graphics;" >> google-picasa-fontcfg.desktop

	doicon picasa.xpm picasa-fontcfg.xpm
	domenu {google-picasa{,-mediadetector,-fontcfg},picasascr}.desktop
}