diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2007-08-04 18:18:18 +0000 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2007-08-04 18:18:18 +0000 |
commit | 450107f658933629cc0ddaceae8993243c326823 (patch) | |
tree | 346a972fceeaef0d3463c39b09e265ce40844b3d /dev-java/zemberek/zemberek-2.0.ebuild | |
parent | Stable on amd64 wrt bug #184203 (diff) | |
download | gentoo-2-450107f658933629cc0ddaceae8993243c326823.tar.gz gentoo-2-450107f658933629cc0ddaceae8993243c326823.tar.bz2 gentoo-2-450107f658933629cc0ddaceae8993243c326823.zip |
Initial ebuild, submitted by Serkan Kaba <serkan_kaba@yahoo.com>, bug #170372.
(Portage version: 2.1.3.3)
Diffstat (limited to 'dev-java/zemberek/zemberek-2.0.ebuild')
-rw-r--r-- | dev-java/zemberek/zemberek-2.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-java/zemberek/zemberek-2.0.ebuild b/dev-java/zemberek/zemberek-2.0.ebuild new file mode 100644 index 000000000000..5fe480a46a3f --- /dev/null +++ b/dev-java/zemberek/zemberek-2.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/zemberek/zemberek-2.0.ebuild,v 1.1 2007/08/04 18:18:18 fordfrog Exp $ + +JAVA_PKG_IUSE="source" + +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}-src.zip" + + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LANGS="tr tk" +IUSE="doc" + +S=${WORKDIR}/${P}-src + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X/-/_}" +done + +RDEPEND=">=virtual/jre-1.5" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" + +src_unpack() { + unpack ${A} + cd ${S} + mkdir lib/dagitim + rm lib/gelistirme/*.jar +} + +src_compile() { + strip-linguas ${LANGS} + local anttargs + for jar in cekirdek demo ${LINGUAS}; do + anttargs="${anttargs} jar-${jar/tk/tm}" + 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/tk/tm}-${PV}.jar zemberek2-${jar/tk/tm}.jar + sourcetrees="${sourcetrees} src/${jar/tk/tm}/*" + 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 +} |