Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/shotwell/
Date: Sat, 10 Oct 2015 11:17:11
Message-Id: 1444475741.12d196f35ba772eb28a9b81b6db831c912d5237e.jlec@gentoo
1 commit: 12d196f35ba772eb28a9b81b6db831c912d5237e
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 08:27:21 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 11:15:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d196f3
7
8 media-gfx/shotwell: Properly support linguas
9
10 Thanks Jan Vesely for the patch
11
12 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561668
13
14 Package-Manager: portage-2.2.22
15 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
16
17 media-gfx/shotwell/shotwell-0.22.0-r1.ebuild | 118 +++++++++++++++++++++++++++
18 1 file changed, 118 insertions(+)
19
20 diff --git a/media-gfx/shotwell/shotwell-0.22.0-r1.ebuild b/media-gfx/shotwell/shotwell-0.22.0-r1.ebuild
21 new file mode 100644
22 index 0000000..d8b5082
23 --- /dev/null
24 +++ b/media-gfx/shotwell/shotwell-0.22.0-r1.ebuild
25 @@ -0,0 +1,118 @@
26 +# Copyright 1999-2015 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=5
31 +
32 +GCONF_DEBUG="no"
33 +VALA_MIN_API_VERSION="0.26"
34 +VALA_MAX_API_VERSION="0.26"
35 +
36 +inherit eutils gnome2 multilib toolchain-funcs vala versionator
37 +
38 +MY_PV=$(get_version_component_range 1-2)
39 +DESCRIPTION="Open source photo manager for GNOME"
40 +HOMEPAGE="https://wiki.gnome.org/Apps/Shotwell"
41 +SRC_URI="
42 + mirror://gnome/sources/${PN}/$(get_version_component_range 1-2)/${P}.tar.xz
43 + http://pkgs.fedoraproject.org/cgit/shotwell.git/plain/shotwell.1
44 + http://pkgs.fedoraproject.org/cgit/shotwell.git/plain/shotwell-icons.tar.bz2
45 + "
46 +
47 +LICENSE="LGPL-2.1"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
50 +IUSE=""
51 +
52 +CORE_SUPPORTED_LANGUAGES="
53 + af ar as ast bg bn bn_IN bs ca cs da de el en_GB eo es et eu fi fr gd gl gu
54 + he hi hr hu ia id it ja kk km kn ko ky lt lv mk ml mr nb nl nn or pa pl pt
55 + pt_BR ro ru sk sl sr sr@latin sv ta te th tr uk vi zh_CN zh_HK zh_TW"
56 +
57 +for x in ${CORE_SUPPORTED_LANGUAGES}; do
58 + IUSE+="linguas_${x} "
59 +done
60 +
61 +RDEPEND="
62 + app-text/gnome-doc-utils
63 + >=dev-db/sqlite-3.5.9:3
64 + >=dev-libs/dbus-glib-0.80
65 + >=dev-libs/glib-2.30.0:2
66 + >=dev-libs/json-glib-0.7.6
67 + >=dev-libs/libgee-0.8.5:0.8
68 + >=dev-libs/libxml2-2.6.32:2
69 + >=dev-util/desktop-file-utils-0.13
70 + gnome-base/dconf
71 + >=media-libs/gexiv2-0.4.90
72 + media-libs/gst-plugins-base:1.0
73 + media-libs/gst-plugins-good:1.0
74 + media-libs/gstreamer:1.0
75 + media-libs/lcms:2
76 + >=media-libs/libexif-0.6.16:=
77 + >=media-libs/libgphoto2-2.4.2:=
78 + >=media-libs/libraw-0.13.2:=
79 + >=net-libs/libsoup-2.26.0:2.4
80 + >=net-libs/rest-0.7:0.7
81 + >=net-libs/webkit-gtk-1.4:3
82 + virtual/libgudev:=[introspection]
83 + >=x11-libs/gtk+-3.12.2:3[X]"
84 +DEPEND="${RDEPEND}
85 + $(vala_depend)
86 + >=sys-devel/m4-1.4.13"
87 +
88 +DOCS=( AUTHORS MAINTAINERS NEWS README THANKS )
89 +
90 +# This probably comes from libraries that
91 +# shotwell-video-thumbnailer links to.
92 +# Nothing we can do at the moment. #435048
93 +QA_FLAGS_IGNORED="/usr/libexec/${PN}/${PN}-video-thumbnailer"
94 +
95 +pkg_setup() {
96 + tc-export CC
97 + G2CONF="${G2CONF}
98 + --disable-schemas-compile
99 + --disable-desktop-update
100 + --disable-icon-update
101 + --prefix=/usr
102 + --lib=$(get_libdir)"
103 +}
104 +
105 +src_prepare() {
106 + local x
107 + vala_src_prepare
108 + sed \
109 + -e 's|CFLAGS :|CFLAGS +|g' \
110 + -i plugins/Makefile.plugin.mk || die
111 + epatch \
112 + "${FILESDIR}"/${PN}-0.13.1-ldflags.patch
113 +
114 + # remove disabled lenguages from build
115 + for x in ${CORE_SUPPORTED_LANGUAGES}; do
116 + if ! has ${x} ${LINGUAS}; then
117 + sed -i "/^${x}$/d" "${S}"/po/LINGUAS || die
118 + fi
119 + done
120 + [[ $(wc -l ${S}/po/LINGUAS | awk '{print $1}') == 0 ]] && \
121 + echo en_GB > "${S}"/po/LINGUAS
122 +}
123 +
124 +src_configure() {
125 + ./configure \
126 + ${G2CONF} \
127 + || die
128 +}
129 +
130 +src_compile() {
131 + local valaver="$(vala_best_api_version)"
132 + emake VALAC="$(type -p valac-${valaver})"
133 +}
134 +
135 +src_install() {
136 + local res
137 + gnome2_src_install
138 +
139 + doman "${DISTDIR}"/${PN}.1
140 + for res in 16 22 24 32 48 256; do
141 + doicon -s ${res} "${WORKDIR}"/${res}x${res}/*
142 + done
143 +}