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

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Feb 4 07:31:13 EST 2012


    Date: Saturday, February 4, 2012 @ 07:31:13
  Author: andyrtr
Revision: 148610

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  xaw3d/repos/staging-i686/
  xaw3d/repos/staging-i686/PKGBUILD
    (from rev 148609, xaw3d/trunk/PKGBUILD)
  xaw3d/repos/staging-i686/xaw3d.patch
    (from rev 148609, xaw3d/trunk/xaw3d.patch)
  xaw3d/repos/staging-x86_64/
  xaw3d/repos/staging-x86_64/PKGBUILD
    (from rev 148609, xaw3d/trunk/PKGBUILD)
  xaw3d/repos/staging-x86_64/xaw3d.patch
    (from rev 148609, xaw3d/trunk/xaw3d.patch)

----------------------------+
 staging-i686/PKGBUILD      |   29 +++++++++++++++++++++++++++++
 staging-i686/xaw3d.patch   |   30 ++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD    |   29 +++++++++++++++++++++++++++++
 staging-x86_64/xaw3d.patch |   30 ++++++++++++++++++++++++++++++
 4 files changed, 118 insertions(+)

Copied: xaw3d/repos/staging-i686/PKGBUILD (from rev 148609, xaw3d/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-02-04 12:31:13 UTC (rev 148610)
@@ -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/staging-i686/xaw3d.patch (from rev 148609, xaw3d/trunk/xaw3d.patch)
===================================================================
--- staging-i686/xaw3d.patch	                        (rev 0)
+++ staging-i686/xaw3d.patch	2012-02-04 12:31:13 UTC (rev 148610)
@@ -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);
+ }
+ 
+ 

Copied: xaw3d/repos/staging-x86_64/PKGBUILD (from rev 148609, xaw3d/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-02-04 12:31:13 UTC (rev 148610)
@@ -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/staging-x86_64/xaw3d.patch (from rev 148609, xaw3d/trunk/xaw3d.patch)
===================================================================
--- staging-x86_64/xaw3d.patch	                        (rev 0)
+++ staging-x86_64/xaw3d.patch	2012-02-04 12:31:13 UTC (rev 148610)
@@ -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