summaryrefslogtreecommitdiff
blob: f986a1c58157bc28ad51590623024ed99a17a72d (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
78
79
80
81
82
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit versionator

MY_PV=$(delete_all_version_separators)
MY_P=${PN}${MY_PV}
MY_PN=RawTherapee

DESCRIPTION="THe Experimental RAw Photo Editor"
HOMEPAGE="http://www.rawtherapee.com/"
SRC_URI=" x86? ( http://www.rawtherapee.com/${MY_P}.tgz )
	  amd64? ( http://www.rawtherapee.com/${MY_P}_64.tgz ) "

LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE=""
LANGS="cs da de en_US en_GB el es eu fr he hu it ja lv nl nn pl ru sk fi sv tr zh_CN zh_TW"
for lng in ${LANGS}; do
	IUSE="${IUSE} linguas_${lng}"
done

RDEPEND="x11-libs/gtk+:2
	>=dev-cpp/gtkmm-2.12
	>=sys-libs/glibc-2.4
	media-libs/jpeg
	media-libs/tiff
	media-libs/libpng"

RESTRICT="strip"

S=${WORKDIR}/${MY_PN}${MY_PV}

src_install() {
	insinto "/usr/share/pixmaps"
	doins "${FILESDIR}/rawtherapee.png" || die
	insinto "/usr/share/applications"
	doins "${FILESDIR}/rawtherapee.desktop" || die
	dobin "${FILESDIR}/rtstart" || die

	exeinto "/opt/${MY_PN}"
	doexe rt librtengine.so rtstart rwz_sdk.so || die

	insinto "/opt/${MY_PN}"
	doins -r options images profiles themes || die

	insinto "/opt/${MY_PN}/languages"
	doins "languages/english-us" || die # Always install english lang. file

	for lng in ${LINGUAS}; do
		case $lng in
			cs) doins "languages/czech" || die ;;
			da) doins "languages/dansk" || die ;;
			de) doins "languages/deutsch" || die ;;
			en_GB) doins "languages/english-uk" || die ;;
			es) doins "languages/espanol" || die ;;
			eu) doins "languages/euskara" || die ;;
			el) doins "languages/greek" || die ;;
			fr) doins "languages/francais" || die ;;
			he) doins "languages/hebrew" || die ;;
			hu) doins "languages/magyar" || die ;;
			it) doins "languages/italian" || die ;;
			ja) doins "languages/japanese" || die ;;
			lv) doins "languages/latvian" || die ;;
			nl) doins "languages/nederlands" || die ;;
			nn) doins "languages/norsk-bm" || die ;;
			pl) doins "languages/polish" || die ;;
			ru) doins "languages/russian" || die ;;
			sk) doins "languages/slovak" || die ;;
			fi) doins "languages/suomi" || die ;;
			sv) doins "languages/swedish" || die ;;
			tr) doins "languages/turkish" || die ;;
			zh_CN) doins "languages/chinese simplified" || die ;;
			zh_TW) doins "languages/chinese traditional" || die ;;
		esac
	done
}