summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bouyer <stubear@gentoo.org>2002-07-02 13:37:05 +0000
committerStuart Bouyer <stubear@gentoo.org>2002-07-02 13:37:05 +0000
commit2f4bef14c0c88c317dbd4263965abf1def855c58 (patch)
tree6bb9062ca90b87888d947a1f04b6cd7db50812a9 /app-i18n/kinput2
parentnessus 1.2.2 (diff)
downloadhistorical-2f4bef14c0c88c317dbd4263965abf1def855c58.tar.gz
historical-2f4bef14c0c88c317dbd4263965abf1def855c58.tar.bz2
historical-2f4bef14c0c88c317dbd4263965abf1def855c58.zip
1 Jul 2002; Stuart Bouyer <stubear@gentoo.org>
Now using new ternary depend operator
Diffstat (limited to 'app-i18n/kinput2')
-rw-r--r--app-i18n/kinput2/ChangeLog6
-rw-r--r--app-i18n/kinput2/files/digest-kinput2-3.1_beta4-r21
-rw-r--r--app-i18n/kinput2/kinput2-3.1_beta4-r2.ebuild60
3 files changed, 67 insertions, 0 deletions
diff --git a/app-i18n/kinput2/ChangeLog b/app-i18n/kinput2/ChangeLog
index 6fa937c9215c..bca9243f416f 100644
--- a/app-i18n/kinput2/ChangeLog
+++ b/app-i18n/kinput2/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
# /space/gentoo/cvsroot/gentoo-x86/app-i18n/kinput2/ChangeLog,v 1.1 2002/06/25 16:01:22 stubear Exp
+*kinput2-3.1_beta4-r2 (2 July 2002)
+
+ 1 July 2002; Stuart Bouyer <stubear@gentoo.org> kinput2-3.1_beta4-r1.ebuild :
+ Converted over to the new DEPEND="foo? bar : oni" operator. this makes for a
+ much nicer looking ebuild. Now, If I can just clean up the src_unpack stage
+
*kinput2-3.1_beta4-r1 (1 July 2002)
1 July 2002; Stuart Bouyer <stubear@gentoo.org> kinput2-3.1_beta4-r1.ebuild :
diff --git a/app-i18n/kinput2/files/digest-kinput2-3.1_beta4-r2 b/app-i18n/kinput2/files/digest-kinput2-3.1_beta4-r2
new file mode 100644
index 000000000000..07441ea5c695
--- /dev/null
+++ b/app-i18n/kinput2/files/digest-kinput2-3.1_beta4-r2
@@ -0,0 +1 @@
+MD5 3cf13144a7079bb781bb63cfb57c4d88 kinput2-v3.1-beta4.tar.gz 512832
diff --git a/app-i18n/kinput2/kinput2-3.1_beta4-r2.ebuild b/app-i18n/kinput2/kinput2-3.1_beta4-r2.ebuild
new file mode 100644
index 000000000000..807c2dc3168b
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1_beta4-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.6 2002/05/07 03:58:19 drobbins Exp
+
+A="kinput2-v3.1-beta4.tar.gz"
+
+S="${WORKDIR}/kinput2-v3.1-beta4"
+
+DESCRIPTION="A Japanese input server which supports the XIM protocol"
+
+SRC_URI="ftp://ftp.sra.co.jp/pub/x11/kinput2/${A}"
+
+LICENSE="as-is"
+
+DEPEND="virtual/glibc
+ canna? >=app-i18n/canna-3.5_beta2-r1
+ freewnn? >=app-i18n/freewnn-1.1.1_alpha19 : >=app-i18n/canna-3.5_beta2-r1"
+
+RDEPEND=${DEPEND}
+
+SLOT=0
+
+src_unpack() {
+
+ # unpack the archive
+ unpack ${A}
+
+ # patch Kinput2.conf to ensure that files are installed into image dir
+ cd ${S}
+ patch -p0 < ${FILESDIR}/${P}/gentoo.diff || die
+
+ # hack to set define UseCanna, define UseWnn or both
+ cp Kinput2.conf Kinput2.tmp
+ use canna && sed -e "s:\/\* \#define UseCanna \*\/:\#define UseCanna:" Kinput2.tmp > Kinput2.conf
+ cp Kinput2.conf Kinput2.tmp
+ use freewnn && sed -e "s:\/\* \#define UseWnn \*\/:\#define UseWnn:" Kinput2.tmp > Kinput2.conf
+ # default to UseCanna if we don't have freewnn in useflags
+ cp Kinput2.conf Kinput2.tmp
+ use freewnn || sed -e "s:\/\* \#define UseCanna \*\/:\#define UseCanna:" Kinput2.tmp > Kinput2.conf || die
+
+}
+
+src_compile() {
+
+ # create a Makefile from Kinput2.conf
+ xmkmf || die "xmkmf failed"
+ make Makefiles || die "Makefile creation failed"
+
+ # build Kinput2
+ make depend ; make
+}
+
+src_install () {
+
+ # install libs, executables, dictionaries
+ make DESTDIR=${D} install || die "installation failed"
+
+ # install docs
+ dodoc README NEWS
+}