From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- app-i18n/libguess/libguess-0.2.0-r1.ebuild | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app-i18n/libguess/libguess-0.2.0-r1.ebuild (limited to 'app-i18n/libguess/libguess-0.2.0-r1.ebuild') 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)" +} -- cgit v1.2.3