blob: f21a25892a858f2170303f4862a956c60bd56638 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/zemberek-server/zemberek-server-0.7.1.ebuild,v 1.9 2012/07/13 14:10:14 sera Exp $
EAPI=2
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="A Turkish spell checker server based on Zemberek NLP library"
HOMEPAGE="http://code.google.com/p/zemberek/"
SRC_URI="http://zemberek.googlecode.com/files/${PN}-nolibs-${PV}.tar.gz"
LICENSE="MPL-1.1 GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
S="${WORKDIR}"
IUSE=""
CDEPEND="dev-java/zemberek[linguas_tr]
dev-java/dbus-java
dev-java/mina-core"
RDEPEND="${CDEPEND}
dev-java/slf4j-nop
>=virtual/jre-1.5"
DEPEND="${CDEPEND}
>=virtual/jdk-1.5"
EANT_BUILD_TARGET="dist"
src_unpack() {
unpack ${A}
mkdir lib || die
cd lib || die
java-pkg_jarfrom zemberek zemberek2-cekirdek.jar
java-pkg_jarfrom zemberek zemberek2-tr.jar
java-pkg_jarfrom dbus-java dbus.jar
java-pkg_jarfrom mina-core
}
src_install() {
java-pkg_newjar dist/${P}.jar ${PN}.jar
java-pkg_dolauncher zemberek-server \
--java_args \
"-Xverify:none -Xms12m -Xmx14m -DConfigFile=/etc/zemberek-server.ini" \
--pre "${FILESDIR}"/pre \
--main net.zemberekserver.server.ZemberekServer
java-pkg_register-dependency slf4j-nop
doinitd "${FILESDIR}"/zemberek-server
insinto /etc/dbus-1/system.d
doins dist/config/zemberek-server.conf
insinto /etc
newins config/conf.ini zemberek-server.ini
}
|