diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-05-25 13:44:54 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-05-25 13:44:54 +0000 |
commit | 0ecc64c809d3d6c6e02d447f918a67f28e0adee7 (patch) | |
tree | 73607146211164d35593e74afc4d7de97ba44bd6 /app-i18n/xsim | |
parent | rewrite ebuild to fix db3, kde, config and paths issue (diff) | |
download | historical-0ecc64c809d3d6c6e02d447f918a67f28e0adee7.tar.gz historical-0ecc64c809d3d6c6e02d447f918a67f28e0adee7.tar.bz2 historical-0ecc64c809d3d6c6e02d447f918a67f28e0adee7.zip |
rewrite ebuild to fix db3, kde, config and paths issue
Diffstat (limited to 'app-i18n/xsim')
-rw-r--r-- | app-i18n/xsim/Manifest | 5 | ||||
-rw-r--r-- | app-i18n/xsim/files/digest-xsim-0.3.9.4-r1 | 1 | ||||
-rw-r--r-- | app-i18n/xsim/files/xsim-0.3.9.4-db3.patch | 37 | ||||
-rw-r--r-- | app-i18n/xsim/xsim-0.3.9.4-r1.ebuild | 65 |
4 files changed, 106 insertions, 2 deletions
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 +} |