x11-plugins/wmfishtime: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sun, 22 Jul 2018 12:28:25 +0000 (14:28 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 26 Jul 2018 20:30:52 +0000 (22:30 +0200)
x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild [new file with mode: 0644]

index a991cdab934b5dde607a83627e9f979ca9111e50..8ae99b049f697ba66ba284dc4b7c7255f3bc7f41 100644 (file)
@@ -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 (file)
index 0000000..05564bf
--- /dev/null
@@ -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
+}