summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/zemberek
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/zemberek')
-rw-r--r--dev-java/zemberek/Manifest1
-rw-r--r--dev-java/zemberek/files/zemberek-2.1.1-classpathfix.patch12
-rw-r--r--dev-java/zemberek/metadata.xml11
-rw-r--r--dev-java/zemberek/zemberek-2.1.1.ebuild68
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-java/zemberek/Manifest b/dev-java/zemberek/Manifest
new file mode 100644
index 00000000000..b25983e5c1e
--- /dev/null
+++ b/dev-java/zemberek/Manifest
@@ -0,0 +1 @@
+DIST zemberek-2.1.1-nolibs-src.zip 1196289 SHA256 0a1a9a3bb2c76c9c40a96aea81e99abc0fab1baadc31fcc975bc5b235937cca3 SHA512 e97342271294504a0e9df7bbc60f68beed137311254f5cc6d7558befa106737b75b0dcb7a86033f506eda3783d98ba2788cf5da69497f18861dd8cd79bb27955 WHIRLPOOL 55a039caefcd0d4c36a2b977de424d62f8780aa4e37c24c55666b0088c6914756cc070792847a61d460b650617bf6df94b87671e9ef8fe300b38f9416d63a09f
diff --git a/dev-java/zemberek/files/zemberek-2.1.1-classpathfix.patch b/dev-java/zemberek/files/zemberek-2.1.1-classpathfix.patch
new file mode 100644
index 00000000000..fa6c572c1cb
--- /dev/null
+++ b/dev-java/zemberek/files/zemberek-2.1.1-classpathfix.patch
@@ -0,0 +1,12 @@
+diff -Nur zemberek-2.1.1-nolibs-src/build.xml zemberek-2.1.1-nolibs-src_patched/build.xml
+--- zemberek-2.1.1-nolibs-src/build.xml 2008-09-01 23:07:28.000000000 +0300
++++ zemberek-2.1.1-nolibs-src_patched/build.xml 2009-04-23 23:03:01.000000000 +0300
+@@ -42,7 +42,7 @@
+ <path id="classpath.build">
+ <fileset dir="lib/dagitim"/>
+ <fileset dir="lib/gelistirme"/>
+- <fileset dir="${build.cekirdek}"/>
++ <pathelement path="${build.cekirdek}"/>
+ </path>
+
+ <!-- dagitim kutuphaneleri (eger varsa) -->
diff --git a/dev-java/zemberek/metadata.xml b/dev-java/zemberek/metadata.xml
new file mode 100644
index 00000000000..755a350e8c7
--- /dev/null
+++ b/dev-java/zemberek/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">zemberek</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/zemberek/zemberek-2.1.1.ebuild b/dev-java/zemberek/zemberek-2.1.1.ebuild
new file mode 100644
index 00000000000..7bc46590936
--- /dev/null
+++ b/dev-java/zemberek/zemberek-2.1.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+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 ~x86-fbsd"
+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
+ dev-java/hamcrest-core
+ )
+ app-arch/unzip"
+
+java_prepare() {
+ use test && java-pkg_jarfrom --build-only --into lib/gelistirme junit-4 junit.jar
+ # Added hamcrest-core as a workaround
+ # Issue spotted by Markus Meier <maekke@gentoo.org>
+ # See http://bugs.gentoo.org/show_bug.cgi?id=253753#c3
+ use test && java-pkg_jarfrom --build-only --into lib/gelistirme hamcrest-core
+ epatch "${FILESDIR}"/${P}-classpathfix.patch
+}
+
+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
+}