Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmmemfree/files/, x11-plugins/wmmemfree/
Date: Fri, 05 Jan 2018 22:52:32
Message-Id: 1515192447.ddccd1a3d7a8c6e9fefda54d109420d0ffbffca8.zlogene@gentoo
1 commit: ddccd1a3d7a8c6e9fefda54d109420d0ffbffca8
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 22:47:27 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 22:47:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddccd1a3
7
8 x11-plugins/wmmemfree: remove last rited package (bug #639914)
9
10 x11-plugins/wmmemfree/Manifest | 1 -
11 .../wmmemfree-0.7-add-kernel-26-support.patch | 83 ----------------------
12 ...mfree-0.7-fix-crash-when-there-is-no-swap.patch | 18 -----
13 x11-plugins/wmmemfree/metadata.xml | 9 ---
14 x11-plugins/wmmemfree/wmmemfree-0.7-r2.ebuild | 40 -----------
15 5 files changed, 151 deletions(-)
16
17 diff --git a/x11-plugins/wmmemfree/Manifest b/x11-plugins/wmmemfree/Manifest
18 deleted file mode 100644
19 index 5d240a230e2..00000000000
20 --- a/x11-plugins/wmmemfree/Manifest
21 +++ /dev/null
22 @@ -1 +0,0 @@
23 -DIST wmmemfree-0.7.tar.bz2 14287 BLAKE2B 77a6fefbcc5b27d54815bde4d16e8eca90d9266499274fbfb003115a1fd21709f464a00479c287c898f4b1d1bb459d4811b1f56ebe8387b8063f0b515675fdb2 SHA512 cb612a867df55a96bc6b3b509c790548f95c57d25dda81c2babc03e52a06133b2f9b4339f37156c3ebcdeb65c49643ec03edc6f56a5f198d82475ff1d7e9368a
24
25 diff --git a/x11-plugins/wmmemfree/files/wmmemfree-0.7-add-kernel-26-support.patch b/x11-plugins/wmmemfree/files/wmmemfree-0.7-add-kernel-26-support.patch
26 deleted file mode 100644
27 index c4545d0654c..00000000000
28 --- a/x11-plugins/wmmemfree/files/wmmemfree-0.7-add-kernel-26-support.patch
29 +++ /dev/null
30 @@ -1,83 +0,0 @@
31 -diff -Naur wmmemfree-0.7/mem_linux.c wmmemfree-0.7.new/mem_linux.c
32 ---- wmmemfree-0.7/mem_linux.c 2003-03-17 14:23:05.000000000 +0100
33 -+++ wmmemfree-0.7/mem_linux.c 2004-08-28 23:18:56.783772744 +0200
34 -@@ -20,24 +20,48 @@
35 -
36 - #include <stdio.h>
37 - #include <stdlib.h>
38 -+#include <string.h>
39 -+
40 -+long int mem_total, mem_used, mem_free, mem_buffers, mem_cached;
41 -+long int swp_total, swp_used, swp_free;
42 -
43 --long long int mem_total, mem_used, mem_free, mem_shared, mem_buffers, mem_cached;
44 --long long int swp_total, swp_used, swp_free;
45 -
46 - void mem_getfree()
47 - {
48 -- FILE *file;
49 -+ FILE *memfp;
50 -+
51 -+ static char buf[1024];
52 -+ static char *p_mem_tot=NULL, *p_mem_free, *p_mem_buffers, *p_mem_cache;
53 -+ static char *p_swap_total, *p_swap_free;
54 -+
55 -+ memfp = fopen("/proc/meminfo", "r");
56 -+ if (!memfp)
57 -+ {
58 -+ perror("/proc/meminfo");
59 -+ exit(1);
60 -+ }
61 -+
62 -+ fread_unlocked (buf, 1024, 1, memfp);
63 -+ fclose(memfp);
64 -+
65 -+ if (!p_mem_tot)
66 -+ {
67 -+ p_mem_tot = strstr(buf, "MemTotal:" ) + 13;
68 -+ p_mem_free = strstr(buf, "MemFree:" ) + 13;
69 -+ p_mem_buffers = strstr(buf, "Buffers:" ) + 13;
70 -+ p_mem_cache = strstr(buf, "Cached:" ) + 13;
71 -+ p_swap_total = strstr(buf, "SwapTotal:") + 13;
72 -+ p_swap_free = strstr(buf, "SwapFree:" ) + 13;
73 -+ }
74 -+
75 -+ sscanf(p_mem_tot, "%ld", &mem_total );
76 -+ sscanf(p_mem_free, "%ld", &mem_free );
77 -+ sscanf(p_mem_buffers, "%ld", &mem_buffers);
78 -+ sscanf(p_mem_cache, "%ld", &mem_cached );
79 -+ sscanf(p_swap_total, "%ld", &swp_total );
80 -+ sscanf(p_swap_free, "%ld", &swp_free );
81 -+
82 -+ mem_used = mem_total - mem_free;
83 -+ swp_used = swp_total - swp_free;
84 -
85 -- file = fopen("/proc/meminfo", "r");
86 -- if(!file)
87 -- {
88 -- perror("/proc/meminfo");
89 -- exit(1);
90 -- }
91 -- while(fgetc(file)!='\n'){}
92 -- fscanf(file, "%*s %Ld %Ld %Ld %Ld %Ld %Ld",
93 -- &mem_total, &mem_used, &mem_free, &mem_shared, &mem_buffers, &mem_cached);
94 -- fscanf(file, "%*s %Ld %Ld %Ld",
95 -- &swp_total, &swp_used, &swp_free);
96 -- fclose(file);
97 - }
98 -diff -Naur wmmemfree-0.7/mem_linux.h wmmemfree-0.7.new/mem_linux.h
99 ---- wmmemfree-0.7/mem_linux.h 2003-03-22 19:51:35.000000000 +0100
100 -+++ wmmemfree-0.7/mem_linux.h 2004-08-28 23:12:19.066235000 +0200
101 -@@ -21,9 +21,9 @@
102 - #ifndef __MEM_LINUX_H__
103 - #define __MEM_LINUX_H__
104 -
105 --extern long long int mem_total, mem_used;
106 --extern long long int mem_shared, mem_buffers, mem_cached;
107 --extern long long int swp_total, swp_used;
108 -+extern long int mem_total, mem_used;
109 -+extern long int mem_buffers, mem_cached;
110 -+extern long int swp_total, swp_used;
111 -
112 - void mem_getfree();
113 -
114
115 diff --git a/x11-plugins/wmmemfree/files/wmmemfree-0.7-fix-crash-when-there-is-no-swap.patch b/x11-plugins/wmmemfree/files/wmmemfree-0.7-fix-crash-when-there-is-no-swap.patch
116 deleted file mode 100644
117 index d062fd9ee09..00000000000
118 --- a/x11-plugins/wmmemfree/files/wmmemfree-0.7-fix-crash-when-there-is-no-swap.patch
119 +++ /dev/null
120 @@ -1,18 +0,0 @@
121 ---- wmmemfree-0.7/draw.c 2003-03-21 21:56:25.000000000 +0100
122 -+++ wmmemfree-0.7/draw.c 2008-02-16 10:02:51.000000000 +0100
123 -@@ -44,13 +44,13 @@
124 - XCopyArea(display, on, buffer, gc, 0, 0, 2, 11, 7 + n * 2, 27);
125 - else
126 - XCopyArea(display, off, buffer, gc, 0, 0, 2, 11, 7 + n * 2, 27);
127 -- if(n < (swp * 25 / swp_total))
128 -+ if(n < ((swp_total) ? (swp * 25 / swp_total) : 0))
129 - XCopyArea(display, on, buffer, gc, 0, 0, 2, 11, 7 + n * 2, 47);
130 - else
131 - XCopyArea(display, off, buffer, gc, 0, 0, 2, 11, 7 + n * 2, 47);
132 - }
133 - mem_percent = mem * 100 / mem_total;
134 -- swp_percent = swp * 100 / swp_total;
135 -+ swp_percent = (swp_total) ? swp * 100 / swp_total : 0;
136 - if(mem_percent == 100)
137 - XCopyArea(display, numbers, buffer, gc, 5, 0, 5, 6, 33, 20);
138 - else
139
140 diff --git a/x11-plugins/wmmemfree/metadata.xml b/x11-plugins/wmmemfree/metadata.xml
141 deleted file mode 100644
142 index 1d5e6504004..00000000000
143 --- a/x11-plugins/wmmemfree/metadata.xml
144 +++ /dev/null
145 @@ -1,9 +0,0 @@
146 -<?xml version="1.0" encoding="UTF-8"?>
147 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
148 -<pkgmetadata>
149 -<maintainer type="person">
150 - <email>voyageur@g.o</email>
151 - <name>Bernard Cafarelli</name>
152 -</maintainer>
153 -
154 -</pkgmetadata>
155
156 diff --git a/x11-plugins/wmmemfree/wmmemfree-0.7-r2.ebuild b/x11-plugins/wmmemfree/wmmemfree-0.7-r2.ebuild
157 deleted file mode 100644
158 index 816a1dd48a6..00000000000
159 --- a/x11-plugins/wmmemfree/wmmemfree-0.7-r2.ebuild
160 +++ /dev/null
161 @@ -1,40 +0,0 @@
162 -# Copyright 1999-2014 Gentoo Foundation
163 -# Distributed under the terms of the GNU General Public License v2
164 -
165 -EAPI=3
166 -
167 -inherit eutils toolchain-funcs
168 -
169 -DESCRIPTION="a blue memory monitoring dockapp"
170 -HOMEPAGE="http://misuceldestept.go.ro/wmmemfree"
171 -SRC_URI="http://ibiblio.org/pub/linux/X11/xutils/${P}.tar.bz2"
172 -
173 -LICENSE="GPL-2"
174 -SLOT="0"
175 -KEYWORDS="~amd64 ppc ppc64 sparc x86"
176 -IUSE=""
177 -
178 -RDEPEND="x11-libs/libX11
179 - x11-libs/libXext
180 - x11-libs/libXpm"
181 -DEPEND="${RDEPEND}
182 - x11-proto/xextproto"
183 -
184 -src_prepare() {
185 - epatch "${FILESDIR}"/${P}-add-kernel-26-support.patch
186 - epatch "${FILESDIR}"/${P}-fix-crash-when-there-is-no-swap.patch
187 -
188 - #Honour Gentoo LDFLAGS, see bug #337927.
189 - sed -e "s/-o \$(PROG)/\$(LDFLAGS) -o \$(PROG)/" -i Makefile
190 -}
191 -
192 -src_compile() {
193 - emake CC="$(tc-getCC)" FLAGS="${CFLAGS}" \
194 - STRIP="true" || die "emake failed."
195 -}
196 -
197 -src_install() {
198 - dobin ${PN}
199 - doman ${PN}.1
200 - dodoc ChangeLog README THANKS TODO WMS
201 -}