From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- x11-plugins/wmgtemp/Manifest | 8 ++ x11-plugins/wmgtemp/files/wmgtemp-1.0-list.patch | 127 +++++++++++++++++++++++ x11-plugins/wmgtemp/metadata.xml | 17 +++ x11-plugins/wmgtemp/wmgtemp-1.0-r1.ebuild | 42 ++++++++ x11-plugins/wmgtemp/wmgtemp-1.2.ebuild | 18 ++++ 5 files changed, 212 insertions(+) create mode 100644 x11-plugins/wmgtemp/Manifest create mode 100644 x11-plugins/wmgtemp/files/wmgtemp-1.0-list.patch create mode 100644 x11-plugins/wmgtemp/metadata.xml create mode 100644 x11-plugins/wmgtemp/wmgtemp-1.0-r1.ebuild create mode 100644 x11-plugins/wmgtemp/wmgtemp-1.2.ebuild (limited to 'x11-plugins/wmgtemp') diff --git a/x11-plugins/wmgtemp/Manifest b/x11-plugins/wmgtemp/Manifest new file mode 100644 index 000000000000..0dd1026de5bf --- /dev/null +++ b/x11-plugins/wmgtemp/Manifest @@ -0,0 +1,8 @@ +AUX wmgtemp-1.0-list.patch 2977 SHA256 66b08a15b7c1fbdcd6824f00b523cbe3c88a63d598bbf729183d74f7c262d959 SHA512 efce721b1c08960fcc545552cc7362b9b8b5794f3ef43a3fc0b23281c38e4274eb048530916a859ba1d55e7ee4c5c913d56450acd549ec8b63cbc98fabc353bc WHIRLPOOL 86d3703da4125e107add61860bc41a370b22ee46d90f5622e85b42be3dac4b372d52e0a16e4447ed818867154d737ed15a4f98cbf150e86bf434ce13002e99fd +DIST wmgtemp-1.0.tar.bz2 21090 SHA256 3de2e15358695ce6b9c8f2d4aae33730b90085f31ff3cd7d01647d76370c45d4 SHA512 d174eda017131bee0b96c795acd7146835dfea89df61fb1e8cd3105566372caef817b1a9bb1d12691a69024df303d78a43ca720b3fb84473bfa19d863b53e7c4 WHIRLPOOL c88cefbd5c565daba8254616fd6236423301af7313df7fb4a14fa3f1b7799b17baf94b118707a627cb244470ad117b702efeed0822fcfa55fab8c0af2704dc16 +DIST wmgtemp-1.2.tar.gz 96949 SHA256 dabf70bfaa11c35ec630b1e5d7455570165c937bfe826a3b4d1278d21f0ff6cb SHA512 ab76eabb5459b6a8dde28c23b8c8d39587e7874daaf368afcbe7aabe57ce499285d4151b53afa8295991742c481ca18617e71107ae264c05ab28b24b67c00b9b WHIRLPOOL f96660d1f77e3a5d1e71b9bd4808b8aeca0d3a2747257d5306a5d0a9a6b7c3f78c1bd7447b406943dc25dfb4c7e544437c717d597cae589e0aa420c01f8ce562 +EBUILD wmgtemp-1.0-r1.ebuild 983 SHA256 4b92d2b93949a2308708cd1dc9de7377982450cf5ecde58747a67c3eeae3cdf9 SHA512 5c3ff69f60e378a35cfd621b5143b87d5b63db20796e1f560802e6453b547eb1117ec77f5fe7a8c8da9e8374de5763528b97e95e1c1b8dc4a41363b8dd190698 WHIRLPOOL 7dc89b91210a3a83ef3793bb2541430839df65c8067374d1a9822aa393be3cd0f16d5c2b13b87b3491149bbf65f5838dff5878ead58f57d694349659cddcad9b +EBUILD wmgtemp-1.2.ebuild 418 SHA256 a39f9c7ef10e56f976f4e431fe4317feb41cc7727ccf2708facc3d7f512b0cb1 SHA512 2144434bcde9e1d104cccc8aceac80b2371f19af0301e63ca3cbd9b886294421c84c079c35cbd2ee364f7d6c769b29742a157824af6a892f9301fbc4b76cd5c8 WHIRLPOOL 922a3e4eceaaffa9561e08357ffdbfba0fa709fcdeefdd1520fac481f9508565730cd0c4529a99ab6a85225d417bf38882ccb2c7c0172a4a3eb1a637bb68b408 +MISC ChangeLog 3139 SHA256 5101cf173c37f2d39da3d117cffe4b91d46df35e3468c136b7c1d8d6a2cdc9b3 SHA512 70affd5e5a30385ba719131d73645d02d226b3e8c7accd3b67647fb0f83f3672bd6bae308798d99eaaec848b44c7269994f2e1d67c967da96d26a1f288280041 WHIRLPOOL 4394c01c91f9882fab6cf35c18e9381aa527415cce8d7f5c734fa9f03c5530c57300286ce183bb616f74273c57ddd65446838ac03e46990d36181df2450d8b27 +MISC ChangeLog-2015 1985 SHA256 d40f863de2ab5be11f7b7921763b95ca41780dca4844615b26dd127770aa5ff4 SHA512 99ebd36569fc8e65755d4c72d1c98e5fb17ff645901f7b2c8f055a41a60ad89d1eb593867c4f82220ff6f3355bafb40c100e5fd9a581a67bdc873f865dfeaaf2 WHIRLPOOL 1ff6c687b8b92820c18e5c2dc4680ee4a2ba8fa5cab4e33c07b96ec0b7abcc73b5e9ae1260ef9c7c9bc700495c40f6bcf06848616a3bc7d489f19990f370d4b9 +MISC metadata.xml 739 SHA256 54de8d08842e9683b3689ed2db0226c3576669efa8af092cf177b5f7c114af14 SHA512 a8750419c79941025fbd79e72f9a0e646bb08cdfa341dd531b77c755f48f97c07574e095b57d9cba3fcbc27404c5f35b0ff52617828623e48cfcc42bbfba552f WHIRLPOOL a36a9d0b58508d85e41ef44bcb488a7850bef8c26973ea15ed0f2360ff8c5edecfb984b9c711dd8a5328e027c112ab26f42b5111ac5bbd55e9f0c84b53c5a1dd diff --git a/x11-plugins/wmgtemp/files/wmgtemp-1.0-list.patch b/x11-plugins/wmgtemp/files/wmgtemp-1.0-list.patch new file mode 100644 index 000000000000..54a2eb2c2887 --- /dev/null +++ b/x11-plugins/wmgtemp/files/wmgtemp-1.0-list.patch @@ -0,0 +1,127 @@ +diff -Naur src/wmgeneral.orig/list.c src/wmgeneral/list.c +--- src/wmgeneral.orig/list.c 2016-01-04 13:10:41.091981064 +0100 ++++ src/wmgeneral/list.c 2016-01-04 13:10:56.428986326 +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 src/wmgeneral.orig/list.h src/wmgeneral/list.h +--- src/wmgeneral.orig/list.h 2016-01-04 13:10:41.091981064 +0100 ++++ src/wmgeneral/list.h 2016-01-04 13:10:42.883981679 +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/wmgtemp/metadata.xml b/x11-plugins/wmgtemp/metadata.xml new file mode 100644 index 000000000000..6573fee387af --- /dev/null +++ b/x11-plugins/wmgtemp/metadata.xml @@ -0,0 +1,17 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + +wmgtemp is a dock-app for Window Maker that graphically displays the CPU and +System temperatures using the lm_sensors package. It was originally intended to +work with the VIA686A chipset although it can dynamically detect chipset +features to work with other sensors. It displays the CPU and System temperature +values, a scaling graph of temperature history, and high-temperature warning +lights. It should also work fine with other window managers. + + diff --git a/x11-plugins/wmgtemp/wmgtemp-1.0-r1.ebuild b/x11-plugins/wmgtemp/wmgtemp-1.0-r1.ebuild new file mode 100644 index 000000000000..0e7ce1d8bbf7 --- /dev/null +++ b/x11-plugins/wmgtemp/wmgtemp-1.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="CPU and SYS temperature dockapp" +HOMEPAGE="http://www.fluxcode.net" +SRC_URI="http://www.fluxcode.net/${P}.tar.bz2" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xextproto + =sys-apps/lm_sensors-3* + >=sys-apps/sed-4" + +src_prepare() { + epatch "${FILESDIR}"/${P}-list.patch + + sed -i -e "s:-Wall -g:\$(CFLAGS):" src/Makefile || die "sed failed." + + #Honour Gentoo LDFLAGS, rationalizing Makefile - see bug #337411. + sed -i -e "s:LDFLAGS =:LIBS =:" src/Makefile || die "sed failed." + sed -i -e "s:\$(LDFLAGS) -o \$(BINARY):\$(LDFLAGS) -o \$(BINARY) \$(LIBS):" src/Makefile || die "sed failed." +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dodoc BUGS CREDITS README TODO + dobin src/wmgtemp + doman wmgtemp.1 +} diff --git a/x11-plugins/wmgtemp/wmgtemp-1.2.ebuild b/x11-plugins/wmgtemp/wmgtemp-1.2.ebuild new file mode 100644 index 000000000000..c76e8269e087 --- /dev/null +++ b/x11-plugins/wmgtemp/wmgtemp-1.2.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="CPU and SYS temperature dockapp" +HOMEPAGE="http://www.dockapps.net/wmgtemp" +SRC_URI="http://www.dockapps.net/download/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/lm_sensors:= + >=x11-libs/libdockapp-0.7:= + x11-libs/libX11" +RDEPEND="${DEPEND}" -- cgit v1.2.3