summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-07-18 19:51:04 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-07-18 19:51:04 +0000
commitcaf8ffc13df376c057afc2e04ceb20b003339162 (patch)
tree89e702562da610917eeb75bfd16746794f74c95e
parentRemove unneeded runtime dependency on jakarta-oro-2.0 (diff)
downloadhistorical-caf8ffc13df376c057afc2e04ceb20b003339162.tar.gz
historical-caf8ffc13df376c057afc2e04ceb20b003339162.tar.bz2
historical-caf8ffc13df376c057afc2e04ceb20b003339162.zip
Initial ebuild. Fixes bug #156100.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64
-rw-r--r--app-text/zemberek-server/ChangeLog10
-rw-r--r--app-text/zemberek-server/Manifest16
-rw-r--r--app-text/zemberek-server/files/pre1
-rw-r--r--app-text/zemberek-server/files/zemberek-server16
-rw-r--r--app-text/zemberek-server/metadata.xml5
-rw-r--r--app-text/zemberek-server/zemberek-server-0.7.1.ebuild60
6 files changed, 108 insertions, 0 deletions
diff --git a/app-text/zemberek-server/ChangeLog b/app-text/zemberek-server/ChangeLog
new file mode 100644
index 000000000000..c5b0ef9c2417
--- /dev/null
+++ b/app-text/zemberek-server/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-text/zemberek-server
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/zemberek-server/ChangeLog,v 1.1 2008/07/18 19:51:04 serkan Exp $
+
+*zemberek-server-0.7.1 (18 Jul 2008)
+
+ 18 Jul 2008; Serkan Kaba <serkan@gentoo.org> +files/pre,
+ +files/zemberek-server, +metadata.xml, +zemberek-server-0.7.1.ebuild:
+ Initial ebuild. Fixes bug #156100.
+
diff --git a/app-text/zemberek-server/Manifest b/app-text/zemberek-server/Manifest
new file mode 100644
index 000000000000..e270b2493ea8
--- /dev/null
+++ b/app-text/zemberek-server/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX pre 28 RMD160 8efadb2736f248316dbeaeeb7357326c1c9d8ffe SHA1 ba4a6643b47ed8fced54c9687b957743c5d47ec2 SHA256 0c52a08240ef228330b1786762f2de86e971c31585529a3c7d28ce10142351d0
+AUX zemberek-server 505 RMD160 c969e5485eddce06dcf89b30fc6f7305aa8d18f7 SHA1 e8e607e8f1729c27b3eb383e7d4d078bf9cf492a SHA256 917103ccf2259f8291402384628e2435595df1a6f387db328dd1242785dafe27
+DIST zemberek-server-nolibs-0.7.1.tar.gz 17877 RMD160 9de7d064b4783978f7367972e85a1b02144488f9 SHA1 41a3082add1b126919a7a0224aabe9a62f8de320 SHA256 39acbb089241e3a9e7fe09c23f6b313afb075114069c9db414fff15b455e0276
+EBUILD zemberek-server-0.7.1.ebuild 1588 RMD160 902dd6b92d971d2fa77728b7d703c97663888107 SHA1 7c2ce0fc95ebe7651b19baa7fe3059ded1e658ba SHA256 99139337e2fc15151cd3e019914ad767033c37fc10f1e7a911ff43c213cd258c
+MISC ChangeLog 428 RMD160 bf457a17c91d1f66716a6c3ddfbec209261081cb SHA1 0454d044a6878dc39be6b008d4a7216a5bd53648 SHA256 0314da924e1f691cddec545f12fe8192f09adb0efbeea882aacc33d5e99d9af8
+MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkiA9DUACgkQRh6X64ivZaLFpwCff2ZY9fPeaHLB+qBXlF7Sfrb4
+08kAnRWUIagAhRJpUhHSwAOmuoWrpRLd
+=WXMR
+-----END PGP SIGNATURE-----
diff --git a/app-text/zemberek-server/files/pre b/app-text/zemberek-server/files/pre
new file mode 100644
index 000000000000..17b146c4b522
--- /dev/null
+++ b/app-text/zemberek-server/files/pre
@@ -0,0 +1 @@
+export LC_ALL="tr_TR.UTF-8"
diff --git a/app-text/zemberek-server/files/zemberek-server b/app-text/zemberek-server/files/zemberek-server
new file mode 100644
index 000000000000..c5b4ddd434fb
--- /dev/null
+++ b/app-text/zemberek-server/files/zemberek-server
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header:
+
+start() {
+ ebegin "Starting zemberek-server"
+ /sbin/start-stop-daemon -b --start --quiet --pidfile /var/run/zemberek-server.pid --make-pidfile --exec /usr/bin/zemberek-server
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping zemberek-server"
+ start-stop-daemon --stop --pidfile /var/run/zemberek-server.pid --quiet
+ eend $?
+}
diff --git a/app-text/zemberek-server/metadata.xml b/app-text/zemberek-server/metadata.xml
new file mode 100644
index 000000000000..250f2d1940ea
--- /dev/null
+++ b/app-text/zemberek-server/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
diff --git a/app-text/zemberek-server/zemberek-server-0.7.1.ebuild b/app-text/zemberek-server/zemberek-server-0.7.1.ebuild
new file mode 100644
index 000000000000..1cb3c0822907
--- /dev/null
+++ b/app-text/zemberek-server/zemberek-server-0.7.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 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.1 2008/07/18 19:51:04 serkan Exp $
+
+EAPI=1
+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"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+S="${WORKDIR}"
+IUSE=""
+
+CDEPEND="dev-java/zemberek
+ 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"
+
+pkg_setup() {
+ ! built_with_use zemberek linguas_tr \
+ && die "Zemberek should be built with Turkish language support"
+ java-pkg-2_pkg_setup
+}
+
+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
+}