From 84b538f61550bf925d55d0b89b346746642f344a Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Sun, 22 Jul 2018 14:28:25 +0200 Subject: x11-plugins/wmfishtime: EAPI7, improve ebuild --- .../files/wmfishtime-1.24-no_display.patch | 4 +-- x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild | 38 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild (limited to 'x11-plugins') diff --git a/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch index a991cdab934b..8ae99b049f69 100644 --- a/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch +++ b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch @@ -1,5 +1,5 @@ ---- fishmon.c.orig 2010-06-27 18:38:42.000000000 +0200 -+++ fishmon.c 2010-06-27 18:40:56.000000000 +0200 +--- a/fishmon.c 2010-06-27 18:38:42.000000000 +0200 ++++ b/fishmon.c 2010-06-27 18:40:56.000000000 +0200 @@ -152,6 +152,8 @@ int main(int argc, char **argv) diff --git a/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild b/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild new file mode 100644 index 000000000000..05564bfd1885 --- /dev/null +++ b/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="A fun clock applet for your desktop featuring swimming fish" +HOMEPAGE="http://www.ne.jp/asahi/linux/timecop" +SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND="x11-libs/gtk+:2 + x11-libs/libX11" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-gtk.patch + "${FILESDIR}"/${P}-no_display.patch ) + +DOCS=( ALL_I_GET_IS_A_GRAY_BOX AUTHORS ChangeLog CODING README ) + +src_prepare() { + default + sed -i -e "s/\$(CC)/& \$(LDFLAGS)/" Makefile || die #331891 +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dobin ${PN} + doman ${PN}.1 + einstalldocs +} -- cgit v1.2.3-65-gdbad