[arch-commits] Commit in xaw3d/repos (4 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Feb 4 13:37:57 UTC 2012


    Date: Saturday, February 4, 2012 @ 08:37:57
  Author: andyrtr
Revision: 148619

db-move: moved xaw3d from [staging] to [testing] (i686)

Added:
  xaw3d/repos/testing-i686/
  xaw3d/repos/testing-i686/PKGBUILD
    (from rev 148618, xaw3d/repos/staging-i686/PKGBUILD)
  xaw3d/repos/testing-i686/xaw3d.patch
    (from rev 148618, xaw3d/repos/staging-i686/xaw3d.patch)
Deleted:
  xaw3d/repos/staging-i686/

-------------+
 PKGBUILD    |   29 +++++++++++++++++++++++++++++
 xaw3d.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

Copied: xaw3d/repos/testing-i686/PKGBUILD (from rev 148618, xaw3d/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-02-04 13:37:57 UTC (rev 148619)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=xaw3d
+pkgver=1.6
+pkgrel=1
+pkgdesc="Three-D Athena widgets"
+arch=('i686' 'x86_64')
+url="http://directory.fsf.org/project/xaw3d/"
+license=('MIT')
+depends=('libxmu')
+makedepends=('xorg-util-macros')
+options=('!libtool')
+source=(http://xorg.freedesktop.org/archive/individual/lib/libXaw3d-${pkgver}.tar.bz2)
+md5sums=('db88f0c5afc5f285e046d84e15ad30de')
+
+build() {
+  cd "${srcdir}/libXaw3d-${pkgver}"
+  ./configure --prefix=/usr --disable-static
+  make
+}
+
+package() {
+  cd "${srcdir}/libXaw3d-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}

Copied: xaw3d/repos/testing-i686/xaw3d.patch (from rev 148618, xaw3d/repos/staging-i686/xaw3d.patch)
===================================================================
--- testing-i686/xaw3d.patch	                        (rev 0)
+++ testing-i686/xaw3d.patch	2012-02-04 13:37:57 UTC (rev 148619)
@@ -0,0 +1,30 @@
+diff -up Xaw3d-1.5E/xc/lib/Xaw3d/Scrollbar.c.orig Xaw3d-1.5E/xc/lib/Xaw3d/Scrollbar.c
+--- Xaw3d-1.5E/xc/lib/Xaw3d/Scrollbar.c.orig	2003-02-10 18:22:26.000000000 +0100
++++ Xaw3d-1.5E/xc/lib/Xaw3d/Scrollbar.c	2008-10-06 10:07:46.000000000 +0200
+@@ -1087,7 +1087,11 @@ static void NotifyThumb (w, event, param
+     Cardinal *num_params;	/* unused */
+ {
+     register ScrollbarWidget sbw = (ScrollbarWidget) w;
+-    float top = sbw->scrollbar.top;
++    union {
++	XtPointer pt;
++	float	  top;
++    } foo;
++    foo.top = sbw->scrollbar.top;
+ 
+ #ifndef XAW_ARROW_SCROLLBARS
+     if (sbw->scrollbar.direction == 0) return; /* if no StartScroll */
+@@ -1116,10 +1120,10 @@ static void NotifyThumb (w, event, param
+     /* Removed the dependancy on scrollbar arrows. Xterm as distributed in
+        X11R6.6 by The XFree86 Project wants this correction, with or without
+        the arrows. */
+-    top += 0.0001;
++    foo.top += 0.0001;
+ /* #endif */
+-    XtCallCallbacks (w, XtNthumbProc, *(XtPointer*)&top);
+-    XtCallCallbacks (w, XtNjumpProc, (XtPointer)&top);
++    XtCallCallbacks (w, XtNthumbProc, foo.pt);
++    XtCallCallbacks (w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top);
+ }
+ 
+ 




More information about the arch-commits mailing list