[arch-commits] Commit in stardict/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Jan 15 17:22:09 UTC 2018
Date: Monday, January 15, 2018 @ 17:22:07
Author: felixonmars
Revision: 282776
archrelease: copy trunk to community-staging-x86_64
Added:
stardict/repos/community-staging-x86_64/
stardict/repos/community-staging-x86_64/PKGBUILD
(from rev 282775, stardict/trunk/PKGBUILD)
stardict/repos/community-staging-x86_64/gcc46.patch
(from rev 282775, stardict/trunk/gcc46.patch)
stardict/repos/community-staging-x86_64/glib2.patch
(from rev 282775, stardict/trunk/glib2.patch)
-------------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc46.patch | 11 +++++++++++
glib2.patch | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 103 insertions(+)
Copied: stardict/repos/community-staging-x86_64/PKGBUILD (from rev 282775, stardict/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-15 17:22:07 UTC (rev 282776)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+# Contributor: Neil Lin <neil at vip.url.com.tw>
+# Contributor: Cravix < dr dot neemous at gmail dot com >
+
+pkgname=stardict
+pkgver=3.0.6
+pkgrel=5
+pkgdesc='International dictionary software'
+arch=('x86_64')
+url='http://www.stardict.org/'
+license=('GPL')
+depends=('gtk2' 'libsigc++')
+makedepends=('enchant' 'espeak' 'libmariadbclient' 'gconf' 'gnome-common' 'gnome-doc-utils')
+optdepends=('enchant: spell checker plugin'
+ 'espeak: text to speech plugin')
+options=('!emptydirs')
+source=("http://downloads.sourceforge.net/project/stardict-4/$pkgver/$pkgname-$pkgver.tar.bz2"
+ 'gcc46.patch'
+ 'glib2.patch')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../gcc46.patch
+ patch -p1 -i ../glib2.patch
+
+ sed -i 's/, enchant/, enchant-2/' dict/configure.ac
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ CXXFLAGS+=" -std=gnu++11"
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --disable-gnome-support \
+ --disable-gucharmap \
+ --disable-festival \
+ --disable-updateinfo
+ sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' -i {dict,lib,tools}/libtool
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
+
+md5sums=('93371b35482e6380e8bd4ba5d256b864'
+ '52ff47441c503de07add4b7688510bc5'
+ 'b2f216897c9053c7e4666c3d78705cf1')
Copied: stardict/repos/community-staging-x86_64/gcc46.patch (from rev 282775, stardict/trunk/gcc46.patch)
===================================================================
--- community-staging-x86_64/gcc46.patch (rev 0)
+++ community-staging-x86_64/gcc46.patch 2018-01-15 17:22:07 UTC (rev 282776)
@@ -0,0 +1,11 @@
+diff -aur old/dict/stardict-plugins/stardict-wordnet-plugin/utils.h new/dict/stardict-plugins/stardict-wordnet-plugin/utils.h
+--- old/dict/stardict-plugins/stardict-wordnet-plugin/utils.h 2011-07-18 06:58:58.519404744 -0700
++++ new/dict/stardict-plugins/stardict-wordnet-plugin/utils.h 2011-07-18 07:01:10.739734313 -0700
+@@ -26,6 +26,7 @@
+ #ifndef __TYPES_H__
+ #define __TYPES_H__
+
++#include <cstddef>
+ #include <math.h>
+
+ typedef float single;
Copied: stardict/repos/community-staging-x86_64/glib2.patch (from rev 282775, stardict/trunk/glib2.patch)
===================================================================
--- community-staging-x86_64/glib2.patch (rev 0)
+++ community-staging-x86_64/glib2.patch 2018-01-15 17:22:07 UTC (rev 282776)
@@ -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.h>
+
+ G_BEGIN_DECLS
+
More information about the arch-commits
mailing list