summaryrefslogtreecommitdiffstats
path: root/app-i18n/libguess/libguess-0.2.0-r1.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-i18n/libguess/libguess-0.2.0-r1.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
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)"
+}