summaryrefslogtreecommitdiff
path: root/x11-plugins/wmtz
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/wmtz
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/wmtz')
-rw-r--r--x11-plugins/wmtz/Manifest7
-rw-r--r--x11-plugins/wmtz/files/wmtz-0.7-list.patch127
-rw-r--r--x11-plugins/wmtz/files/wmtz-0.7.patch48
-rw-r--r--x11-plugins/wmtz/metadata.xml9
-rw-r--r--x11-plugins/wmtz/wmtz-0.7.ebuild46
5 files changed, 237 insertions, 0 deletions
diff --git a/x11-plugins/wmtz/Manifest b/x11-plugins/wmtz/Manifest
new file mode 100644
index 000000000000..75f262f40035
--- /dev/null
+++ b/x11-plugins/wmtz/Manifest
@@ -0,0 +1,7 @@
+AUX wmtz-0.7-list.patch 2918 SHA256 5e01887b3404df12e221fc43e1a4c1980fd66f44b6f189a7967ccc27bfbaf388 SHA512 2a6da4a9b676ea51bbcc400b3255f3c10240db13fd6da46921f6c91d5529ecf50120e195b815e58a1b0a8bad81a944e8da3cba261a69579f36165f35ad23f144 WHIRLPOOL 676703bedaff4c18d49e04ac31832ba3a370ad67e38008008af5849993592fcc693d1ae1b59d4e9adfb9e0c10ab9058fe012c0d8fe164cd9abe8d1048d915ec3
+AUX wmtz-0.7.patch 1305 SHA256 07039bcd9811362e2f20a5b51b512fabbb4133f3d982c27c7b8145fd5d9aaf17 SHA512 4e04a1a95d39ebe9982d4f26acf827fbbeb953f4dcc695c5b39dcb46423bd9d58336838a3d8a28af142b9a5391625a6965ece158b735514adce4438afa662194 WHIRLPOOL 89aa85007d5992722c28ab16cb449363f22bb4c8bb58479acf189b316f39380ea0673ae27c8080abf41ea691220ba774abdf99ca8d987b22192e65bd3c517688
+DIST wmtz-0.7.tar.gz 26350 SHA256 cb09e64a9823b3da71e542d7cc66e6cbd0135809bee1e565d18acdcf0565823a SHA512 5de721231c7d7bcccc8a9b962069f4adad85158b39df2e77c6015ed3f24d4f8e43c90f91645e186d7f7c656bc6fb937b435925caff4e55abcfa0a8b0a9e75da0 WHIRLPOOL b2a1660f024b8ea2a50e1c0c2bce614aee4a0b1a85f36be7c9e6c9c6edecd361307577c95c7ba7b437319225aea6d0d46148b56a9ec33c52e4f1dd51cb72024c
+EBUILD wmtz-0.7.ebuild 938 SHA256 bc58dda8f678b57606e287442e9991363dd06578c696e8559f91aa74b17df7fb SHA512 5c17e8b62fdf7fbc926749a9c866b760a1fdff723336a16c045fda4946f5339d64b77d580093f6295879e365aaaba904341dea4bdaeb0ae174b94ea2f43b6b20 WHIRLPOOL f10effeb2b5bcbeeac832d14282ca3add7bebdffc9e8fe0d10dbed95288f777d57c4334ea223c89f41c7cfff2cd5aaf71c4736f00c55a97836c108d784f7407f
+MISC ChangeLog 3095 SHA256 544298f9f4d22c9d2e40631e014878369e6b8c7aec39fdf0436f96cb05762d7c SHA512 f4873edc6eff6bb156c1b05fea8be371f82d89a93c40bb5e6caa3da06a5f5845e779e56f9f22a77f625437d08b2234ed58d9dbb79c69a563718f8831b7b49315 WHIRLPOOL f847daa555c76468f86db60219f44e0c19bfbed685cefac716cf30a43d23b4801466ce5286cc6131598cdbded401add8af3bfd108f52a07a8b5568789daec561
+MISC ChangeLog-2015 2596 SHA256 c4c6c36b269f11430b4f676657922c2de2d843c5311670404e2b6b2bcca7e63b SHA512 9f4f685aad23ecc34b9a177708b9aa85fac7de3c2c4fb6094515d5aedad25676c7a93d297beb315f33c1a4e390644ae0d73d45de2c3f3d91a195cf0e7a88ec85 WHIRLPOOL 20d02cdc9f305af7e0f504d1a0e70dc8afb4b7e8e80b31eed5bcfc445fecd74835f515580d5f4bd088fa7e9df4028c307d5946cf99828193260b8108510be7d2
+MISC metadata.xml 249 SHA256 ab0de85cc2ebef9f9bca3773395bc5c909312efb834a8b3948806c1b00dee4e5 SHA512 1a1312bb0e9f74f1e3852218d8fd4817fbad3bc65633cecbe8735607bc33c1e05b414c2628ff3f6e24dfc4a3999de7191f6cdadd2161b03cf614d5b6f24fab8d WHIRLPOOL 3d7026fc5a045f5c90505dab413fe4534364d8c9a47c053ffbfaf3579478e55f77427eb00b05bd4c593a372c69eefae5ca93a2bab9398f52d20d374c2265fb2d
diff --git a/x11-plugins/wmtz/files/wmtz-0.7-list.patch b/x11-plugins/wmtz/files/wmtz-0.7-list.patch
new file mode 100644
index 000000000000..1b1ac317669e
--- /dev/null
+++ b/x11-plugins/wmtz/files/wmtz-0.7-list.patch
@@ -0,0 +1,127 @@
+diff -Naur wmgeneral.orig/list.c wmgeneral/list.c
+--- wmgeneral.orig/list.c 2016-01-04 13:28:36.583339716 +0100
++++ wmgeneral/list.c 2016-01-04 13:28:48.694343645 +0100
+@@ -38,7 +38,7 @@
+
+ /* Return a cons cell produced from (head . tail)
+
+-INLINE LinkedList*
++LinkedList*
+ list_cons(void* head, LinkedList* tail)
+ {
+ LinkedList* cell;
+@@ -51,7 +51,7 @@
+
+ /* Return the length of a list, list_length(NULL) returns zero
+
+-INLINE int
++int
+ list_length(LinkedList* list)
+ {
+ int i = 0;
+@@ -66,7 +66,7 @@
+ /* Return the Nth element of LIST, where N count from zero. If N
+ larger than the list length, NULL is returned
+
+-INLINE void*
++void*
+ list_nth(int index, LinkedList* list)
+ {
+ while(index-- != 0)
+@@ -81,7 +81,7 @@
+
+ /* Remove the element at the head by replacing it by its successor
+
+-INLINE void
++void
+ list_remove_head(LinkedList** list)
+ {
+ if (!*list) return;
+@@ -101,7 +101,7 @@
+
+ /* Remove the element with `car' set to ELEMENT
+ /*
+-INLINE void
++void
+ list_remove_elem(LinkedList** list, void* elem)
+ {
+ while (*list)
+@@ -112,7 +112,7 @@
+ }
+
+
+-INLINE LinkedList *
++LinkedList *
+ list_remove_elem(LinkedList* list, void* elem)
+ {
+ LinkedList *tmp;
+@@ -132,7 +132,7 @@
+
+ /* Return element that has ELEM as car
+
+-INLINE LinkedList*
++LinkedList*
+ list_find(LinkedList* list, void* elem)
+ {
+ while(list)
+@@ -146,7 +146,7 @@
+
+ /* Free list (backwards recursive)
+
+-INLINE void
++void
+ list_free(LinkedList* list)
+ {
+ if(list)
+@@ -158,7 +158,7 @@
+
+ /* Map FUNCTION over all elements in LIST
+
+-INLINE void
++void
+ list_mapcar(LinkedList* list, void(*function)(void*))
+ {
+ while(list)
+diff -Naur wmgeneral.orig/list.h wmgeneral/list.h
+--- wmgeneral.orig/list.h 2016-01-04 13:28:36.583339716 +0100
++++ wmgeneral/list.h 2016-01-04 13:28:39.471340654 +0100
+@@ -29,31 +29,25 @@
+ #ifndef __LIST_H_
+ #define __LIST_H_
+
+-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+-# define INLINE inline
+-#else
+-# define INLINE
+-#endif
+-
+ typedef struct LinkedList {
+ void *head;
+ struct LinkedList *tail;
+ } LinkedList;
+
+-INLINE LinkedList* list_cons(void* head, LinkedList* tail);
++LinkedList* list_cons(void* head, LinkedList* tail);
+
+-INLINE int list_length(LinkedList* list);
++int list_length(LinkedList* list);
+
+-INLINE void* list_nth(int index, LinkedList* list);
++void* list_nth(int index, LinkedList* list);
+
+-INLINE void list_remove_head(LinkedList** list);
++void list_remove_head(LinkedList** list);
+
+-INLINE LinkedList *list_remove_elem(LinkedList* list, void* elem);
++LinkedList *list_remove_elem(LinkedList* list, void* elem);
+
+-INLINE void list_mapcar(LinkedList* list, void(*function)(void*));
++void list_mapcar(LinkedList* list, void(*function)(void*));
+
+-INLINE LinkedList*list_find(LinkedList* list, void* elem);
++LinkedList*list_find(LinkedList* list, void* elem);
+
+-INLINE void list_free(LinkedList* list);
++void list_free(LinkedList* list);
+
+ #endif
diff --git a/x11-plugins/wmtz/files/wmtz-0.7.patch b/x11-plugins/wmtz/files/wmtz-0.7.patch
new file mode 100644
index 000000000000..adb5c68f1b6c
--- /dev/null
+++ b/x11-plugins/wmtz/files/wmtz-0.7.patch
@@ -0,0 +1,48 @@
+diff -ur wmtz-0.7.orig/wmtz/Makefile wmtz-0.7/wmtz/Makefile
+--- wmtz-0.7.orig/wmtz/Makefile 2001-03-11 15:57:59.000000000 +0200
++++ wmtz-0.7/wmtz/Makefile 2008-01-12 15:24:29.000000000 +0200
+@@ -1,5 +1,5 @@
+ CC = gcc
+-LIBDIR = -L/usr/X11R6/lib
++LIBDIR = -L/usr/lib
+ LIBS = -lXpm -lXext -lX11 -lm
+ FLAGS = -O2
+ DESTDIR = /usr/local
+@@ -10,7 +10,7 @@
+
+
+ .c.o:
+- $(CC) -I/usr/X11R6/include $(FLAGS) -c -Wall $< -o $*.o
++ $(CC) -I/usr/include $(FLAGS) -c -Wall $< -o $*.o
+
+ wmtz: $(OBJS)
+ $(CC) $(FLAGS) -o wmtz $^ -lXext $(LIBDIR) $(LIBS)
+diff -ur wmtz-0.7.orig/wmtz/wmtz.c wmtz-0.7/wmtz/wmtz.c
+--- wmtz-0.7.orig/wmtz/wmtz.c 2001-04-16 22:26:34.000000000 +0300
++++ wmtz-0.7/wmtz/wmtz.c 2008-01-12 15:17:37.000000000 +0200
+@@ -51,8 +51,7 @@
+ #define STRSIZE 10
+ #define LMST 1
+ #define GMST 0
+-#define ABOUT "xmessage -center -buttons \"Close\" \"WMTZ - Window Maker Time Zone dockapp v0.7
+-http://www.geocities.com/jl1n/wmtz/wmtz.html\""
++#define ABOUT "xmessage -center -buttons \"Close\" \"WMTZ - Window Maker Time Zone dockapp v0.7\nhttp://www.geocities.com/jl1n/wmtz/wmtz.html\""
+
+
+ /*
+@@ -479,6 +478,7 @@
+ but_stat = -1;
+ break;
+ default:
++ break;
+ }
+ }
+
+@@ -529,6 +529,7 @@
+ exit(0);
+ break;
+ default:
++ break;
+ }
+ return;
+ }
diff --git a/x11-plugins/wmtz/metadata.xml b/x11-plugins/wmtz/metadata.xml
new file mode 100644
index 000000000000..1d5e6504004e
--- /dev/null
+++ b/x11-plugins/wmtz/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+
+</pkgmetadata>
diff --git a/x11-plugins/wmtz/wmtz-0.7.ebuild b/x11-plugins/wmtz/wmtz-0.7.ebuild
new file mode 100644
index 000000000000..bbda82fcb2df
--- /dev/null
+++ b/x11-plugins/wmtz/wmtz-0.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="dockapp that shows the time in multiple timezones"
+HOMEPAGE="https://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto"
+
+S=${WORKDIR}/${P}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+
+ #Honour Gentoo LDFLAGS, see bug #337890.
+ sed -e "s/\$(FLAGS) -o wmtz/\$(LDFLAGS) -o wmtz/" -i Makefile
+
+ cd "${WORKDIR}"/${P} || die
+ epatch "${FILESDIR}"/${P}-list.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" FLAGS="${CFLAGS}" \
+ LIBDIR="-L/usr/$(get_libdir)" || die "emake failed."
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ insinto /etc
+ doins wmtzrc
+ dodoc ../{BUGS,CHANGES,README}
+}