diff options
author | Serkan Kaba <serkan@gentoo.org> | 2008-07-18 19:51:04 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2008-07-18 19:51:04 +0000 |
commit | 01b5228e7b65598ac82242f6b7eb9af893330aa9 (patch) | |
tree | e8a0d5c7c43cb9739ebb765975a404d4f61661c1 /app-text | |
parent | Remove unneeded runtime dependency on jakarta-oro-2.0 (diff) | |
download | gentoo-2-01b5228e7b65598ac82242f6b7eb9af893330aa9.tar.gz gentoo-2-01b5228e7b65598ac82242f6b7eb9af893330aa9.tar.bz2 gentoo-2-01b5228e7b65598ac82242f6b7eb9af893330aa9.zip |
Initial ebuild. Fixes bug #156100.
(Portage version: 2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/zemberek-server/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/zemberek-server/Manifest | 6 | ||||
-rw-r--r-- | app-text/zemberek-server/files/pre | 1 | ||||
-rw-r--r-- | app-text/zemberek-server/files/zemberek-server | 16 | ||||
-rw-r--r-- | app-text/zemberek-server/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/zemberek-server/zemberek-server-0.7.1.ebuild | 60 |
6 files changed, 98 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..5149f6459979 --- /dev/null +++ b/app-text/zemberek-server/Manifest @@ -0,0 +1,6 @@ +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 1473 RMD160 511f6f70a1e6b35a0372864e7a28367cf4ca834b SHA1 c78d1dd7b9415ae82b82e15a2ffb41aa67932ef1 SHA256 05f7d0ca0ad450b4b9ed84aa7d74fcb5991f2051a51ee7021b61c29c04d231ff +MISC ChangeLog 332 RMD160 372b48d27eaec66e79daa549afcc657e33b0ee1f SHA1 ab54a3471bc7b438916b04deeb8a65061f80af87 SHA256 240b4596ab42d35c26f0b30a741c7edba81f803a8fc503a27a50c372eb523d35 +MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb 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 +} |