diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-18 12:04:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-18 12:04:39 +0100 |
commit | 2d01b3d133c0fbf17de8d7b47905585af88bd6e4 (patch) | |
tree | f74eb9a3d16ed25f8c15b825f4d28b759ae99a42 /media-sound/gtick/gtick-0.5.5-r1.ebuild | |
parent | 97bacba3ead078e5db8b87ab651a3ffa7d82f60f (diff) |
gentoo auto-resync : 18:04:2024 - 12:04:39
Diffstat (limited to 'media-sound/gtick/gtick-0.5.5-r1.ebuild')
-rw-r--r-- | media-sound/gtick/gtick-0.5.5-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/media-sound/gtick/gtick-0.5.5-r1.ebuild b/media-sound/gtick/gtick-0.5.5-r1.ebuild new file mode 100644 index 000000000000..2d7dec66d23a --- /dev/null +++ b/media-sound/gtick/gtick-0.5.5-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop xdg-utils + +DESCRIPTION="Metronome application supporting different meters and speeds ranging" +HOMEPAGE="https://www.antcom.de/gtick" +SRC_URI="https://www.antcom.de/gtick/download/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" +IUSE="nls sndfile" + +RDEPEND="media-libs/libpulse + virtual/libintl + x11-libs/gtk+:2 + sndfile? ( media-libs/libsndfile )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + nls? ( sys-devel/gettext )" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.5-desktop.patch + "${FILESDIR}"/${PN}-0.5.5-autotools.patch +) + +src_prepare() { + default + + sed -i 's:^\(appdatadir = .*/\)appdata:\1metainfo:' \ + Makefile.{am,in} || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable nls) + $(use_with sndfile) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + local res + + default + + for res in 32 48 64; do + newicon -s ${res} src/icon${res}x${res}.xpm gtick.xpm + done +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |