Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/gtkdialog/
Date: Sun, 02 Feb 2020 10:58:16
Message-Id: 1580641085.c17c75b84bb3f4d3857c6430a8b02461f9671c3c.jer@gentoo
1 commit: c17c75b84bb3f4d3857c6430a8b02461f9671c3c
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 2 10:20:32 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 2 10:58:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17c75b8
7
8 x11-misc/gtkdialog: Call xdg_icon_cache_update()
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 ...alog-99999.ebuild => gtkdialog-0.8.3-r3.ebuild} | 45 +++++++++++-----------
14 x11-misc/gtkdialog/gtkdialog-99999.ebuild | 12 +++++-
15 2 files changed, 32 insertions(+), 25 deletions(-)
16
17 diff --git a/x11-misc/gtkdialog/gtkdialog-99999.ebuild b/x11-misc/gtkdialog/gtkdialog-0.8.3-r3.ebuild
18 similarity index 54%
19 copy from x11-misc/gtkdialog/gtkdialog-99999.ebuild
20 copy to x11-misc/gtkdialog/gtkdialog-0.8.3-r3.ebuild
21 index 0f60150b0f8..f6947de4958 100644
22 --- a/x11-misc/gtkdialog/gtkdialog-99999.ebuild
23 +++ b/x11-misc/gtkdialog/gtkdialog-0.8.3-r3.ebuild
24 @@ -1,52 +1,43 @@
25 # Copyright 1999-2020 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=6
29 -inherit autotools git-r3
30 +EAPI=7
31 +inherit autotools xdg-utils
32
33 DESCRIPTION="A small utility for fast and easy GUI building"
34 -HOMEPAGE="https://github.com/oshazard/gtkdialog"
35 -EGIT_REPO_URI="https://github.com/oshazard/gtkdialog"
36 +HOMEPAGE="https://code.google.com/p/gtkdialog/"
37 +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
38
39 LICENSE="GPL-2"
40 SLOT="0"
41 -KEYWORDS=""
42 -IUSE="gtk3"
43 +KEYWORDS="~amd64 ~ppc ~x86"
44 +IUSE="glade vte"
45
46 RDEPEND="
47 - !gtk3? (
48 - x11-libs/gtk+:2
49 - x11-libs/vte:0=
50 - )
51 - gtk3? (
52 - x11-libs/gtk+:3
53 - x11-libs/vte:2.91=
54 - )
55 + x11-libs/gtk+:2
56 + glade? ( gnome-base/libglade )
57 + vte? ( x11-libs/vte:0= )
58 "
59 DEPEND="
60 ${RDEPEND}
61 - sys-apps/texinfo
62 - sys-devel/flex
63 virtual/pkgconfig
64 + sys-devel/flex
65 virtual/yacc
66 "
67 +
68 PATCHES=(
69 "${FILESDIR}"/${PN}-0.8.3-fno-common.patch
70 + "${FILESDIR}"/${PN}-0.8.3-optdeps.patch
71 )
72
73 src_prepare() {
74 + mv configure.{in,ac} || die
75 default
76 eautoreconf
77 }
78
79 src_configure() {
80 - econf \
81 - $(use_enable gtk3)
82 -}
83 -
84 -src_compile() {
85 - emake -C doc stamp-vti
86 - default
87 + econf $(use_with glade) $(use_with vte)
88 }
89
90 src_install() {
91 @@ -54,3 +45,11 @@ src_install() {
92 emake DESTDIR="${D}" UPDATE_ICON_CACHE=true install
93 einstalldocs
94 }
95 +
96 +pkg_postinst() {
97 + xdg_icon_cache_update
98 +}
99 +
100 +pkg_postrm() {
101 + xdg_icon_cache_update
102 +}
103
104 diff --git a/x11-misc/gtkdialog/gtkdialog-99999.ebuild b/x11-misc/gtkdialog/gtkdialog-99999.ebuild
105 index 0f60150b0f8..6a3b1eec8e2 100644
106 --- a/x11-misc/gtkdialog/gtkdialog-99999.ebuild
107 +++ b/x11-misc/gtkdialog/gtkdialog-99999.ebuild
108 @@ -1,8 +1,8 @@
109 # Copyright 1999-2020 Gentoo Authors
110 # Distributed under the terms of the GNU General Public License v2
111
112 -EAPI=6
113 -inherit autotools git-r3
114 +EAPI=7
115 +inherit autotools git-r3 xdg-utils
116
117 DESCRIPTION="A small utility for fast and easy GUI building"
118 HOMEPAGE="https://github.com/oshazard/gtkdialog"
119 @@ -54,3 +54,11 @@ src_install() {
120 emake DESTDIR="${D}" UPDATE_ICON_CACHE=true install
121 einstalldocs
122 }
123 +
124 +pkg_postinst() {
125 + xdg_icon_cache_update
126 +}
127 +
128 +pkg_postrm() {
129 + xdg_icon_cache_update
130 +}