svn commit: r320845 - in head/sysutils/xdu: . files

Guido Falsi madpilot at FreeBSD.org
Thu Jun 13 22:27:02 UTC 2013


Author: madpilot
Date: Thu Jun 13 22:27:01 2013
New Revision: 320845
URL: http://svnweb.freebsd.org/changeset/ports/320845

Log:
  - Fix build with clang
  - Trim Makefile headers

Added:
  head/sysutils/xdu/files/patch-xwin.c   (contents, props changed)
Modified:
  head/sysutils/xdu/Makefile   (contents, props changed)

Modified: head/sysutils/xdu/Makefile
==============================================================================
--- head/sysutils/xdu/Makefile	Thu Jun 13 22:10:35 2013	(r320844)
+++ head/sysutils/xdu/Makefile	Thu Jun 13 22:27:01 2013	(r320845)
@@ -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

Added: head/sysutils/xdu/files/patch-xwin.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/xdu/files/patch-xwin.c	Thu Jun 13 22:27:01 2013	(r320845)
@@ -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;


More information about the svn-ports-head mailing list