diff options
Diffstat (limited to 'x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild')
-rw-r--r-- | x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
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 00000000..98d5e081 --- /dev/null +++ b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 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/~jsmolic/distfiles/${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 + "${FILESDIR}"/${PN}-0.8.3-do_variables_count_widgets.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 +} |