summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-05-25 13:44:54 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-05-25 13:44:54 +0000
commitc9155a87c59a77e7edcb528693220eae12550b33 (patch)
treeb19a7cb63c60a46bd7cdc9744f12af8912383a3b /app-i18n/xsim
parentrewrite ebuild to fix db3, kde, config and paths issue (diff)
downloadgentoo-2-c9155a87c59a77e7edcb528693220eae12550b33.tar.gz
gentoo-2-c9155a87c59a77e7edcb528693220eae12550b33.tar.bz2
gentoo-2-c9155a87c59a77e7edcb528693220eae12550b33.zip
rewrite ebuild to fix db3, kde, config and paths issue
Diffstat (limited to 'app-i18n/xsim')
-rw-r--r--app-i18n/xsim/ChangeLog8
-rw-r--r--app-i18n/xsim/Manifest5
-rw-r--r--app-i18n/xsim/files/digest-xsim-0.3.9.4-r11
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-db3.patch37
-rw-r--r--app-i18n/xsim/xsim-0.3.9.4-r1.ebuild65
5 files changed, 113 insertions, 3 deletions
diff --git a/app-i18n/xsim/ChangeLog b/app-i18n/xsim/ChangeLog
index 23812eadc89e..b842b75492c3 100644
--- a/app-i18n/xsim/ChangeLog
+++ b/app-i18n/xsim/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-i18n/xsim
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/xsim/ChangeLog,v 1.2 2003/02/12 04:56:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/xsim/ChangeLog,v 1.3 2003/05/25 13:44:45 liquidx Exp $
+
+*xsim-0.3.9.4-r1 (25 May 2003)
+
+ 25 May 2003; Alastair Tse <liquidx@gentoo.org> xsim-0.3.9.4-r1.ebuild,
+ files/xsim-0.3.9.4-db3.patch:
+ rewrite of ebuild to handle db3 and paths properly
*xsim-0.3.9.4 (12 Dec 2002)
diff --git a/app-i18n/xsim/Manifest b/app-i18n/xsim/Manifest
index 8690a277229a..db6f54c41739 100644
--- a/app-i18n/xsim/Manifest
+++ b/app-i18n/xsim/Manifest
@@ -1,5 +1,6 @@
-MD5 94fee8826fa133e5469f7bb059c3f2a5 ChangeLog 431
+MD5 bfec85e9e292f062bd09b7931941aaa0 ChangeLog 623
MD5 3de8fb9e6e3f43b304f4020b36ad26d6 xsim-0.3.9.4.ebuild 1268
-MD5 ddde2ec354c27d5e78fbb8739059cfc6 xsim-0.3.9.4-r1.ebuild 1332
+MD5 c00b0ca1f0444dcd93f08e9d95657326 xsim-0.3.9.4-r1.ebuild 1786
MD5 b09020ab653fd5cd1b693e3def773f0b files/digest-xsim-0.3.9.4 65
MD5 b09020ab653fd5cd1b693e3def773f0b files/digest-xsim-0.3.9.4-r1 65
+MD5 922ec332bf51c73ead1e3082d62d23c8 files/xsim-0.3.9.4-db3.patch 934
diff --git a/app-i18n/xsim/files/digest-xsim-0.3.9.4-r1 b/app-i18n/xsim/files/digest-xsim-0.3.9.4-r1
new file mode 100644
index 000000000000..828534bc83f4
--- /dev/null
+++ b/app-i18n/xsim/files/digest-xsim-0.3.9.4-r1
@@ -0,0 +1 @@
+MD5 645d68ee8c565c04782068c4546504d9 xsim-0.3.9.4.tar.gz 1025640
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-db3.patch b/app-i18n/xsim/files/xsim-0.3.9.4-db3.patch
new file mode 100644
index 000000000000..9f42962c4f78
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-db3.patch
@@ -0,0 +1,37 @@
+--- xsim-0.3.9.4/configure 2002-10-24 19:53:57.000000000 +0100
++++ xsim-0.3.9.4a/configure 2003-05-24 22:32:41.000000000 +0100
+@@ -5223,21 +5223,20 @@
+ fi
+
+ for bdb_dir in $bdb_library_dirs; do
+- if test -r "$bdb_dir/libdb_cxx.so"; then
+- bdblibs="$bdb_dir"
+- bdblib="db_cxx"
+- break
+- fi
+- if test -r "$bdb_dir/libdb4_cxx.so"; then
+- bdblibs="$bdb_dir"
+- bdblib="db4_cxx"
+- break
+- fi
+- if test -r "$bdb_dir/libdb3_cxx.so"; then
+- bdblibs="$bdb_dir"
+- bdblib="db3_cxx"
+- break
++ if test "$bdb_version" = ">=3.2"; then
++ if test -r "$bdb_dir/libdb_cxx-3.so"; then
++ bdblibs="$bdb_dir"
++ bdblib="db_cxx-3"
++ break
++ fi
+ fi
++ if test "$bdb_version" = ">=4.1"; then
++ if test -r "$bdb_dir/libdb_cxx-4.1.so"; then
++ bdblibs="$bdb_dir"
++ bdblib="db_cxx-4.1"
++ break
++ fi
++ fi
+ done
+ fi
+
diff --git a/app-i18n/xsim/xsim-0.3.9.4-r1.ebuild b/app-i18n/xsim/xsim-0.3.9.4-r1.ebuild
new file mode 100644
index 000000000000..dbacc5713e2b
--- /dev/null
+++ b/app-i18n/xsim/xsim-0.3.9.4-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/xsim/xsim-0.3.9.4-r1.ebuild,v 1.1 2003/05/25 13:44:45 liquidx Exp $
+
+[ -n "`use kde`" ] && inherit kde
+
+DESCRIPTION="A simple and fast GB and BIG5 Chinese XIM server."
+HOMEPAGE="http://developer.berlios.de/projects/xsim/"
+SRC_URI="http://download.berlios.de/xsim/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="kde"
+
+DEPEND="virtual/glibc
+ =sys-libs/db-3*
+ kde? ( >=kde-base/kdelibs-3 )"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch ${FILESDIR}/${P}-db3.patch
+
+ cd ${S}
+ einfo "Patching ./configure to respect CFLAGS .."
+ sed -i -e "s/\(CFLAGS.*\)-O2/\1${CFLAGS}/" configure
+
+}
+
+src_compile() {
+
+ local myconf
+
+ myconf="${myconf} --with-bdb-includes=/usr/include/db3 --with-bdb-libs=/usr/lib"
+
+ use kde \
+ && myconf="${myconf} --with-kde3=${KDEDIR} --with-qt3=${QTDIR} --enable-status-kde3"
+
+ econf ${myconf} || die "configure failed"
+ emake xsim_etcp=/etc || die "make failed"
+}
+
+src_install () {
+ einstall xsim_datp=${D}/usr/lib/xsim/dat \
+ xsim_libp=${D}/usr/lib/xsim/plugins \
+ xsim_binp=${D}/usr/bin \
+ xsim_etcp=${D}/etc \
+ install-data install || die "install failed"
+
+ sed -i -e "s#DICT_LOCAL\(.*\)/usr/dat#DICT_LOCAL\1/usr/lib/xsim/dat#" \
+ -e "s#PLUGIN_LOCAL\(.*\)/usr/plugins#PLUGIN_LOCAL\1/usr/lib/xsim/plugins#" \
+ ${D}/etc/xsimrc
+
+ dodoc ChangeLog COPYING INSTALL README* TODO
+}
+
+pkg_postinst() {
+ einfo "XSIM needs write access to /usr/lib/xsim/dat/chardb, so if you"
+ einfo "not running it as root, you need to do the following:"
+ echo
+ einfo " cp -r /usr/lib/xsim/dat \${HOME}/.xsim"
+ einfo " sed -i \"s#DICT_LOCAL.*#DICT_LOCAL \${HOME}/.xsim#\" > \${HOME}/.xsim/xsimrc"
+ echo
+}