/[gentoo-x86]/app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild
Gentoo

Contents of /app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jan 30 13:33:55 2013 UTC (7 years ago) by yngwin
Branch: MAIN
Initial commit. Ebuild split off from app-i18n/sunpinyin, with help from Wang Jiajun (gentoo-zh overlay).

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)

1 yngwin 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     EAPI=5
6    
7     DICT_VERSION="20120830"
8     LM_VERSION="${PV}"
9    
10     DESCRIPTION="Data sets for Sunpinyin"
11     HOMEPAGE="https://open-gram.googlecode.com/"
12     SRC_URI="http://open-gram.googlecode.com/files/dict.utf8-${DICT_VERSION}.tar.bz2
13     http://open-gram.googlecode.com/files/lm_sc.t3g.arpa-${LM_VERSION}.tar.bz2"
14    
15     LICENSE="Apache-2.0"
16     SLOT="0"
17     KEYWORDS="~amd64 ~x86"
18     IUSE=""
19    
20     DEPEND=">=app-i18n/sunpinyin-2.0.4_pre20130108"
21     RDEPEND="${DEPEND}"
22    
23     src_unpack() {
24     default
25     mkdir "${S}" || die
26     mv "${WORKDIR}"/dict.utf8 "${S}" || die
27     mv "${WORKDIR}"/lm_sc.t3g.arpa "${S}" || die
28     cp "${FILESDIR}"/SLM-inst.mk "${S}"/Makefile || die
29     }
30    
31     src_compile() {
32     # we don't have any big-endian architectures keyworded yet, so hardcode
33     emake ENDIANNESS=le
34     }
35    
36     src_install() {
37     emake ENDIANNESS=le DESTDIR="${D}" install
38     }

  ViewVC Help
Powered by ViewVC 1.1.20