summaryrefslogtreecommitdiff
path: root/x11-plugins/wmfishtime
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/wmfishtime
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/wmfishtime')
-rw-r--r--x11-plugins/wmfishtime/Manifest8
-rw-r--r--x11-plugins/wmfishtime/files/wmfishtime-1.24-gtk.patch60
-rw-r--r--x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch19
-rw-r--r--x11-plugins/wmfishtime/metadata.xml14
-rw-r--r--x11-plugins/wmfishtime/wmfishtime-1.24-r1.ebuild33
-rw-r--r--x11-plugins/wmfishtime/wmfishtime-1.24-r2.ebuild37
6 files changed, 171 insertions, 0 deletions
diff --git a/x11-plugins/wmfishtime/Manifest b/x11-plugins/wmfishtime/Manifest
new file mode 100644
index 000000000000..7f1527da8468
--- /dev/null
+++ b/x11-plugins/wmfishtime/Manifest
@@ -0,0 +1,8 @@
+AUX wmfishtime-1.24-gtk.patch 1894 SHA256 97dd48d0378fe3c353da31eabf3942b78116234be2e18ae27ababe0a832b4d58 SHA512 db68887afee4e4bbce51e2beb82ef5586cb1c7e0acb2b7b84e914c5696cd87110680741ce449634e6034b46c4610f5af3e8018ef1d2614c5821816b03886489b WHIRLPOOL 987e4820ccea2c1c7a0050738a34b7014e9f813850ca21063903b1e56f8e17fe603d8350254785dca2182a48999df7df35b7a21e84807e6bbf338652a622d731
+AUX wmfishtime-1.24-no_display.patch 517 SHA256 77aa776f5d660618efb5601675883eb1daf8d0125fb61d94e7e595914309d875 SHA512 6af001214a29c522c7697d75a74eb8b2d32f12ae5bae5913285d9517680f3747d8608cda7570629db04230d96c2003fd69ea8df7bb9fe182d2f12baac52e8b26 WHIRLPOOL 771507d7bfbbbf2e0d50b73b8308e26c20fe0a162c393b80d510f2959338b05e48c3db2af76ee191c5f10e96b7cb88565f29002744e9390e52eef0280dbcc992
+DIST wmfishtime-1.24.tar.gz 21895 SHA256 7d92889d295558acd8af79f4d74c6fa7c980ac1010b7f0691249a117b34bba07 SHA512 7df3c6648b46c6f67cf094f634dc7699c1dd1ee4f4a18dbf63d74ebda74f322524b83d99f10a1c8c8c8a5040d78b071754a40ff162fdb13a5a00d01f1eb5c4e6 WHIRLPOOL df9c90ceb80e377f9ea58ef92df62970b97d7279c6a4a79b49d3f0162b900b303dd06e35065c0fd5ebf2744e7291d5ae37854bd5da8fe6c584225f30a66d2307
+EBUILD wmfishtime-1.24-r1.ebuild 700 SHA256 4d622200602ba90dfc40511d19a1667217123470e645612befcc499c5d6b0585 SHA512 3493f4abf5e008adbb96078ccf37c59c1edbd7be4f5edad49597d62b3be7d6b122e5f62d1dbdb327c0c2cf1945c666fafa6f757721d5078280abc2f0ff573773 WHIRLPOOL a8ebce03c417ccda2cc8ff0239c1f0ec8470469b174805a3aafb097b9499abc04e949b2dc78122d920cd06f3267e3f5eff67e7d88337ad8628ef755332f8096a
+EBUILD wmfishtime-1.24-r2.ebuild 809 SHA256 d2457d1e25876208837e753f8f23ac4d1d7d10580fac4117657a077a920943d5 SHA512 abfffaa008b8544315d6e3d440c245fa9e1b6f281aca64c6fde67006e57906b92103c71a4685097f09392f00d871d00b7477c4db6901752df8adb000b9f37e65 WHIRLPOOL e09023d65d176cd87f239fcbd4edc35c2bb0bee8ed26058dc511b465b1cd05b73f343c4595a442d35683401b704faa1cc853d0dde1ad7b17f3f474fa6b86e66b
+MISC ChangeLog 3040 SHA256 a10cea53c338ec3bb847ee43ade593124c030e079bc54cc1c5b91822c1540f77 SHA512 a9e4f2d724b2de26e71255ac750579e1b3bfd506145caf1312278d688e8c7f63a43f89a79967e89112fac7727ff2a267819a5da92ee196a00e868e40d7299aba WHIRLPOOL 3d0c4b645836a4cc1834d6916644ed8489f867ae8ae5b4ddcdd2ea05403998c3d78cc49ca97da98fe4ea08a59338e1e4ad5f95a9bb4e4b8cd362d8b192300e84
+MISC ChangeLog-2015 4157 SHA256 87cc4c723bb0bccab9e2a8f04d774f658c552ba5bc76e5bedc1423145202784a SHA512 eab9f6548fffc8395db1ebc3086a35e9bfdf5e4729ac2b47c54e0a3a07c49cb64a44d27311604c811d232a3a1557a2b7df6c6123f75caade757817d5a19e9ff9 WHIRLPOOL 52b54bf11317bfdd76bf20f7e91580fc27e9511e232a70b9d42cc0f5c314020f8965e0f56532a83aeb5ae3bf0dc5b83babf4c2c56a857199deb0c4ac42c85f05
+MISC metadata.xml 480 SHA256 e31baeb779921fe45b8dc9ac5ec2f19f919844af968fa6c026c408f9444c11e3 SHA512 3aebfb320d3d4cf32587efdeb26ba4bbf531c94fcf7c6c5a5c68a78939d8cabf40582d88661e490cba8e48f72f0885b426c69b8f55fba91f0ffa788dbc507220 WHIRLPOOL f8cd7a0e3312b4906eccf000cff7d0a9c21ebdefb9506dbcf6c4984e0eb15307c3031b06924dba2a2635db8692e47f4d23cf2a91b0abb70bb8e6111453c8e426
diff --git a/x11-plugins/wmfishtime/files/wmfishtime-1.24-gtk.patch b/x11-plugins/wmfishtime/files/wmfishtime-1.24-gtk.patch
new file mode 100644
index 000000000000..68d4c057c44e
--- /dev/null
+++ b/x11-plugins/wmfishtime/files/wmfishtime-1.24-gtk.patch
@@ -0,0 +1,60 @@
+diff -ur wmfishtime-1.24.orig/fishmon.c wmfishtime-1.24/fishmon.c
+--- wmfishtime-1.24.orig/fishmon.c 2004-05-13 02:55:59.000000000 +0300
++++ wmfishtime-1.24/fishmon.c 2008-01-12 16:19:34.000000000 +0200
+@@ -648,6 +648,7 @@
+
+ /* make a copy for the iconwin - parameters are the same */
+ memcpy(&attri, &attr, sizeof(GdkWindowAttr));
++ attri.window_type = GDK_WINDOW_CHILD;
+
+ sizehints.flags = USSize;
+ sizehints.width = 64;
+@@ -679,7 +680,6 @@
+ wmhints.window_group = win;
+ wmhints.flags =
+ StateHint | IconWindowHint | IconPositionHint | WindowGroupHint;
+- XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
+
+ bm.gc = gdk_gc_new(bm.win);
+
+@@ -693,6 +693,8 @@
+
+ gdk_window_show(bm.win);
+
++ XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
++
+ #undef MASK
+ } /* make_new_fishmon_dockapp */
+
+diff -ur wmfishtime-1.24.orig/Makefile wmfishtime-1.24/Makefile
+--- wmfishtime-1.24.orig/Makefile 2001-05-26 23:49:41.000000000 +0300
++++ wmfishtime-1.24/Makefile 2008-01-12 16:22:30.000000000 +0200
+@@ -2,11 +2,11 @@
+ DESTDIR =
+
+ # where to install this program
+-PREFIX = $(DESTDIR)/usr/X11R6
++PREFIX = $(DESTDIR)/usr
+
+ # no user serviceable parts below this line
+ # optimization cflags
+-CFLAGS = -O3 -Wall `gtk-config --cflags` ${EXTRA}
++CFLAGS += -Wall `pkg-config gtk+-2.0 --cflags` ${EXTRA}
+ # profiling cflags
+ # CFLAGS=-ansi -pedantic -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
+ # test coverage cflags
+@@ -16,7 +16,7 @@
+ CC = gcc
+ SHELL = sh
+ OBJS = fishmon.o
+-LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
++LIBS = `pkg-config gtk+-2.0 --libs` -lm -lX11
+ INSTALL = -m 755
+
+ all: wmfishtime
+@@ -30,4 +30,4 @@
+ # You're going to have to be root to do this!
+ install:
+ install $(INSTALL) wmfishtime $(PREFIX)/bin
+- install $(INSTALL) wmfishtime.1 $(PREFIX)/man/man1
++ install $(INSTALL) wmfishtime.1 $(PREFIX)/share/man/man1
diff --git a/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
new file mode 100644
index 000000000000..a991cdab934b
--- /dev/null
+++ b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
@@ -0,0 +1,19 @@
+--- fishmon.c.orig 2010-06-27 18:38:42.000000000 +0200
++++ fishmon.c 2010-06-27 18:40:56.000000000 +0200
+@@ -152,6 +152,8 @@
+
+ int main(int argc, char **argv)
+ {
++ /* This is needed to proper dockapp work on >=GTK+-2.18 */
++ setenv("GDK_NATIVE_WINDOWS", "1", 0);
+ int ch;
+ GdkEvent *event;
+ #ifdef PRO
+@@ -694,6 +696,7 @@
+ gdk_window_show(bm.win);
+
+ XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
++ gdk_window_show(bm.iconwin);
+
+ #undef MASK
+ } /* make_new_fishmon_dockapp */
diff --git a/x11-plugins/wmfishtime/metadata.xml b/x11-plugins/wmfishtime/metadata.xml
new file mode 100644
index 000000000000..1d018ac5586f
--- /dev/null
+++ b/x11-plugins/wmfishtime/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+</maintainer>
+
+<longdescription>
+WMFishTime is a silly little dockapp that displays current time, date, and day
+of the week. It features alpha-blended bubbles, anti-aliased clock hands, and
+fish swimming behind the clock face.
+</longdescription>
+</pkgmetadata>
diff --git a/x11-plugins/wmfishtime/wmfishtime-1.24-r1.ebuild b/x11-plugins/wmfishtime/wmfishtime-1.24-r1.ebuild
new file mode 100644
index 000000000000..7a771de4ce7b
--- /dev/null
+++ b/x11-plugins/wmfishtime/wmfishtime-1.24-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils 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"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gtk.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc ALL_I_GET_IS_A_GRAY_BOX AUTHORS ChangeLog CODING README
+}
diff --git a/x11-plugins/wmfishtime/wmfishtime-1.24-r2.ebuild b/x11-plugins/wmfishtime/wmfishtime-1.24-r2.ebuild
new file mode 100644
index 000000000000..e9fe15409151
--- /dev/null
+++ b/x11-plugins/wmfishtime/wmfishtime-1.24-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils 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"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gtk.patch \
+ "${FILESDIR}"/${P}-no_display.patch
+
+ sed -i -e "s/\$(CC)/& \$(LDFLAGS)/" Makefile || die #331891
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc ALL_I_GET_IS_A_GRAY_BOX AUTHORS ChangeLog CODING README
+}