aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xdu
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2013-06-13 22:27:01 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2013-06-13 22:27:01 +0000
commit490a9407b8ecb6577a0f113e3242c442ccd2beb9 (patch)
tree17b2c09de6928dd1218e5f6445338e7ae5358bce /sysutils/xdu
parentc427ff5bae5b06dbcfe9414726955b5f45ca2992 (diff)
downloadports-490a9407b8ecb6577a0f113e3242c442ccd2beb9.tar.gz
ports-490a9407b8ecb6577a0f113e3242c442ccd2beb9.zip
Notes
Diffstat (limited to 'sysutils/xdu')
-rw-r--r--sysutils/xdu/Makefile6
-rw-r--r--sysutils/xdu/files/patch-xwin.c18
2 files changed, 19 insertions, 5 deletions
diff --git a/sysutils/xdu/Makefile b/sysutils/xdu/Makefile
index e244e789efbe..4dcbf8aaf87d 100644
--- a/sysutils/xdu/Makefile
+++ b/sysutils/xdu/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: xdu
-# Date created: 9 February 1995
-# Whom: asami
-#
+# Created by: asami
# $FreeBSD$
-#
PORTNAME= xdu
PORTVERSION= 3.0
diff --git a/sysutils/xdu/files/patch-xwin.c b/sysutils/xdu/files/patch-xwin.c
new file mode 100644
index 000000000000..776f77399184
--- /dev/null
+++ b/sysutils/xdu/files/patch-xwin.c
@@ -0,0 +1,18 @@
+--- xwin.c.orig 1994-06-05 21:29:24.000000000 +0200
++++ xwin.c 2013-06-13 23:51:03.882547665 +0200
+@@ -400,12 +400,14 @@
+ &ascent, &descent, &overall);
+ cheight = overall.ascent + overall.descent;
+ if (height < (cheight + 2))
+- return;
++ return 0;
+
+ /* print label */
+ textx = x + 4;
+ texty = y + height/2.0 + (overall.ascent - overall.descent)/2.0 + 1.5;
+ XDrawString(dpy, win, gc, textx, texty, name, strlen(name));
++
++ return 0;
+ }
+
+ static Widget popup;