summaryrefslogtreecommitdiffstats
path: root/app-i18n/libguess/libguess-0.2.0-r1.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/libguess/libguess-0.2.0-r1.ebuild')
-rw-r--r--app-i18n/libguess/libguess-0.2.0-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/app-i18n/libguess/libguess-0.2.0-r1.ebuild b/app-i18n/libguess/libguess-0.2.0-r1.ebuild
new file mode 100644
index 0000000..fd7d349
--- /dev/null
+++ b/app-i18n/libguess/libguess-0.2.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+inherit eutils
+
+EXT_VER="d7"
+
+DESCRIPTION="LibGuess is Encoding Detection Library for Japanese, Chinese, Korean and Thai Languages"
+SRC_URI="http://www.honeyplanet.jp/${P}-${EXT_VER}.tar.gz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+
+S=${WORKDIR}/${P}-${EXT_VER}
+
+src_unpack() {
+ unpack ${P}-${EXT_VER}.tar.gz || die
+ epatch "${FILESDIR}"/libguess-ds-cn.patch || die
+}
+
+src_compile() {
+ sed -i'' -e "s/\-o libguess.so/\-o libguess.so \$(LDFLAGS)/" Makefile || die
+ make || die
+}
+
+src_install() {
+ into /usr
+ mkdir -p ${D}/usr/lib || die
+ mkdir -p ${D}/usr/include || die
+ make install PREFIX=${D}/usr || die
+
+ # Fix links
+ rm ${D}/usr/lib/libguess.{so,so.0,a}
+ ln -s libguess.so.${PV} ${D}/usr/lib/libguess.so.0
+ ln -s libguess.so.0 ${D}/usr/lib/libguess.so
+
+ # Fix multilib
+ [ $(get_libdir) == "lib" ] || mv "${D}/usr/lib" "${D}/usr/$(get_libdir)"
+}