blob: fd7d3494c1926098a5587c1cd1f5c5ba343dfa76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)"
}
|