diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-plugins/wmload |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-plugins/wmload')
-rw-r--r-- | x11-plugins/wmload/Manifest | 14 | ||||
-rw-r--r-- | x11-plugins/wmload/files/wmload-0.9.2-prefix.patch | 11 | ||||
-rw-r--r-- | x11-plugins/wmload/files/wmload-0.9.6-solaris.patch | 132 | ||||
-rw-r--r-- | x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch | 8 | ||||
-rw-r--r-- | x11-plugins/wmload/files/wmload.desktop | 8 | ||||
-rw-r--r-- | x11-plugins/wmload/files/wmload.solaris.patch | 141 | ||||
-rw-r--r-- | x11-plugins/wmload/metadata.xml | 9 | ||||
-rw-r--r-- | x11-plugins/wmload/wmload-0.9.2.ebuild | 49 | ||||
-rw-r--r-- | x11-plugins/wmload/wmload-0.9.6.ebuild | 37 | ||||
-rw-r--r-- | x11-plugins/wmload/wmload-0.9.7.ebuild | 35 |
10 files changed, 444 insertions, 0 deletions
diff --git a/x11-plugins/wmload/Manifest b/x11-plugins/wmload/Manifest new file mode 100644 index 000000000000..61b16140ac4b --- /dev/null +++ b/x11-plugins/wmload/Manifest @@ -0,0 +1,14 @@ +AUX wmload-0.9.2-prefix.patch 222 SHA256 3b5db5473bbb38a8e91fbac19d94eb2d8be913cdbe58bfcc6c8679595fa3c31a SHA512 c92f3782728ccca5440cac7b750f5312c4e9c3942230974a6ea88e72388764f08add2a03bf382a8855a56e683f98531281e37423d39eafab2eef82aac49995aa WHIRLPOOL 29472968b75d9edab0dae7578c68cd4c6161b69693d51ab398bac566497126609e344db9d461550f7ba05eab7d919ff652cecdc304a8defcead8efdc624ca848 +AUX wmload-0.9.6-solaris.patch 3036 SHA256 87393c5e12c983c10a6b629dc06d59a8548d67b4129cbbd4b1f20afc94770e8c SHA512 8884d0f742cfa6536f436bc4656d1e6d44eb6f4de076a9f68c0d8bb6ab66bc93a8e972094593e367347a580f53d56697e2dbe98810257532e08f99111597f07c WHIRLPOOL 0552bb9c4a749245eb493b8b223028aadc85942c8bf0004faa5b4f652667b5d168a6ec111946362e8db79325968b60dc6d0967027716b459ff8428b53df3eedc +AUX wmload-ComplexProgramTargetNoMan.patch 224 SHA256 96b7e8cec9ac03362cbb2f0fb11da35db034ef5b1421bc508a6379779cac06c9 SHA512 41753993f6cce969284c0093506d125d7b6b7508968a98a248e8c06cc0941fcd9daf2e1d31782aa58e21ce18a3ed8a03131fddee9f048c93c3b4d97560625cd5 WHIRLPOOL 7768a911036c7e5a63e5e10649419c581874a9ad51328d4cf55b6ccc6cd5a567426025147a4f9c1692caaec8494a47519380a2314d0951b0ad9cd3577bb0e129 +AUX wmload.desktop 155 SHA256 709f112e911ea854ee6dfe03a5fc1aa3104bfc5466f337fa7f9702c9db2a6be0 SHA512 260b0370bbd730ce89f7452e1c8d8ccdacee047aa025ea4e832405534e9a0418983e1724fa01ab143e7d978906708697ea338d1f831a8de5c3a790f0f238395b WHIRLPOOL 1bc2b6b36e82ada9a73a1bff9b6ce322e02d2e40c77c1918e2cacd1edf13d4a1a440151a773b43c9084de4178c7599cab74c4d94780fe6d895d1861cfa846703 +AUX wmload.solaris.patch 3494 SHA256 326a2939c2914ea2c544d0b730763d6babfe44109dcd305fb720ca9ef5b25fef SHA512 9b65b4578168f3bc3b0e3bccff94097fb301e6763fecae712b58b3d21a994ceb8fbc8f39d640959374e19e2cfa71e3eab38d4eaf18c421bdf28c7113db1212f0 WHIRLPOOL cdf1c58de85a6602593d8d8c89dafe916a159de8bbdbee1c900123cf54366f6ec00f6a3b70f15d72c1649f03e994b3a1ec1083955269357782b5f95cda4abad8 +DIST wmload-0.9.2.tgz 8499 SHA256 5c4c99ad683b58f22efecf3e780011ec6dc3211d8fca7ffb5b9fd0b661a56176 SHA512 fd3875d8da5bb309f0d49eb6ebe0903832d021a244b90ad70821e90aa85e835ef727d84957fb0cdb0290075ba1c0bb11cd4756a5a933cfebb35682f0b8e0dbca WHIRLPOOL e37d0cdff1cdbbcc1f548de9aa1575b86035840b8405bdadda37580c65039e9d4124cd6ae92ef806590807093e67265dc5b14bc09109140d73dacafdb076a585 +DIST wmload-0.9.6.tar.gz 17143 SHA256 1919566199b6e376e1c7acad119a9bbe765aedb2f2e5da2cb7b7f880af7e8f62 SHA512 989dfce6f6bbc32403702e06b47c873af45b6196ff20572290e88022ced1817cc0d29bae79f20fb289cf37ec2bd532e1b6e7c975a9b1e6e6059c9307a4d7e63d WHIRLPOOL d8c933be200d2abd778ecb23770895401401be396293642d3e4316aa81332ad21e6f11754e35cf9102379fb339f2d7cacad2647e82e063158ec2ce25720e71b4 +DIST wmload-0.9.7.tar.gz 17648 SHA256 ab985eaac41e3b3c64d441310f4c75334eecfb29d45400039d4222f834575f5c SHA512 5d08f34013c23c85de88adbfeca31e8399f0f9ce5573845aa50c1f4a06488d729de637b1d0f8b5739194b30ba8e085d40022926a3a8328d3cdab462f9e649801 WHIRLPOOL 72f2a102e72c836bb8ecd7ddfa3340e6bdf2c02b32bf55afdcfdf3b819b54d09cef5f9f45e6eef173172aa96be2b4fa5a54c1d7e0ca82242ea7f9781fe0c9782 +EBUILD wmload-0.9.2.ebuild 1188 SHA256 f002087abffdff4102cafc7a3e8b678004aaf4bfe4e84e9c5cbc4c022c238df1 SHA512 0117c20dcbbd83ff6a3b461ea92e56bbce1976f3f346442b1d4bdabbd438f796274ccc5e2e121f0595f9b1206cf7d9d7040d0c7b503fa7b1cfb9bfe98d991b55 WHIRLPOOL b1078ad320881ddaef1b80965a0fdf977db2e25779d1d3dc15bd046e586642420f0bd85c956da5937149edc4174c02d33227549378fff5ffde87b4ab64f2a755 +EBUILD wmload-0.9.6.ebuild 809 SHA256 9f2505668e2abb5c77f80fd612b40e71eb9fa16c08ae53f1ae1457cb269985e9 SHA512 9a5be64415d639d1c424664b66d7098bdbf5bcaa5bd04e7f8118f2556a5b75e176dda26f3538b583d22168375aa50c359f799f988074f4a8098dd9cc15784e5c WHIRLPOOL 39a55c7927dfc5426389dfbd23e857e97f5f7b5ecc2071885f516103eee2e8de44a00a92d5b1b54c0173480f8623d74b7ee405daf1fa1edf9e1c9feff44487d0 +EBUILD wmload-0.9.7.ebuild 790 SHA256 4db9a901e5a13a051ff4d43bd1c68e6e1dd30643ff9a043413038b221ec9ba4c SHA512 92c0cfebdb1766a48f4c8f5147e7a6af2bba7896335823486f9cbf43052564340f4989bcb564d7a557dfa47d62486de1a9d0d021651b1b2f25384d46e3d53a8d WHIRLPOOL 4fb9cfe88dcfbc8a060d236baa8e8c51d5909ba7d840fefc02c975036f963566cff749d41019f41b6ddabbad6e6db1f04792ce32622b5b00365c217eb8128978 +MISC ChangeLog 3723 SHA256 3d6ed65684f386ffc6203a5127bf0198c5e0a09ff01380e68ec6de8c8d4983dd SHA512 a480dc56bb3d8dab83a78447ee02d34aedf5092d417f9310edce5d9387f188d932d7817a62596106850cc363274bc32e738089051d9d0edafb3de9e24c7773a9 WHIRLPOOL 7ae1080fe7da934471763ebceadeebe5bc67d4ff00e25aad40eff86985889c04d4157248202daff8ec99ec09213ade180edb1ddb0cde68e0d0d77f6b6956d015 +MISC ChangeLog-2015 2102 SHA256 2ae2239e2a0abb5718919abe07673764712a4b403a66af73f5364f79fcfb1152 SHA512 8d135d1e75a5bf4591d6a7537a69538ef9634c9a13c996a0707cc31cec569948ad9be82afd7cd86933524462965970cb822a787970d181e1b5050ce52c4fa89f WHIRLPOOL 9ca372c8dfea3e1cab8a32db099b3a1e2290922c62b682d179f472df4377f2a87e0698c5952e20b679fc42e4822abc2b12e796f0e08a0f0902f553f50b08bcdc +MISC metadata.xml 249 SHA256 ab0de85cc2ebef9f9bca3773395bc5c909312efb834a8b3948806c1b00dee4e5 SHA512 1a1312bb0e9f74f1e3852218d8fd4817fbad3bc65633cecbe8735607bc33c1e05b414c2628ff3f6e24dfc4a3999de7191f6cdadd2161b03cf614d5b6f24fab8d WHIRLPOOL 3d7026fc5a045f5c90505dab413fe4534364d8c9a47c053ffbfaf3579478e55f77427eb00b05bd4c593a372c69eefae5ca93a2bab9398f52d20d374c2265fb2d diff --git a/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch b/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch new file mode 100644 index 000000000000..3ec43c570df0 --- /dev/null +++ b/x11-plugins/wmload/files/wmload-0.9.2-prefix.patch @@ -0,0 +1,11 @@ +--- Imakefile ++++ Imakefile +@@ -2,7 +2,7 @@ + DESTDIR = /usr/local + BINDIR = /bin + +-XPMLIB = -L/usr/lib/X11 -lXpm -lm ++XPMLIB = `pkg-config xpm --libs` -lm + DEPLIBS = $(DEPXLIB) + + LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) diff --git a/x11-plugins/wmload/files/wmload-0.9.6-solaris.patch b/x11-plugins/wmload/files/wmload-0.9.6-solaris.patch new file mode 100644 index 000000000000..210b28419fa8 --- /dev/null +++ b/x11-plugins/wmload/files/wmload-0.9.6-solaris.patch @@ -0,0 +1,132 @@ +* original: http://www.rampant.org/~dp/software/wmload.solaris.patch + +--- wmload.c ++++ wmload.c +@@ -6,6 +6,11 @@ + #include <math.h> + #include <fcntl.h> + #include <X11/Xatom.h> ++#ifdef sun ++#include <sys/types.h> ++#include <sys/sysinfo.h> ++#include <kstat.h> ++#endif + + #include "back.xpm" + #include "mask2.xbm" +@@ -410,6 +415,107 @@ + return (char *)p; + } + ++#ifdef sun ++ ++static kstat_ctl_t *kc; ++static kstat_t **cpu_ksp_list; ++static int ncpus; ++ ++void ++cpu_stats_init() ++{ ++ int i = 0; ++ kstat_t *ksp; ++ static int kstats_ready = 0; ++ ++ if (!kstats_ready) { ++ if ((kc = kstat_open()) == NULL) { ++ fprintf(stderr,"wmload: can't open /dev/kstat\n"); ++ exit (1); ++ } ++ kstats_ready = 1; ++ } ++ ++ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { ++ if (strcmp(ksp->ks_module, "cpu_stat") == 0) ++ i++; ++ } ++ ++ if (cpu_ksp_list) { ++ free(cpu_ksp_list); ++ } ++ cpu_ksp_list = (kstat_t **) calloc(i * sizeof (kstat_t *), 1); ++ ncpus = i; ++ ++ /* ++ * stash the ksp for each CPU. ++ */ ++ i = 0; ++ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { ++ if (strcmp(ksp->ks_module, "cpu_stat") == 0) { ++ cpu_ksp_list[i] = ksp; ++ i++; ++ } ++ } ++} ++ ++int ++get_cpu_stats() ++{ ++ int i; ++ cpu_stat_t stat; ++ static int firsttime = 1; ++ ++ if (firsttime) { ++ firsttime = 0; ++ return (1); /* force code to go initialize kstat stuff */ ++ } ++ ++ /* ++ * Read each cpu's data. If the chain has changed (a state change ++ * has happened, maybe a new cpu was added to the system), then ++ * return 1. This will cause the code to reinitialize the cpu_ksp_list ++ * array. word. ++ */ ++ cp_time[0] = cp_time[1] = cp_time[2] = cp_time[3] = 0; ++ for (i = 0; i < ncpus; i++) { ++ if (kstat_read(kc, cpu_ksp_list[i], (void *) &stat) == -1) ++ return (1); ++ cp_time[0] += stat.cpu_sysinfo.cpu[CPU_USER]; /* user */ ++ cp_time[1] += stat.cpu_sysinfo.cpu[CPU_WAIT]; /* "nice" */ ++ cp_time[2] += stat.cpu_sysinfo.cpu[CPU_KERNEL]; /* sys */ ++ cp_time[3] += stat.cpu_sysinfo.cpu[CPU_IDLE]; /* idle ("free")*/ ++ } ++ return (0); ++} ++ ++void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free) ++{ ++ int total; ++ ++ while (get_cpu_stats() != 0) { ++ cpu_stats_init(); ++ } ++ ++ *usr = cp_time[0] - last[0]; ++ *nice = cp_time[1] - last[1]; ++ *sys = cp_time[2] - last[2]; ++ *free = cp_time[3] - last[3]; ++ ++ /* printf("[%d %d %d %d]\n", *usr, *nice, *sys, *free); */ ++ ++ total = *usr + *nice + *sys + *free; ++ last[0] = cp_time[0]; ++ last[1] = cp_time[1]; ++ last[2] = cp_time[2]; ++ last[3] = cp_time[3]; ++ ++ *usr = rint(Maximum * (float)(*usr) /total); ++ *nice =rint(Maximum * (float)(*nice) /total); ++ *sys = rint(Maximum * (float)(*sys) /total); ++ *free = rint(Maximum * (float)(*free) /total); ++} ++#else /* sun */ + void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free) + { + char buffer[100];/*[4096+1];*/ +@@ -445,6 +551,7 @@ + *sys = rint(Maximum * (float)(*sys) /total); + *free = rint(Maximum * (float)(*free) /total); + } ++#endif + + void InsertLoad() + { diff --git a/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch b/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch new file mode 100644 index 000000000000..8d3d25d6fa3c --- /dev/null +++ b/x11-plugins/wmload/files/wmload-ComplexProgramTargetNoMan.patch @@ -0,0 +1,8 @@ +--- wmload-0.9.2/Imakefile~ Sat Dec 1 21:53:52 2001 ++++ wmload-0.9.2/Imakefile Sat Dec 1 21:53:52 2001 +@@ -14,4 +14,4 @@ + SRCS = wmload.c + OBJS = wmload.o + +-ComplexProgramTarget(wmload) ++ComplexProgramTargetNoMan(wmload) diff --git a/x11-plugins/wmload/files/wmload.desktop b/x11-plugins/wmload/files/wmload.desktop new file mode 100644 index 000000000000..b9b02e9dc2a4 --- /dev/null +++ b/x11-plugins/wmload/files/wmload.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=WmLoad +Comment=Simple network monitor +Comment[pl]=Prosty monitor sieci +Exec=wmload +Type=Application +Terminal=false +Categories=System; diff --git a/x11-plugins/wmload/files/wmload.solaris.patch b/x11-plugins/wmload/files/wmload.solaris.patch new file mode 100644 index 000000000000..788d4190aba0 --- /dev/null +++ b/x11-plugins/wmload/files/wmload.solaris.patch @@ -0,0 +1,141 @@ +* original: http://www.rampant.org/~dp/software/wmload.solaris.patch + +--- wmload.c ++++ wmload.c +@@ -6,6 +6,11 @@ + #include <math.h> + #include <fcntl.h> + #include <X11/Xatom.h> ++#ifdef sun ++#include <sys/types.h> ++#include <sys/sysinfo.h> ++#include <kstat.h> ++#endif + + #include "back.xpm" + #include "mask2.xbm" +@@ -214,7 +219,7 @@ + NormalGC = XCreateGC(dpy, Root, gcm, &gcv); + + if (ONLYSHAPE) { /* try to make shaped window here */ +- pixmask = XCreateBitmapFromData(dpy, win, mask2_bits, mask2_width, ++ pixmask = XCreateBitmapFromData(dpy, win, (char *)mask2_bits, mask2_width, + mask2_height); + XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, pixmask, ShapeSet); + XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet); +@@ -410,6 +415,107 @@ + return (char *)p; + } + ++#ifdef sun ++ ++static kstat_ctl_t *kc; ++static kstat_t **cpu_ksp_list; ++static int ncpus; ++ ++void ++cpu_stats_init() ++{ ++ int i = 0; ++ kstat_t *ksp; ++ static int kstats_ready = 0; ++ ++ if (!kstats_ready) { ++ if ((kc = kstat_open()) == NULL) { ++ fprintf(stderr,"wmload: can't open /dev/kstat\n"); ++ exit (1); ++ } ++ kstats_ready = 1; ++ } ++ ++ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { ++ if (strcmp(ksp->ks_module, "cpu_stat") == 0) ++ i++; ++ } ++ ++ if (cpu_ksp_list) { ++ free(cpu_ksp_list); ++ } ++ cpu_ksp_list = (kstat_t **) calloc(i * sizeof (kstat_t *), 1); ++ ncpus = i; ++ ++ /* ++ * stash the ksp for each CPU. ++ */ ++ i = 0; ++ for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { ++ if (strcmp(ksp->ks_module, "cpu_stat") == 0) { ++ cpu_ksp_list[i] = ksp; ++ i++; ++ } ++ } ++} ++ ++int ++get_cpu_stats() ++{ ++ int i; ++ cpu_stat_t stat; ++ static int firsttime = 1; ++ ++ if (firsttime) { ++ firsttime = 0; ++ return (1); /* force code to go initialize kstat stuff */ ++ } ++ ++ /* ++ * Read each cpu's data. If the chain has changed (a state change ++ * has happened, maybe a new cpu was added to the system), then ++ * return 1. This will cause the code to reinitialize the cpu_ksp_list ++ * array. word. ++ */ ++ cp_time[0] = cp_time[1] = cp_time[2] = cp_time[3] = 0; ++ for (i = 0; i < ncpus; i++) { ++ if (kstat_read(kc, cpu_ksp_list[i], (void *) &stat) == -1) ++ return (1); ++ cp_time[0] += stat.cpu_sysinfo.cpu[CPU_USER]; /* user */ ++ cp_time[1] += stat.cpu_sysinfo.cpu[CPU_WAIT]; /* "nice" */ ++ cp_time[2] += stat.cpu_sysinfo.cpu[CPU_KERNEL]; /* sys */ ++ cp_time[3] += stat.cpu_sysinfo.cpu[CPU_IDLE]; /* idle ("free")*/ ++ } ++ return (0); ++} ++ ++void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free) ++{ ++ int total; ++ ++ while (get_cpu_stats() != 0) { ++ cpu_stats_init(); ++ } ++ ++ *usr = cp_time[0] - last[0]; ++ *nice = cp_time[1] - last[1]; ++ *sys = cp_time[2] - last[2]; ++ *free = cp_time[3] - last[3]; ++ ++ /* printf("[%d %d %d %d]\n", *usr, *nice, *sys, *free); */ ++ ++ total = *usr + *nice + *sys + *free; ++ last[0] = cp_time[0]; ++ last[1] = cp_time[1]; ++ last[2] = cp_time[2]; ++ last[3] = cp_time[3]; ++ ++ *usr = rint(Maximum * (float)(*usr) /total); ++ *nice =rint(Maximum * (float)(*nice) /total); ++ *sys = rint(Maximum * (float)(*sys) /total); ++ *free = rint(Maximum * (float)(*free) /total); ++} ++#else /* sun */ + void GetLoad(int Maximum, int *usr, int *nice, int *sys, int *free) + { + char buffer[100];/*[4096+1];*/ +@@ -445,6 +551,7 @@ + *sys = rint(Maximum * (float)(*sys) /total); + *free = rint(Maximum * (float)(*free) /total); + } ++#endif + + void InsertLoad() + { diff --git a/x11-plugins/wmload/metadata.xml b/x11-plugins/wmload/metadata.xml new file mode 100644 index 000000000000..1d5e6504004e --- /dev/null +++ b/x11-plugins/wmload/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/wmload/wmload-0.9.2.ebuild b/x11-plugins/wmload/wmload-0.9.2.ebuild new file mode 100644 index 000000000000..f5033d209a6d --- /dev/null +++ b/x11-plugins/wmload/wmload-0.9.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 +inherit eutils + +IUSE="" + +DESCRIPTION="yet another dock application showing a system load gauge" +SRC_URI="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/files/${P}.tgz" +HOMEPAGE="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/sys.html#wmload" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-misc/imake + x11-proto/xproto + x11-proto/xextproto" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-ComplexProgramTargetNoMan.patch + epatch "${FILESDIR}"/${PN}.solaris.patch + epatch "${FILESDIR}"/${P}-prefix.patch + [[ ${CHOST} == *-solaris* ]] && \ + sed -i -e 's/\(^XPMLIB = \)\(.*$\)/\1-lkstat \2/' Imakefile +} + +src_configure() { + xmkmf || die "xmkmf failed." +} + +src_compile() { + emake CDEBUGFLAGS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" \ + || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" BINDIR="${EPREFIX}"/usr/bin install \ + || die "install failed." + + dodoc README + + domenu "${FILESDIR}"/${PN}.desktop +} diff --git a/x11-plugins/wmload/wmload-0.9.6.ebuild b/x11-plugins/wmload/wmload-0.9.6.ebuild new file mode 100644 index 000000000000..13909c104063 --- /dev/null +++ b/x11-plugins/wmload/wmload-0.9.6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="yet another dock application showing a system load gauge" +HOMEPAGE="http://www.dockapps.net/wmload" +SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xproto" + +S=${WORKDIR}/dockapps + +src_prepare() { + epatch "${FILESDIR}"/${P}-solaris.patch +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + + dodoc README + domenu "${FILESDIR}"/${PN}.desktop +} diff --git a/x11-plugins/wmload/wmload-0.9.7.ebuild b/x11-plugins/wmload/wmload-0.9.7.ebuild new file mode 100644 index 000000000000..87607d022954 --- /dev/null +++ b/x11-plugins/wmload/wmload-0.9.7.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="yet another dock application showing a system load gauge" +HOMEPAGE="http://www.dockapps.net/wmload" +SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.9.6-solaris.patch +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + + dodoc README + domenu "${FILESDIR}"/${PN}.desktop +} |