[arch-commits] Commit in scim-pinyin/trunk (PKGBUILD scim-pinyin-0.5.91-gcc43.patch)

Allan McRae allan at archlinux.org
Mon Apr 19 08:02:17 UTC 2010


    Date: Monday, April 19, 2010 @ 04:02:17
  Author: allan
Revision: 77980

upgpkg: scim-pinyin 0.5.91-5
rebuild to get rid of .FILELIST, patcfh for newer toolchain

Added:
  scim-pinyin/trunk/scim-pinyin-0.5.91-gcc43.patch
Modified:
  scim-pinyin/trunk/PKGBUILD

--------------------------------+
 PKGBUILD                       |   28 +++++++++++++++---------
 scim-pinyin-0.5.91-gcc43.patch |   44 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-19 08:02:12 UTC (rev 77979)
+++ PKGBUILD	2010-04-19 08:02:17 UTC (rev 77980)
@@ -1,25 +1,33 @@
 # $Id$
-# Maintainer: damir <damir at archlinux.org>
+# Maintainer: 
 # Contributer: Gan Lu <rhythm.gan at gmail.com>
 
 pkgname=scim-pinyin
 pkgver=0.5.91
-pkgrel=4
+pkgrel=5
 pkgdesc="Chinese 拼音 (PinYin) input for SCIM"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://www.scim-im.org/"
 license=GPL
 depends=('scim>=1.4.7')
-source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz)
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz
+        scim-pinyin-0.5.91-gcc43.patch)
+md5sums=('fb96d3545090d7681ea03edaced4eccb'
+         'ef84582d9bac7ac250d2d64cf260ad39')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd $srcdir/$pkgname-$pkgver
+  patch -Np1 -i $srcdir/scim-pinyin-0.5.91-gcc43.patch
   ./configure --prefix=/usr \
-  		--sysconfdir=/etc \
-		--disable-static
+              --sysconfdir=/etc \
+              --disable-static
   make || return 1
-  make DESTDIR=$startdir/pkg install
-  find $startdir/pkg -name '*.la' -exec rm {} \;
 }
 
-md5sums=('fb96d3545090d7681ea03edaced4eccb')
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+}
+
+

Added: scim-pinyin-0.5.91-gcc43.patch
===================================================================
--- scim-pinyin-0.5.91-gcc43.patch	                        (rev 0)
+++ scim-pinyin-0.5.91-gcc43.patch	2010-04-19 08:02:17 UTC (rev 77980)
@@ -0,0 +1,44 @@
+diff -up scim-pinyin-0.5.91/src/scim_phrase.cpp.gcc43 scim-pinyin-0.5.91/src/scim_phrase.cpp
+--- scim-pinyin-0.5.91/src/scim_phrase.cpp.gcc43	2008-02-25 16:27:05.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_phrase.cpp	2008-02-25 16:26:41.000000000 +0800
+@@ -28,6 +28,7 @@
+ #define SCIM_PHRASE_MAX_RELATION 1000
+ 
+ #include <scim.h>
++#include <cstring>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+ 
+diff -up scim-pinyin-0.5.91/src/scim_special_table.cpp.gcc43 scim-pinyin-0.5.91/src/scim_special_table.cpp
+--- scim-pinyin-0.5.91/src/scim_special_table.cpp.gcc43	2008-02-25 16:27:55.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_special_table.cpp	2008-02-25 16:28:08.000000000 +0800
+@@ -22,6 +22,7 @@
+ 
+ #include <time.h>
+ #include <scim.h>
++#include <cstring>
+ #include "scim_pinyin_private.h"
+ #include "scim_special_table.h"
+ 
+diff -up scim-pinyin-0.5.91/src/scim_pinyin.cpp.gcc43 scim-pinyin-0.5.91/src/scim_pinyin.cpp
+--- scim-pinyin-0.5.91/src/scim_pinyin.cpp.gcc43	2008-02-25 16:26:10.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_pinyin.cpp	2008-02-25 16:26:26.000000000 +0800
+@@ -29,6 +29,7 @@
+ #define Uses_SCIM_LOOKUP_TABLE
+ 
+ #include <scim.h>
++#include <cstring>
+ #include "scim_pinyin.h"
+ 
+ // Internal functions
+diff -up scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp.gcc43 scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp
+--- scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp.gcc43	2008-02-25 16:27:15.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp	2008-02-25 16:27:28.000000000 +0800
+@@ -27,6 +27,7 @@
+ #define Uses_SCIM_LOOKUP_TABLE
+ 
+ #include <scim.h>
++#include <cstring>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+ #include "scim_pinyin.h"




More information about the arch-commits mailing list