blob: c2a5e9ee83416d1def03085c458dd83543293401 (
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
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/zemberek/zemberek-2.1.ebuild,v 1.3 2008/07/26 07:45:25 corsair Exp $
EAPI=1
JAVA_PKG_IUSE="source doc test"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Zemberek NLP library"
HOMEPAGE="http://code.google.com/p/zemberek/"
SRC_URI="http://${PN}.googlecode.com/files/${P}-nolibs-src.zip"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
LANGS="tr tk"
S=${WORKDIR}/${P}-nolibs-src
IUSE="linguas_tk +linguas_tr"
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
test?
(
dev-java/junit:4
dev-java/ant-junit4
)
app-arch/unzip"
src_unpack() {
unpack ${A}
cd "${S}" || die
mkdir -p lib/{dagitim,gelistirme} || die
epatch "${FILESDIR}"/${P}-287-kitabevi.patch
use test && java-pkg_jarfrom --build-only --into lib/gelistirme junit-4 junit.jar
}
src_compile() {
strip-linguas ${LANGS}
local anttargs
for jar in cekirdek demo ${LINGUAS}; do
anttargs="${anttargs} jar-${jar}"
done
eant ${anttargs} $(use_doc javadocs)
}
src_install() {
strip-linguas ${LANGS}
local sourcetrees=""
for jar in cekirdek demo ${LINGUAS}; do
java-pkg_newjar dagitim/jar/zemberek-${jar}-${PV}.jar zemberek2-${jar}.jar
sourcetrees="${sourcetrees} src/${jar}/net"
done
use source && java-pkg_dosrc ${sourcetrees}
use doc && java-pkg_dojavadoc build/java-docs/api
java-pkg_dolauncher zemberek-demo --main net.zemberek.demo.DemoMain
dodoc dokuman/lisanslar/* || die
dodoc surumler.txt || die
}
src_test() {
ANT_TASKS="ant-junit4" eant unit-test
}
|