From 0f85af9e53787fee0a45049ae32c9934d2328bc1 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 14 Jan 2022 18:24:02 +0100 Subject: x11-libs/gtkdatabox: update XDG icon cache if necessary Signed-off-by: Florian Schmaus --- x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild | 72 ++++++++++++++++++++++++++ x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild | 56 -------------------- 2 files changed, 72 insertions(+), 56 deletions(-) create mode 100644 x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild delete mode 100644 x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild (limited to 'x11-libs') diff --git a/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild new file mode 100644 index 000000000000..e99b9d199435 --- /dev/null +++ b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg-utils + +DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data" +HOMEPAGE="https://sourceforge.net/projects/gtkdatabox/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples +glade" + +RDEPEND=" + dev-libs/atk + dev-libs/glib:2 + media-libs/harfbuzz:= + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/gdk-pixbuf:2 + x11-libs/pango + glade? ( dev-util/glade:3.10= ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + # Remove -D.*DISABLE_DEPRECATED cflags + find . -iname 'Makefile.am' -exec \ + sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die + # Do Makefile.in after Makefile.am to avoid automake maintainer-mode + find . -iname 'Makefile.in' -exec \ + sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die + sed -e '/SUBDIRS/{s: examples::;}' -i Makefile.am -i Makefile.in || die +} + +src_configure() { + econf \ + $(use_enable glade) \ + --enable-libtool-lock +} + +src_install() { + default + + find "${ED}" -type f -name '*.la' -delete || die + + dodoc AUTHORS ChangeLog README TODO + + if use examples; then + docinto examples + dodoc "${S}"/examples/* + fi +} + +maybe_update_xdg_icon_cache() { + if use glade; then + xdg_icon_cache_update + fi +} + +pkg_postinst() { + maybe_update_xdg_icon_cache +} + +pkg_postrm() { + maybe_update_xdg_icon_cache +} diff --git a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild b/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild deleted file mode 100644 index 3f9a8d020d23..000000000000 --- a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data" -HOMEPAGE="https://sourceforge.net/projects/gtkdatabox/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples +glade" - -RDEPEND=" - dev-libs/atk - dev-libs/glib:2 - media-libs/harfbuzz:= - x11-libs/cairo - x11-libs/gtk+:3 - x11-libs/gdk-pixbuf:2 - x11-libs/pango - glade? ( dev-util/glade:3.10= ) -" -DEPEND="${RDEPEND}" - -src_prepare() { - default - - # Remove -D.*DISABLE_DEPRECATED cflags - find . -iname 'Makefile.am' -exec \ - sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die - # Do Makefile.in after Makefile.am to avoid automake maintainer-mode - find . -iname 'Makefile.in' -exec \ - sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die - sed -e '/SUBDIRS/{s: examples::;}' -i Makefile.am -i Makefile.in || die -} - -src_configure() { - econf \ - $(use_enable glade) \ - --enable-libtool-lock -} - -src_install() { - default - - find "${ED}" -type f -name '*.la' -delete || die - - dodoc AUTHORS ChangeLog README TODO - - if use examples; then - docinto examples - dodoc "${S}"/examples/* - fi -} -- cgit v1.2.3-65-gdbad