[arch-commits] Commit in mcpp/trunk (PKGBUILD namlen.patch)

Jan de Groot jgc at archlinux.org
Sun Mar 8 13:20:21 UTC 2009


    Date: Sunday, March 8, 2009 @ 09:20:21
  Author: jgc
Revision: 29371

upgpkg: mcpp 2.7.2-2
    Add mcpplib
double the size of NAMLEN so longer locale names are supported

Added:
  mcpp/trunk/namlen.patch
Modified:
  mcpp/trunk/PKGBUILD

--------------+
 PKGBUILD     |   12 ++++++++----
 namlen.patch |   11 +++++++++++
 2 files changed, 19 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-03-08 13:19:43 UTC (rev 29370)
+++ PKGBUILD	2009-03-08 13:20:21 UTC (rev 29371)
@@ -3,18 +3,22 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 pkgname=mcpp
 pkgver=2.7.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Matsui's CPP implementation precisely conformed to standards"
 arch=(i686 x86_64)
 license=('custom')
 url="http://mcpp.sourceforge.net"
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz )
 depends=(glibc)
-md5sums=('512de48c87ab023a69250edc7a0c7b05')
+options=(!libtool)
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz 
+	namlen.patch)
+md5sums=('512de48c87ab023a69250edc7a0c7b05'
+	 '0bfc6177a58e912a9e23e368578dd3fe')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  ./configure --prefix=/usr || return 1
+  patch -Np1 -i "${srcdir}/namlen.patch" || return 1
+  ./configure --prefix=/usr --enable-mcpplib --disable-static || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
 

Added: namlen.patch
===================================================================
--- namlen.patch	                        (rev 0)
+++ namlen.patch	2009-03-08 13:20:21 UTC (rev 29371)
@@ -0,0 +1,11 @@
+--- mcpp-2.7.2/src/mbchar.c	2008-03-08 13:06:13.000000000 +0000
++++ mcpp-2.7.2/src/mbchar.c	2009-03-08 13:14:17.000000000 +0000
+@@ -345,7 +345,7 @@
+ static size_t   mb_read_utf8( int c1, char ** in_pp, char ** out_pp);
+                 /* For UTF8 mbchar encoding         */
+ 
+-#define NAMLEN          20
++#define NAMLEN          40
+ #define UPPER           1               /* To upper */
+ #define LOWER           0               /* To lower */
+ 




More information about the arch-commits mailing list