Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/gtk+/
Date: Sat, 19 Jan 2019 14:09:38
Message-Id: 1547906942.12ee8c8f7cab875346fcad9a243a4552c0cc33c1.leio@gentoo
1 commit: 12ee8c8f7cab875346fcad9a243a4552c0cc33c1
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 19 14:09:02 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 19 14:09:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12ee8c8f
7
8 x11-libs/gtk+: remove old
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 x11-libs/gtk+/gtk+-3.24.3.ebuild | 229 ---------------------------------------
14 1 file changed, 229 deletions(-)
15
16 diff --git a/x11-libs/gtk+/gtk+-3.24.3.ebuild b/x11-libs/gtk+/gtk+-3.24.3.ebuild
17 deleted file mode 100644
18 index 6d73439415d..00000000000
19 --- a/x11-libs/gtk+/gtk+-3.24.3.ebuild
20 +++ /dev/null
21 @@ -1,229 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -GNOME2_LA_PUNT="yes"
27 -GNOME2_EAUTORECONF="yes"
28 -
29 -inherit flag-o-matic gnome2 multilib virtualx multilib-minimal
30 -
31 -DESCRIPTION="Gimp ToolKit +"
32 -HOMEPAGE="https://www.gtk.org/"
33 -
34 -LICENSE="LGPL-2+"
35 -SLOT="3"
36 -IUSE="aqua broadway cloudprint colord cups examples gtk-doc +introspection test vim-syntax wayland +X xinerama"
37 -REQUIRED_USE="
38 - || ( aqua wayland X )
39 - xinerama? ( X )
40 -"
41 -
42 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 -
44 -# Upstream wants us to do their job:
45 -# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
46 -RESTRICT="test"
47 -
48 -# FIXME: introspection data is built against system installation of gtk+:3,
49 -# bug #????
50 -COMMON_DEPEND="
51 - >=dev-libs/atk-2.15[introspection?,${MULTILIB_USEDEP}]
52 - >=dev-libs/glib-2.53.4:2[${MULTILIB_USEDEP}]
53 - media-libs/fontconfig[${MULTILIB_USEDEP}]
54 - >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}]
55 - >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
56 - >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}]
57 - >=x11-libs/pango-1.41.0[introspection?,${MULTILIB_USEDEP}]
58 - >=media-libs/harfbuzz-0.9:=
59 - x11-misc/shared-mime-info
60 -
61 - cloudprint? (
62 - >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
63 - >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] )
64 - colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
65 - cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] )
66 - introspection? ( >=dev-libs/gobject-introspection-1.39:= )
67 - wayland? (
68 - >=dev-libs/wayland-1.9.91[${MULTILIB_USEDEP}]
69 - >=dev-libs/wayland-protocols-1.12
70 - media-libs/mesa[wayland,${MULTILIB_USEDEP}]
71 - >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
72 - )
73 - X? (
74 - >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
75 - x11-libs/libX11[${MULTILIB_USEDEP}]
76 - >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
77 - x11-libs/libXext[${MULTILIB_USEDEP}]
78 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
79 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
80 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
81 - x11-libs/libXcomposite[${MULTILIB_USEDEP}]
82 - x11-libs/libXdamage[${MULTILIB_USEDEP}]
83 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
84 - )
85 -"
86 -DEPEND="${COMMON_DEPEND}
87 - app-text/docbook-xsl-stylesheets
88 - app-text/docbook-xml-dtd:4.1.2
89 - dev-libs/libxslt
90 - dev-libs/gobject-introspection-common
91 - >=dev-util/gdbus-codegen-2.48
92 - dev-util/glib-utils
93 - >=dev-util/gtk-doc-am-1.20
94 - gtk-doc? ( >=dev-util/gtk-doc-1.20 )
95 - >=sys-devel/gettext-0.19.7[${MULTILIB_USEDEP}]
96 - virtual/pkgconfig[${MULTILIB_USEDEP}]
97 - X? ( x11-base/xorg-proto )
98 - test? (
99 - media-fonts/font-misc-misc
100 - media-fonts/font-cursor-misc )
101 -"
102 -# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
103 -# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
104 -RDEPEND="${COMMON_DEPEND}
105 - >=dev-util/gtk-update-icon-cache-3
106 - !<gnome-base/gail-1000
107 - !<x11-libs/vte-0.31.0:2.90
108 -"
109 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
110 -PDEPEND="
111 - gnome-base/librsvg[${MULTILIB_USEDEP}]
112 - >=x11-themes/adwaita-icon-theme-3.14
113 - vim-syntax? ( app-vim/gtk-syntax )
114 -"
115 -
116 -MULTILIB_CHOST_TOOLS=(
117 - /usr/bin/gtk-query-immodules-3.0$(get_exeext)
118 -)
119 -
120 -strip_builddir() {
121 - local rule=$1
122 - shift
123 - local directory=$1
124 - shift
125 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
126 - || die "Could not strip director ${directory} from build."
127 -}
128 -
129 -src_prepare() {
130 - if ! use test ; then
131 - # don't waste time building tests
132 - strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
133 -
134 - # the tests dir needs to be build now because since commit
135 - # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
136 - # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
137 - fi
138 -
139 - if ! use examples; then
140 - # don't waste time building demos
141 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
142 - strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
143 - fi
144 -
145 - # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
146 - eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch
147 -
148 - # Fix broken autotools logic
149 - eapply "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch
150 -
151 - gnome2_src_prepare
152 -}
153 -
154 -multilib_src_configure() {
155 - # need libdir here to avoid a double slash in a path that libtool doesn't
156 - # grok so well during install (// between $EPREFIX and usr ...)
157 - # cloudprovider is not packaged in Gentoo
158 - ECONF_SOURCE=${S} \
159 - gnome2_src_configure \
160 - $(use_enable aqua quartz-backend) \
161 - $(use_enable broadway broadway-backend) \
162 - $(use_enable cloudprint) \
163 - $(use_enable colord) \
164 - $(use_enable cups cups auto) \
165 - $(multilib_native_use_enable gtk-doc) \
166 - $(multilib_native_use_enable introspection) \
167 - $(use_enable wayland wayland-backend) \
168 - $(use_enable X x11-backend) \
169 - $(use_enable X xcomposite) \
170 - $(use_enable X xdamage) \
171 - $(use_enable X xfixes) \
172 - $(use_enable X xkb) \
173 - $(use_enable X xrandr) \
174 - $(use_enable xinerama) \
175 - --disable-cloudproviders \
176 - --disable-mir-backend \
177 - --disable-papi \
178 - --enable-man \
179 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
180 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
181 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
182 -
183 - # work-around gtk-doc out-of-source brokedness
184 - if multilib_is_native_abi; then
185 - local d
186 - for d in gdk gtk libgail-util; do
187 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
188 - done
189 - fi
190 -}
191 -
192 -multilib_src_test() {
193 - "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
194 - GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
195 -}
196 -
197 -multilib_src_install() {
198 - gnome2_src_install
199 -}
200 -
201 -multilib_src_install_all() {
202 - insinto /etc/gtk-3.0
203 - doins "${FILESDIR}"/settings.ini
204 - # Skip README.{in,commits,win32} and useless ChangeLog that would get installed by default
205 - DOCS=( AUTHORS NEWS README )
206 - einstalldocs
207 -}
208 -
209 -pkg_preinst() {
210 - gnome2_pkg_preinst
211 -
212 - multilib_pkg_preinst() {
213 - # Make immodules.cache belongs to gtk+ alone
214 - local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
215 -
216 - if [[ -e ${EROOT}${cache} ]]; then
217 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
218 - else
219 - touch "${ED}"/${cache} || die
220 - fi
221 - }
222 - multilib_parallel_foreach_abi multilib_pkg_preinst
223 -}
224 -
225 -pkg_postinst() {
226 - gnome2_pkg_postinst
227 -
228 - multilib_pkg_postinst() {
229 - gnome2_query_immodules_gtk3 \
230 - || die "Update immodules cache failed (for ${ABI})"
231 - }
232 - multilib_parallel_foreach_abi multilib_pkg_postinst
233 -
234 - if ! has_version "app-text/evince"; then
235 - elog "Please install app-text/evince for print preview functionality."
236 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
237 - elog "add it to your settings.ini file."
238 - fi
239 -}
240 -
241 -pkg_postrm() {
242 - gnome2_pkg_postrm
243 -
244 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
245 - multilib_pkg_postrm() {
246 - rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
247 - }
248 - multilib_foreach_abi multilib_pkg_postrm
249 - fi
250 -}