diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-07-17 16:14:15 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-07-17 16:14:15 -0300 |
commit | 70877cfb7e290449b9f9c660e25345f462576c4c (patch) | |
tree | 0f63651432b8448262549265a5420fff1ab665e8 /extra/stardict | |
parent | 509bf50c73444930b6f57c42678ec22e7de82c88 (diff) | |
parent | 412d061bfbf23d1e908eed3f8405b1af46fb1ba8 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/electricsheep/PKGBUILD
community-testing/gnash/PKGBUILD
community-testing/performous/PKGBUILD
community/drbd/PKGBUILD
community/oss/PKGBUILD
community/pinot/PKGBUILD
core/glibc/PKGBUILD
core/kmod/PKGBUILD
core/pkg-config/PKGBUILD
core/systemd/PKGBUILD
extra/bitlbee/PKGBUILD
extra/mesa/PKGBUILD
extra/nettle/PKGBUILD
extra/xfce4-netload-plugin/PKGBUILD
kde-unstable/kdepim/PKGBUILD
multilib/lib32-glibc/PKGBUILD
multilib/lib32-mesa/PKGBUILD
multilib/lib32-mpg123/PKGBUILD
multilib/lib32-nettle/PKGBUILD
multilib/lib32-nouveau-dri/PKGBUILD
multilib/lib32-pcre/PKGBUILD
multilib/lib32-readline/PKGBUILD
multilib/zsnes/PKGBUILD
multilib/zsnes/zsnes.patch
testing/cryptsetup/PKGBUILD
testing/ekiga/PKGBUILD
testing/iputils/PKGBUILD
testing/poppler/PKGBUILD
testing/util-linux/PKGBUILD
testing/util-linux/util-linux.install
Diffstat (limited to 'extra/stardict')
-rw-r--r-- | extra/stardict/PKGBUILD | 26 | ||||
-rw-r--r-- | extra/stardict/crash-empty-dict.patch | 12 | ||||
-rw-r--r-- | extra/stardict/glib2.patch | 36 | ||||
-rw-r--r-- | extra/stardict/zlib.patch | 35 |
4 files changed, 99 insertions, 10 deletions
diff --git a/extra/stardict/PKGBUILD b/extra/stardict/PKGBUILD index fe150edb8..e17f9eb91 100644 --- a/extra/stardict/PKGBUILD +++ b/extra/stardict/PKGBUILD @@ -1,31 +1,37 @@ -# $Id: PKGBUILD 131980 2011-07-18 15:27:26Z bisson $ -# Maintainer: Aaron Griffin <aaron@archlinux.org> +# $Id: PKGBUILD 163464 2012-07-12 12:42:33Z bisson $ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Aaron Griffin <aaron@archlinux.org> # Contributor: Neil Lin <neil@vip.url.com.tw> pkgname=stardict pkgver=3.0.3 -pkgrel=1 +pkgrel=2 pkgdesc='International dictionary software' arch=('i686' 'x86_64' 'mips64el') url='http://www.stardict.org/' license=('GPL') depends=('enchant' 'gtk2' 'libsigc++' 'libsm') -makedepends=('intltool' 'popt' 'gnome-doc-utils' 'libmysqlclient') +makedepends=('intltool' 'popt' 'gnome-doc-utils' 'gnome-common' 'libmysqlclient') options=('!libtool' '!emptydirs') source=("http://stardict-3.googlecode.com/files/stardict-${pkgver}.tar.bz2" - 'NetDictRequests.patch' - 'gcc46.patch') + 'crash-empty-dict.patch' + 'gcc46.patch' + 'glib2.patch' + 'zlib.patch') sha1sums=('5043c0918963cd4d40e6d6289353f295766ec74f' '97af8fdb73c8f04674234b629c6867254e9bd043' - '6605a9cdfc4abc2a0ab4462d1228233d34806f0a') + '6605a9cdfc4abc2a0ab4462d1228233d34806f0a' + '467880bca5e89aa25cb4a57a9e1caba9a8841822' + '024ac5eb75a11c96569e31021a4bd65463b3cf5b') build() { cd "${srcdir}/${pkgname}-${pkgver}" - # ugly hack to avoid crashing with empty dictionaries - patch -p1 -i ../NetDictRequests.patch + patch -p1 -i ../crash-empty-dict.patch patch -p1 -i ../gcc46.patch - automake + patch -p1 -i ../glib2.patch + patch -p1 -i ../zlib.patch + ./autogen.sh # gnome-autogen.sh requires gnome-common ./configure \ PKG_CONFIG=/usr/bin/pkg-config \ diff --git a/extra/stardict/crash-empty-dict.patch b/extra/stardict/crash-empty-dict.patch new file mode 100644 index 000000000..4d6fe145a --- /dev/null +++ b/extra/stardict/crash-empty-dict.patch @@ -0,0 +1,12 @@ +diff -aur old/dict/src/lib/compositelookup.cpp new/dict/src/lib/compositelookup.cpp +--- old/dict/src/lib/compositelookup.cpp 2011-07-02 23:58:40.000000000 -0700 ++++ new/dict/src/lib/compositelookup.cpp 2011-07-18 07:40:01.795710505 -0700 +@@ -50,7 +50,7 @@ + void CompositeLookup::send_net_dict_request(const std::string& dict_id, const std::string& key) + { + NetDictRequest request(dict_id, key); +- g_assert(NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request)); ++ std::find(NetDictRequests.begin(), NetDictRequests.end(), request); + NetDictRequests.push_back(request); + } + diff --git a/extra/stardict/glib2.patch b/extra/stardict/glib2.patch new file mode 100644 index 000000000..6296dab0d --- /dev/null +++ b/extra/stardict/glib2.patch @@ -0,0 +1,36 @@ +diff -Naur old/dict/configure.ac new/dict/configure.ac +--- old/dict/configure.ac 2011-07-03 16:58:40.000000000 +1000 ++++ new/dict/configure.ac 2012-07-12 22:31:52.875176842 +1000 +@@ -266,6 +266,9 @@ + fi + AC_SUBST(WIKI_PARSEDATA_PLUGIN_DIR) + ++GMODULE2_LIBS=`pkg-config --libs gmodule-2.0` ++AC_SUBST([GMODULE2_LIBS]) ++ + dnl ================================================================ + dnl main program checks. + dnl ================================================================ +diff -Naur old/dict/src/Makefile.am new/dict/src/Makefile.am +--- old/dict/src/Makefile.am 2011-07-03 16:58:40.000000000 +1000 ++++ new/dict/src/Makefile.am 2012-07-12 22:29:53.714870692 +1000 +@@ -33,7 +33,7 @@ + stardict_DEPENDENCIES = lib/libstardict.la $(LOCAL_SIGCPP_LIBFILE) + stardict_LDFLAGS = + ## place libstardict.la before any system library, otherwise build with --as-needed linker option may fail +-stardict_LDADD = lib/libstardict.la $(STARDICT_LIBS) $(LOCAL_SIGCPP_LIBFILE) ++stardict_LDADD = lib/libstardict.la $(STARDICT_LIBS) $(LOCAL_SIGCPP_LIBFILE) $(GMODULE2_LIBS) + + if !GNOME_SUPPORT + if MAEMO_SUPPORT +diff -Naur old/dict/src/tomboykeybinder.h new/dict/src/tomboykeybinder.h +--- old/dict/src/tomboykeybinder.h 2011-07-03 16:58:40.000000000 +1000 ++++ new/dict/src/tomboykeybinder.h 2012-07-12 22:28:04.337920391 +1000 +@@ -21,7 +21,6 @@ + #ifndef __TOMBOY_KEY_BINDER_H__ + #define __TOMBOY_KEY_BINDER_H__ + +-#include <glib/gtypes.h> + + G_BEGIN_DECLS + diff --git a/extra/stardict/zlib.patch b/extra/stardict/zlib.patch new file mode 100644 index 000000000..eb5a9a12a --- /dev/null +++ b/extra/stardict/zlib.patch @@ -0,0 +1,35 @@ +diff -Naur old/lib/src/libcommon.cpp new/lib/src/libcommon.cpp +--- old/lib/src/libcommon.cpp 2012-07-12 11:33:30.343333334 +0000 ++++ new/lib/src/libcommon.cpp 2012-07-12 11:34:05.006568754 +0000 +@@ -614,7 +614,7 @@ + return EXIT_FAILURE; + } + while(true) { +- len = gzread(get_impl(in), buf, buffer_size); ++ len = gzread((gzFile)get_impl(in), buf, buffer_size); + if(len < 0) { + g_critical(read_file_err, arch_file_name, ""); + return EXIT_FAILURE; +@@ -871,3 +871,8 @@ + return res; + } + } ++ ++int gzclose_compat(void * file) ++{ ++ return gzclose ((gzFile)file); ++} +diff -Naur old/lib/src/libcommon.h new/lib/src/libcommon.h +--- old/lib/src/libcommon.h 2012-07-12 11:33:30.343333334 +0000 ++++ new/lib/src/libcommon.h 2012-07-12 11:34:05.006568754 +0000 +@@ -187,8 +187,9 @@ + typedef ResourceWrapper<FILE, FILE*, int, fclose> File; + } + ++extern int gzclose_compat(void * file); + namespace zip { +-typedef ResourceWrapper<void, void*, int, gzclose> gzFile; ++typedef ResourceWrapper<void, void*, int, gzclose_compat> gzFile; + } + + /* Create a new temporary file. Return file name in file name encoding. |