diff options
author | Sam James <sam@gentoo.org> | 2022-09-17 02:14:28 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-17 02:14:38 +0100 |
commit | 240f0dedd2b1c28e233cb12310cd5757357b0112 (patch) | |
tree | f3bc70e4a8709be5ef04250de50f5ebc04ca703e /x11-misc | |
parent | media-gfx/graphite2: uncomment patch (diff) | |
download | gentoo-240f0dedd2b1c28e233cb12310cd5757357b0112.tar.gz gentoo-240f0dedd2b1c28e233cb12310cd5757357b0112.tar.bz2 gentoo-240f0dedd2b1c28e233cb12310cd5757357b0112.zip |
x11-misc/xdaliclock: add 2.47
Closes: https://bugs.gentoo.org/870493
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/xdaliclock/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/xdaliclock/files/xdaliclock-2.47-DESTDIR.patch | 59 | ||||
-rw-r--r-- | x11-misc/xdaliclock/xdaliclock-2.47.ebuild | 59 |
3 files changed, 119 insertions, 0 deletions
diff --git a/x11-misc/xdaliclock/Manifest b/x11-misc/xdaliclock/Manifest index 9b15593b2f2d..52cf3b050cb4 100644 --- a/x11-misc/xdaliclock/Manifest +++ b/x11-misc/xdaliclock/Manifest @@ -1 +1,2 @@ DIST xdaliclock-2.44.tar.gz 17727649 BLAKE2B 170f1a7f9e5c10799b62b2ae76b33ab64230e4ade8f0b79c2aff7481536009e3e4e0f19239dd806d7b16c69225744fa381f5aabbeec6e0e92d8b875bd8ca0aeb SHA512 82082a8e16a85c7115bdd0a44e7845aedfad93f94226a14cf606493564829c7ffe55eb4d17cb43c41bd0e6c97c090457d6aa2d184f60462cea3a89f47ef72e00 +DIST xdaliclock-2.47.tar.gz 3410612 BLAKE2B 64d2e98693f055887959c34021a3e595bd46fb8ba453c58af76d78977a2d7b6a0092c9c9e174c53d65b7af5723e9fb3c434a48e4d39f2986dac8d6b80f3fa9f7 SHA512 d51930240170bad5694cc502251aeb88aed8b78cee086bda704624c2599acf94e30368a971f26eb59a824df3273b6eb58c6fd2017684f8f421d678828e41db7f diff --git a/x11-misc/xdaliclock/files/xdaliclock-2.47-DESTDIR.patch b/x11-misc/xdaliclock/files/xdaliclock-2.47-DESTDIR.patch new file mode 100644 index 000000000000..eee6682f17d5 --- /dev/null +++ b/x11-misc/xdaliclock/files/xdaliclock-2.47-DESTDIR.patch @@ -0,0 +1,59 @@ +https://cgit.freebsd.org/ports/tree/x11-clocks/xdaliclock/files/patch-Makefile.in?id=b4521d44c7f02e022fa92fdd445ee4274aa96948 +--- a/Makefile.in ++++ b/Makefile.in +@@ -92,35 +92,35 @@ $(install_prefix)$(SCHEMA_DIR): + $(install_prefix)$(GTK_APPDIR) \ + $(install_prefix)$(GTK_ICONDIR) \ + $(install_prefix)$(SCHEMA_DIR): +- mkdir -p $@ ++# mkdir -p $@ + + install-program: xdaliclock $(install_prefix)$(bindir) +- $(INSTALL_PROGRAM) $< $(install_prefix)$(bindir)/xdaliclock ++ $(INSTALL_PROGRAM) $< $(DESTDIR)$(install_prefix)$(bindir)/xdaliclock + + # If /usr/share/glib-2.0/schemas/org.jwz.xdaliclock.gschema.xml" does + # not exist, the app won't launch. This is an amazing design. Spectacular. + # No notes. + # + install-schema: $(SCHEMA) $(install_prefix)$(SCHEMA_DIR) +- $(INSTALL_DATA) $< $(install_prefix)$(SCHEMA_DIR)/ +- $(GLIB_COMPILE_SCHEMAS) $(install_prefix)$(SCHEMA_DIR) ++ $(INSTALL_DATA) $< $(DESTDIR)$(install_prefix)$(SCHEMA_DIR)/ ++ $(GLIB_COMPILE_SCHEMAS) $(DESTDIR)$(install_prefix)$(SCHEMA_DIR) + + # /usr/share/pixmaps/xdaliclock.png + install-gnome:: $(LOGO) $(install_prefix)$(GTK_ICONDIR) +- $(INSTALL_DATA) $< $(install_prefix)$(GTK_ICONDIR)/ ++ $(INSTALL_DATA) $< $(DESTDIR)$(install_prefix)$(GTK_ICONDIR)/ + + # /usr/share/applications/xdaliclock.desktop + install-gnome:: $(DESK) $(install_prefix)$(GTK_APPDIR) +- $(INSTALL_DATA) $< $(install_prefix)$(GTK_APPDIR)/ ++ $(INSTALL_DATA) $< $(DESTDIR)$(install_prefix)$(GTK_APPDIR)/ + + # /usr/share/pixmaps/index.theme + install-gnome:: update-icon-caches + update-icon-caches:: + @\ +- for f in $(install_prefix)$(datadir)/icons/index.theme \ +- $(install_prefix)$(datadir)/icons/*/index.theme \ +- $(install_prefix)$(datadir)/pixmaps/index.theme \ +- $(install_prefix)$(datadir)/pixmaps/*/index.theme ; do \ ++ for f in $(DESTDIR)$(install_prefix)$(datadir)/icons/index.theme \ ++ $(DESTDIR)$(install_prefix)$(datadir)/icons/*/index.theme \ ++ $(DESTDIR)$(install_prefix)$(datadir)/pixmaps/index.theme \ ++ $(DESTDIR)$(install_prefix)$(datadir)/pixmaps/*/index.theme ; do \ + if [ -f $$f ]; then \ + f=`dirname $$f` ; \ + echo $(UPDATE_ICON_CACHE) --force --quiet $$f ; \ +@@ -129,7 +129,7 @@ install-man: xdaliclock.man $(install_prefix)$(man1dir + done + + install-man: xdaliclock.man $(install_prefix)$(man1dir) +- $(INSTALL_DATA) $< $(install_prefix)$(man1dir)/xdaliclock.$(mansuffix) ++ $(INSTALL_DATA) $< $(DESTDIR)$(install_prefix)$(man1dir)/xdaliclock.$(mansuffix) + + + uninstall-program: + diff --git a/x11-misc/xdaliclock/xdaliclock-2.47.ebuild b/x11-misc/xdaliclock/xdaliclock-2.47.ebuild new file mode 100644 index 000000000000..1fe477c682ff --- /dev/null +++ b/x11-misc/xdaliclock/xdaliclock-2.47.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils xdg + +DESCRIPTION="Dali Clock is a digital clock. When a digit changes, it melts into its new shape" +HOMEPAGE="https://www.jwz.org/xdaliclock" +SRC_URI="https://www.jwz.org/xdaliclock/${P}.tar.gz" +S="${WORKDIR}"/${P}/X11 + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:3 + x11-libs/libX11 + virtual/opengl +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/xdaliclock-2.47-DESTDIR.patch +) + +src_install() { + dodir /usr/bin /usr/share/pixmaps + dodir /usr/share/glib-2.0/schemas /usr/share/man/man1/ + dodir /usr/share/applications/ + + default + + # Will collide with dev-libs/glib + rm "${ED}"/usr/share/glib-2.0/schemas/gschemas.compiled || die + + #dobin ${PN} + #newman ${PN}.man ${PN}.1 + #dodoc ../README + + #doicon xdaliclock.png + #domenu xdaliclock.desktop +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} |