summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-02-02 11:48:15 +0100
committerJeroen Roovers <jer@gentoo.org>2020-02-02 11:58:06 +0100
commit5b26b8f07e97e9461531d7880f698cb36a9c94ac (patch)
tree7db04a463ed501f9d067739fa144f7302ba1cf4d /x11-misc
parentx11-misc/gtkdialog: Call xdg_icon_cache_update() (diff)
downloadgentoo-5b26b8f07e97e9461531d7880f698cb36a9c94ac.tar.gz
gentoo-5b26b8f07e97e9461531d7880f698cb36a9c94ac.tar.bz2
gentoo-5b26b8f07e97e9461531d7880f698cb36a9c94ac.zip
x11-misc/gtkdialog: Version 0.8.3_p20200202
- Add a snapshot with GTK+ 3.0 support based on the export to Github from Google Code[0] - Use IUSE=gtk2 instead of IUSE=gtk3 so that GTK+ 3.0 will be enabled by default [0] https://github.com/oshazard/gtkdialog Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/gtkdialog/Manifest1
-rw-r--r--x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild64
-rw-r--r--x11-misc/gtkdialog/metadata.xml1
3 files changed, 66 insertions, 0 deletions
diff --git a/x11-misc/gtkdialog/Manifest b/x11-misc/gtkdialog/Manifest
index 3a3e6cce26b9..72634e172256 100644
--- a/x11-misc/gtkdialog/Manifest
+++ b/x11-misc/gtkdialog/Manifest
@@ -1 +1,2 @@
DIST gtkdialog-0.8.3.tar.gz 571974 BLAKE2B cfd5062ec6c255ade5467b9d6435d7529c5a55f911db8e549b19c26032aebcd1b83f2cf4ac7e2bcc9c71f9f37725c9285bbb22505ec021e7eded28ab7d382113 SHA512 fd8a93d576917efd650e38e31f261065c0a0c3f9213338ed4bd457d310993d8efbe8deabb2c1451f491d14c8d38cbcd5d4cb0c9f289c6fd462f7a06754b89da7
+DIST gtkdialog-0.8.3_p20200202.tar.xz 356312 BLAKE2B 77358e0b04ddb484e3e3a093084776a2c799fa52b90849bdde3bce56a7c042c2cbe28d699f0c4dcc14cc69872d496b89fc5c8aa7140669560e01448d9c57c15d SHA512 9120ac515eace168e4a3987b6cf3a1b3aa0e7617e837ade21d5ffea25cc3f3abbff598bb4c33914fb800416ea687f0ec7dea2b24c8acc0c71734aa6b2b385bfe
diff --git a/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild
new file mode 100644
index 000000000000..5c51b9d790bf
--- /dev/null
+++ b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools xdg-utils
+
+DESCRIPTION="A small utility for fast and easy GUI building"
+HOMEPAGE="https://github.com/oshazard/gtkdialog"
+SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gtk2"
+
+RDEPEND="
+ gtk2? (
+ x11-libs/gtk+:2
+ x11-libs/vte:0=
+ )
+ !gtk2? (
+ x11-libs/gtk+:3
+ x11-libs/vte:2.91=
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-apps/texinfo
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.3-fno-common.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex gtk2 --disable-gtk3 --enable-gtk3)
+}
+
+src_compile() {
+ emake -C doc stamp-vti
+ default
+}
+
+src_install() {
+ # Stop make install from running gtk-update-icon-cache
+ emake DESTDIR="${D}" UPDATE_ICON_CACHE=true install
+ einstalldocs
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/x11-misc/gtkdialog/metadata.xml b/x11-misc/gtkdialog/metadata.xml
index 2de333f9467d..d5c3f5671d75 100644
--- a/x11-misc/gtkdialog/metadata.xml
+++ b/x11-misc/gtkdialog/metadata.xml
@@ -19,6 +19,7 @@ provided.
</upstream>
<use>
<flag name="glade">Enable support for <pkg>gnome-base/libglade</pkg></flag>
+<flag name="gtk2">Build with GTK+2 instead of GTK+3</flag>
<flag name="gtk3">Build with GTK+3 instead of GTK+2</flag>
<flag name="vte">Enable support for <pkg>x11-libs/vte</pkg></flag>
</use>