[weasel-commit] Source: aalib=1.4rc5-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Thu, 14 Jan 2010 17:01:39 -0500

================================
aalib:source=1.4rc5-1
cvc rdiff aalib -1 /weasel.rpath.org@wgl:new/1.4rc5-1
================================
1.4rc5-1 Filip Brcic (brcha@xxxxxxx) Thu Jan 14 17:01:28 2010
    aalib 1.4rc5

aalib.recipe: new
--- /dev/null
+++ aalib.recipe
@@ -0,0 +45 @@
+#
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Aalib(AutoPackageRecipe):
+    name = 'aalib'
+    version = '1.4rc5'
+
+    buildRequires = [
+        'autoconf:runtime', 'automake:runtime',
+        'install-info:runtime', 'libICE:devel', 'libX11:devel',
+        'libtool:runtime', 'slang:devel', 'ncurses:devel',
+        'gpm:devel', 'xproto:devel',
+        ]
+
+    shortDesc  = 'A ASCII-Graphics Library'
+    longDesc   = """
+AAlib is an portable ascii art GFX library. If you wish to see some
+examples of AAlib technology, please browse AA-project homepage.
+"""
+    url        = 'http://aa-project.sourceforge.net/aalib/'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Media/Libraries' ]
+
+    def unpack(r):
+        r.addArchive('mirror://sourceforge/aa-project/')
+
+        r.addPatch('aalib-1.4_rc4-gentoo.patch')
+        r.addPatch('aalib-1.4_rc4-m4.patch')
+
+        r.Replace('#include <malloc.h>', '#include <stdlib.h>',
+                  'src/*.c',
+                  allowNoChange=True)
+
+        r.Replace('gpm_mousedriver_test=yes', 'gpm_mousedriver_test=no',
+                  'configure.in')
+
+        r.Autoreconf()
+
+    def configure(r):
+        r.Configure(
+            ' --with-slang-driver'
+            ' --with-x11-driver'
+            )

aalib-1.4rc5.tar.gz: new
aalib-1.4_rc4-m4.patch: new
--- /dev/null
+++ aalib-1.4_rc4-m4.patch
@@ -0,0 +9 @@
+Get rid of aclocal warning:
+/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of 
AM_PATH_AALIB
+--- aalib-1.4.0/aalib.m4
++++ aalib-1.4.0/aalib.m4
+@@ -11,3 +11,3 @@
+ dnl
+-AC_DEFUN(AM_PATH_AALIB,
++AC_DEFUN([AM_PATH_AALIB],
+ [dnl 

aalib-1.4_rc4-gentoo.patch: new
--- /dev/null
+++ aalib-1.4_rc4-gentoo.patch
@@ -0,0 +35 @@
+Fix --with-gpm-mouse usage to not be so freaky.  Don't patch 
+configure.in that way we avoid having to run autotools.
+
+  AC_ARG_WITH(gpm-mouse, 
+ -     [  --with-gpm-mouse=base-dir  Specifies the base gpm directory],
+ -     if test x$withval = xyes
+ +     [  --with-gpm-mouse=base-dir/no  Specifies the base gpm directory],
+ +     if test x$withval = xno
+       then 
+ -             AC_MSG_WARN(Usage is: --with-gpm-mouse=base-dir)
+ +             gpm_mousedriver_test=no
+       else
+--- aalib-1.4.0/configure
++++ aalib-1.4.0/configure
+@@ -28,7 +28,7 @@
+ ac_help="$ac_help
+   --with-curses-driver=no/yes Used to disable/force curses driver"
+ ac_help="$ac_help
+-  --with-gpm-mouse=base-dir  Specifies the base gpm directory"
++  --with-gpm-mouse=base-dir/no  Specifies the base gpm directory"
+ ac_help="$ac_help
+   --with-x                use the X Window System"
+ ac_help="$ac_help
+@@ -1960,9 +1960,9 @@
+ # Check whether --with-gpm-mouse or --without-gpm-mouse was given.
+ if test "${with_gpm_mouse+set}" = set; then
+   withval="$with_gpm_mouse"
+-  if test x$withval = xyes
++  if test x$withval = xno
+       then 
+-              echo "configure: warning: Usage is: --with-gpm-mouse=base-dir" 
1>&2
++              gpm_mousedriver_test=no
+       else
+               LIBS="$LIBS -L$withval/lib -lgpm"
+                 cat >> confdefs.h <<\EOF


Committed by: brcha

Other related posts: