diff options
author | Alexander Tsoy <alexander@tsoy.me> | 2020-06-05 02:23:49 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-06-25 11:07:40 +0300 |
commit | e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97 (patch) | |
tree | 22b8b6bf551a47cfed6fbb48eec639f54d4d06d0 /media-sound/gtick/gtick-0.5.5.ebuild | |
parent | media-sound/guitarix: use https:// for homepage (diff) | |
download | gentoo-e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97.tar.gz gentoo-e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97.tar.bz2 gentoo-e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97.zip |
media-sound/gtick: Version bump to 0.5.5
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-sound/gtick/gtick-0.5.5.ebuild')
-rw-r--r-- | media-sound/gtick/gtick-0.5.5.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/media-sound/gtick/gtick-0.5.5.ebuild b/media-sound/gtick/gtick-0.5.5.ebuild new file mode 100644 index 000000000000..3d6b5f7e7945 --- /dev/null +++ b/media-sound/gtick/gtick-0.5.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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-sound/pulseaudio + x11-libs/gtk+:2 + sndfile? ( media-libs/libsndfile )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + nls? ( sys-devel/gettext )" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${P}-desktop.patch +) + +src_prepare() { + default + + sed -i 's:^\(appdatadir = .*/\)appdata:\1metainfo:' \ + Makefile.in || die +} + +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 +} |