summaryrefslogtreecommitdiff
path: root/app-text/zemberek-server
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/zemberek-server
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/zemberek-server')
-rw-r--r--app-text/zemberek-server/Manifest8
-rw-r--r--app-text/zemberek-server/files/pre1
-rw-r--r--app-text/zemberek-server/files/zemberek-server15
-rw-r--r--app-text/zemberek-server/metadata.xml12
-rw-r--r--app-text/zemberek-server/zemberek-server-0.7.1-r1.ebuild54
-rw-r--r--app-text/zemberek-server/zemberek-server-0.7.1.ebuild53
6 files changed, 143 insertions, 0 deletions
diff --git a/app-text/zemberek-server/Manifest b/app-text/zemberek-server/Manifest
new file mode 100644
index 000000000000..4dfc0fba16b3
--- /dev/null
+++ b/app-text/zemberek-server/Manifest
@@ -0,0 +1,8 @@
+AUX pre 28 SHA256 0c52a08240ef228330b1786762f2de86e971c31585529a3c7d28ce10142351d0 SHA512 75e665b18422a11cf69b06f1fb5109672035be1e1a21e3bf7c04acbf0c6846a9c315ff009671f1f9dbccdbe19255c9a02375eb343316075f39094d1d38b49eec WHIRLPOOL 7ed4f0ba45baa000976abfd163077966e1d41b51b294014368ae9feace62387f5d20c71e631112214007f64db2236294274ac051395738a1838258c129a6d7ee
+AUX zemberek-server 495 SHA256 cf5b3e0c24801c2128b402488217b2c4d0bb63cae943c74c417882729423b07a SHA512 b8aee206140935f0799c3e4c4edf38bb7b7ba1d59fc2ad17b940e37ce0153757df968ee09f57a54af9ce2c9496a800f57c10c9aa741e4018c167919c854172a4 WHIRLPOOL 12fd360166df4ee82ff879c335a64495e54521ca3a88a08eee42b2880f5dd51a6170ea75dc19d35443ad3f525f0e9c36c74b7698204590ed10a6d3789e650c18
+DIST zemberek-server-nolibs-0.7.1.tar.gz 17877 SHA256 39acbb089241e3a9e7fe09c23f6b313afb075114069c9db414fff15b455e0276 SHA512 5a4c880976c69e4a4f24f778326008ac0a6ea14ed621f8953643298ab2b723799ec4974b55fac5d6b68e5c9134d0e4e06829535cbb2119aefe765cffe0fc9f1d WHIRLPOOL a42fc54fb4e47ab4db978afbaa21f5e7566753e550cb73ef478ebd9b7d357783e80d7206b12a952b854c13778b26ed8c937494442fe7926481b35e5af3e60bc8
+EBUILD zemberek-server-0.7.1-r1.ebuild 1345 SHA256 4f9e7587b4fc6328e6b34d0459e62e6f6573fa6b299feeeb42c6ccc3e61bc4d4 SHA512 3c69810b576b51f30d0ad8f6f877a78db202a1f692eadf74b647fd1bf6ba73b9e85b6806e1966344379dfddb645daff10d2753d1b665114222d27ed848ecc35c WHIRLPOOL db80dbaac602a7194103f0d5ec77ebc6af1de9af55f11fa6473587a947ebfbb8357cb9d68d18f6459aebd7b7326d291409f80732d1f26146eebfadad5a431cb6
+EBUILD zemberek-server-0.7.1.ebuild 1341 SHA256 bdbc4bff67e8d8e6d400edfc747a342a6d144647071fcfcf52026a37367cb6fb SHA512 d97f6d3447078f9fb1ec25c365779cc6e79f2f22a7a6f46564d877203fc8f5a261ebdb879cde1ecea74d43cc5d34184cc95a6f2b09b7910ff5faa036481df31e WHIRLPOOL ecf5505ff591e8b822dd617c42759220c7dd125f0775f6dcb7326d8493a29784941cff7d2e9d6d723af392434cf639dfa06c0757cab145fb182d168c519fccf2
+MISC ChangeLog 3815 SHA256 25657a7733b694eeb64555e58fc7b7498d391652df68de47776d14b09f85a6b9 SHA512 8700da4f9e04e71b7632da1372087f998e9ab1c0a74acb331c30e4c9bed1efb3c04370344e967acc74daa0274affa69611237c3e0343e0e9d912f034f9211780 WHIRLPOOL 6b09c5cd9e9c87a16eaf889a67eca04c824016dd5b991da96107ef9a2613c1ede6cb36bd2e1e3e3b2c1a192a908107a49a8d36597fd2d251ef1f4bb7898877d8
+MISC ChangeLog-2015 1566 SHA256 fdcc5546f1af75f4496b5ad0789d13344c31bdb93d06e183b6e9bffbca8128fb SHA512 765fbc5cd178b42b322656a41ff8eba350df9ab77c7bcf5c4f09ccb458cc4141eebd622b9ab598cb04c15066b0fda9c8d98c945a327360fbc696028c80b202bf WHIRLPOOL f75000f8033b50448b49ad571c477b917e54fe016f198097aa84c96c7dd1515d2826ebeab284262698de9f0464244264193e081861f9a11020de8e2c4da05e5c
+MISC metadata.xml 374 SHA256 53de1d78c81703508f274cc3cf584cad3fccbca6ad0a4264859202a45094f2d5 SHA512 7118ff12330767a493b702f46379d798674edcabd1ad3e6510a51db89a72929651d78ceb19538fc8838def065fa5f48c03eea718954067dfccd799dd40b897e1 WHIRLPOOL 9df40eaa5e63418158e7026b27116b349e5efc73be872ad75a7e8a17da42df6544733f4a5d5e7efffb7b8935ac0bc738c972de3bdcb57106896fd7af77a71c0d
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..7df7a0bfa9c3
--- /dev/null
+++ b/app-text/zemberek-server/files/zemberek-server
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+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..027f814bed7e
--- /dev/null
+++ b/app-text/zemberek-server/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">zemberek</remote-id>
+ <remote-id type="github">ahmetaa/zemberek-nlp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/zemberek-server/zemberek-server-0.7.1-r1.ebuild b/app-text/zemberek-server/zemberek-server-0.7.1-r1.ebuild
new file mode 100644
index 000000000000..18f785fa2533
--- /dev/null
+++ b/app-text/zemberek-server/zemberek-server-0.7.1-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="A Turkish spell checker server based on Zemberek NLP library"
+HOMEPAGE="https://github.com/ahmetaa/zemberek-nlp"
+SRC_URI="https://zemberek.googlecode.com/files/${PN}-nolibs-${PV}.tar.gz"
+
+LICENSE="MPL-1.1 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+S="${WORKDIR}"
+IUSE=""
+
+CDEPEND="dev-java/zemberek[l10n_tr]
+ dev-java/dbus-java
+ dev-java/mina-core"
+
+RDEPEND="${CDEPEND}
+ dev-java/slf4j-nop
+ >=virtual/jre-1.6"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6"
+
+EANT_BUILD_TARGET="dist"
+
+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
+}
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..2134b015099c
--- /dev/null
+++ b/app-text/zemberek-server/zemberek-server-0.7.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="A Turkish spell checker server based on Zemberek NLP library"
+HOMEPAGE="https://github.com/ahmetaa/zemberek-nlp"
+SRC_URI="https://zemberek.googlecode.com/files/${PN}-nolibs-${PV}.tar.gz"
+
+LICENSE="MPL-1.1 GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+S="${WORKDIR}"
+IUSE=""
+
+CDEPEND="dev-java/zemberek[l10n_tr]
+ 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"
+
+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
+}