Lines 2-9
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild,v 1.2 2011/04/17 09:03:04 qiaomuf Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild,v 1.2 2011/04/17 09:03:04 qiaomuf Exp $ |
4 |
|
4 |
|
5 |
EAPI="1" |
5 |
EAPI="3" |
6 |
inherit eutils scons-utils |
6 |
|
|
|
7 |
inherit eutils multilib scons-utils toolchain-funcs |
7 |
|
8 |
|
8 |
DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME" |
9 |
DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME" |
9 |
HOMEPAGE="http://sunpinyin.googlecode.com" |
10 |
HOMEPAGE="http://sunpinyin.googlecode.com" |
Lines 24-38
src_unpack() {
Link Here
|
24 |
unpack "${P}.tar.gz" |
25 |
unpack "${P}.tar.gz" |
25 |
ln -s "${DISTDIR}/dict.utf8.tar.bz2" "${S}/raw/" || die "dict file not found" |
26 |
ln -s "${DISTDIR}/dict.utf8.tar.bz2" "${S}/raw/" || die "dict file not found" |
26 |
ln -s "${DISTDIR}/lm_sc.t3g.arpa.tar.bz2" "${S}/raw/" || die "dict file not found" |
27 |
ln -s "${DISTDIR}/lm_sc.t3g.arpa.tar.bz2" "${S}/raw/" || die "dict file not found" |
27 |
cd "${S}" && epatch "${FILESDIR}/${P}-force-switch.patch" |
28 |
} |
|
|
29 |
|
30 |
src_prepare() { |
31 |
epatch "${FILESDIR}/${P}-force-switch.patch" |
32 |
epatch "${FILESDIR}/${P}-gcc-4.7.patch" |
33 |
} |
34 |
|
35 |
src_configure() { |
36 |
tc-export CXX |
37 |
myesconsargs=( |
38 |
--prefix="${EPREFIX}"/usr |
39 |
--libdir="${EPREFIX}"/usr/$(get_libdir) |
40 |
--libdatadir="${EPREFIX}"/usr/lib |
41 |
) |
28 |
} |
42 |
} |
29 |
|
43 |
|
30 |
src_compile() { |
44 |
src_compile() { |
31 |
escons --prefix="/usr" || die |
45 |
escons || die |
32 |
} |
46 |
} |
33 |
|
47 |
|
34 |
src_install() { |
48 |
src_install() { |
35 |
escons --prefix="/usr" --install-sandbox="${D}" install || die |
49 |
escons --install-sandbox="${ED}" install || die |
36 |
} |
50 |
} |
37 |
|
51 |
|
38 |
pkg_postinst() { |
52 |
pkg_postinst() { |