Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libdbusmenu/
Date: Thu, 01 Sep 2022 18:32:45
Message-Id: 1662057146.221bf89e750c65119064b1b395c8dc118d7baa35.asturm@gentoo
1 commit: 221bf89e750c65119064b1b395c8dc118d7baa35
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 18:32:13 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 18:32:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=221bf89e
7
8 dev-libs/libdbusmenu: drop 16.04.0-r1
9
10 Closes: https://bugs.gentoo.org/867106
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-libs/libdbusmenu/libdbusmenu-16.04.0-r1.ebuild | 146 ---------------------
14 1 file changed, 146 deletions(-)
15
16 diff --git a/dev-libs/libdbusmenu/libdbusmenu-16.04.0-r1.ebuild b/dev-libs/libdbusmenu/libdbusmenu-16.04.0-r1.ebuild
17 deleted file mode 100644
18 index a179f387ee24..000000000000
19 --- a/dev-libs/libdbusmenu/libdbusmenu-16.04.0-r1.ebuild
20 +++ /dev/null
21 @@ -1,146 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -VALA_MIN_API_VERSION=0.16
28 -VALA_USE_DEPEND=vapigen
29 -VIRTUALX_REQUIRED=manual
30 -
31 -inherit autotools flag-o-matic multilib-minimal vala virtualx xdg-utils
32 -
33 -DESCRIPTION="Library to pass menu structure across DBus"
34 -HOMEPAGE="https://launchpad.net/libdbusmenu"
35 -SRC_URI="https://launchpad.net/${PN/lib}/${PV%.*}/${PV}/+download/${P}.tar.gz"
36 -
37 -LICENSE="LGPL-2.1 LGPL-3"
38 -SLOT="0"
39 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
40 -IUSE="debug gtk gtk3 +introspection test"
41 -RESTRICT="!test? ( test )"
42 -
43 -RDEPEND="
44 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
45 - >=dev-libs/glib-2.35.4[${MULTILIB_USEDEP}]
46 - dev-libs/libxml2[${MULTILIB_USEDEP}]
47 - gtk? ( x11-libs/gtk+:2[introspection?,${MULTILIB_USEDEP}] )
48 - gtk3? ( >=x11-libs/gtk+-3.2:3[introspection?,${MULTILIB_USEDEP}] )
49 - introspection? ( >=dev-libs/gobject-introspection-1 )"
50 -# tests also have optional dep on valgrind which we do not enforce
51 -DEPEND="${RDEPEND}
52 - app-text/gnome-doc-utils
53 - dev-util/glib-utils
54 - dev-util/intltool
55 - sys-devel/gettext
56 - virtual/pkgconfig
57 - introspection? ( $(vala_depend) )
58 - test? (
59 - >=dev-libs/json-glib-0.13.4[${MULTILIB_USEDEP}]
60 - >=dev-util/dbus-test-runner-15.04.0_p100
61 - gtk? ( ${VIRTUALX_DEPEND} )
62 - gtk3? ( ${VIRTUALX_DEPEND} )
63 - )"
64 -
65 -pkg_setup() {
66 - xdg_environment_reset
67 -}
68 -
69 -src_prepare() {
70 - if use introspection; then
71 - vala_src_prepare
72 - export VALA_API_GEN="${VAPIGEN}"
73 - fi
74 -
75 - eapply "${FILESDIR}/${P}-configure-fix.patch"
76 - eapply "${FILESDIR}/${P}-werror.patch"
77 - eapply_user
78 - eautoreconf
79 -}
80 -
81 -multilib_src_configure() {
82 - append-flags -Wno-error #414323
83 -
84 - local myconf=(
85 - --cache-file="${BUILD_DIR}"/config.cache
86 - --disable-gtk
87 - --disable-static
88 - # dumper extra tool is only for GTK+-2.x
89 - --disable-dumper
90 - $(multilib_native_use_enable introspection)
91 - $(multilib_native_use_enable introspection vala)
92 - $(use_enable debug massivedebugging)
93 - $(use_enable test tests)
94 - )
95 - local ECONF_SOURCE=${S}
96 - econf "${myconf[@]}"
97 -
98 - GTK_VARIANTS=( $(usex gtk 2 '') $(usex gtk3 3 '') )
99 - local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
100 - local top_builddir=${BUILD_DIR}
101 -
102 - gtk_configure() {
103 - local gtkconf=(
104 - "${myconf[@]}"
105 - --enable-gtk
106 - --with-gtk="${MULTIBUILD_VARIANT}"
107 - )
108 - mkdir -p "${BUILD_DIR}" || die
109 - cd "${BUILD_DIR}" || die
110 - econf "${gtkconf[@]}"
111 -
112 - rm -r libdbusmenu-glib || die
113 - ln -s "${top_builddir}"/libdbusmenu-glib libdbusmenu-glib || die
114 - }
115 - [[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant gtk_configure
116 -}
117 -
118 -gtk_emake() {
119 - emake -C "${BUILD_DIR}"/libdbusmenu-gtk "${@}"
120 - multilib_is_native_abi && \
121 - emake -C "${BUILD_DIR}"/docs/libdbusmenu-gtk "${@}"
122 -}
123 -
124 -multilib_src_compile() {
125 - emake
126 -
127 - local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
128 - [[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant \
129 - gtk_emake
130 -}
131 -
132 -multilib_src_test() {
133 - emake check
134 -
135 - gtk_test() {
136 - # please keep the list of GTK+ tests up-to-date
137 - emake -C "${BUILD_DIR}"/tests check \
138 - TESTS="test-gtk-objects-test test-gtk-label
139 - test-gtk-shortcut test-gtk-reorder test-gtk-remove"
140 - }
141 - local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
142 - [[ ${GTK_VARIANTS[@]} ]] && virtx multibuild_foreach_variant \
143 - gtk_test
144 -}
145 -
146 -multilib_src_install() {
147 - emake -j1 DESTDIR="${D}" install
148 -
149 - local MULTIBUILD_VARIANTS=( "${GTK_VARIANTS[@]}" )
150 - [[ ${GTK_VARIANTS[@]} ]] && multibuild_foreach_variant \
151 - gtk_emake -j1 install DESTDIR="${D}"
152 -}
153 -
154 -multilib_src_install_all() {
155 - einstalldocs
156 - find "${D}" -name '*.la' -delete || die
157 -}
158 -
159 -pkg_preinst() {
160 - # kill old symlinks that Portage will preserve and break install
161 - if [[ -L ${EROOT}/usr/share/gtk-doc/html/libdbusmenu-glib ]]; then
162 - rm -v "${EROOT}/usr/share/gtk-doc/html/libdbusmenu-glib" || die
163 - fi
164 - if [[ -L ${EROOT}/usr/share/gtk-doc/html/libdbusmenu-gtk ]]; then
165 - rm -v "${EROOT}/usr/share/gtk-doc/html/libdbusmenu-gtk" || die
166 - fi
167 -}