From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/zemberek/Manifest | 6 ++ .../files/zemberek-2.1.1-classpathfix.patch | 12 ++++ dev-java/zemberek/metadata.xml | 11 ++++ dev-java/zemberek/zemberek-2.1.1.ebuild | 71 ++++++++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 dev-java/zemberek/Manifest create mode 100644 dev-java/zemberek/files/zemberek-2.1.1-classpathfix.patch create mode 100644 dev-java/zemberek/metadata.xml create mode 100644 dev-java/zemberek/zemberek-2.1.1.ebuild (limited to 'dev-java/zemberek') diff --git a/dev-java/zemberek/Manifest b/dev-java/zemberek/Manifest new file mode 100644 index 000000000000..400af2a87557 --- /dev/null +++ b/dev-java/zemberek/Manifest @@ -0,0 +1,6 @@ +AUX zemberek-2.1.1-classpathfix.patch 514 SHA256 a68aed859de64ae5f59cb4b4f31f4e89ed88ad895629b1e9feef9d1d1acc1687 SHA512 71ed0b82ff218fd8bc041fcf7d1fc669ad3fd3df890aaeedf2ea3f6ece5f6e484c1d4db709ecc5704d32aff934ae160285b64ef280be83849dc1fe8587c52178 WHIRLPOOL a3c37f404580e273b531061eefcec58b7abea3709309e697e63b6358c39625a8319c5eccbe024e34ba41e1f7c02a07fcca037df97a1fcd7ea749c3c9fe80ae8d +DIST zemberek-2.1.1-nolibs-src.zip 1196289 SHA256 0a1a9a3bb2c76c9c40a96aea81e99abc0fab1baadc31fcc975bc5b235937cca3 SHA512 e97342271294504a0e9df7bbc60f68beed137311254f5cc6d7558befa106737b75b0dcb7a86033f506eda3783d98ba2788cf5da69497f18861dd8cd79bb27955 WHIRLPOOL 55a039caefcd0d4c36a2b977de424d62f8780aa4e37c24c55666b0088c6914756cc070792847a61d460b650617bf6df94b87671e9ef8fe300b38f9416d63a09f +EBUILD zemberek-2.1.1.ebuild 1808 SHA256 eee0fa5d1e28dbfae12325eb4b0bb7f7f8fb6250a6f8467289ff190ee1d25021 SHA512 6db4da7035f148af0f629bda77910191bc65cf79b3bc769e41496fe2402024f05f6136267a24a8636f2b9173b0ebeec743bcde57cf02758da1f9bf0ce64d8d4b WHIRLPOOL 2b63adaa7847f566e5eb8a7a97cd457d168be39732b334fc2bd6503a1fc7b65a2b28bf6faaca64000c9e0a868b02011a5841e041cfa39ea4df6ec3410b2565aa +MISC ChangeLog 3612 SHA256 860bf36fcd6fc45178d7b0ccfa670b817d27a4e30fb316c0b40f7a27d81dddd6 SHA512 09059db3624a8997bd696d6728c5e4a60e07faf671b65440dc13209e02b7cf88d98139d4819d80fb38ef907c99e06f3cff12021f4750cd2e3e4bc5bd2ffa80fd WHIRLPOOL 95f0fbaeaa746d857b64224367d9a89e0c14abff314528aedb650a1fea09007e57f599616cf4d30e525dc48d6c87478f18c0cd5c649d646c3108d5dbcfcb82ae +MISC ChangeLog-2015 2470 SHA256 920f62543d62aa988b2864c50e83de52e1bfb138516c7efc237549e04b28129f SHA512 cbc7cb5bfd8ea623c8b7d0769d35bda46ed00cf4c1ef78dcb58cbc5980784658e54fb3034cc01b5ca1bc1b6fa2a9a7d72329e72ae127471149b7d1fc047f51a6 WHIRLPOOL f6270d5347c10c710c3def3a92279b5e35b7010bcb940e80768d898a07ea43198dac0c4e905d179f5e04922c91d78afd49fdd1c5d23cf0e0ed1eee0c7e988673 +MISC metadata.xml 354 SHA256 d28e36a060e2f92941771fa84bacc24c1642529af5c1a52305d7c2af64c7e674 SHA512 546242cb1f76ce63ff5fd1b6a67ad35f6f16aed97f01e886b980a868d3f6bec8c8af4c003389530c6ebe3b7dd35a72b2297c6de2167c47c81bb5be627a4a8709 WHIRLPOOL f1b398fb797e8401b9517a7cd9e7d919ae8c478e08d8c1e2c65d1f2326f19e08adc5dfc7d18637c0d9274d9ee005a5e09c779830ed024a41ce033c70cc306ddd 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 000000000000..fa6c572c1cbf --- /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 @@ + + + +- ++ + + + diff --git a/dev-java/zemberek/metadata.xml b/dev-java/zemberek/metadata.xml new file mode 100644 index 000000000000..804d6e9e3ad2 --- /dev/null +++ b/dev-java/zemberek/metadata.xml @@ -0,0 +1,11 @@ + + + + + java@gentoo.org + + + zemberek + ahmetaa/zemberek-nlp + + 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 000000000000..104b1c3c4742 --- /dev/null +++ b/dev-java/zemberek/zemberek-2.1.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +JAVA_PKG_IUSE="source doc test" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Zemberek NLP library" +HOMEPAGE="https://github.com/ahmetaa/zemberek-nlp" +SRC_URI="https://${PN}.googlecode.com/files/${P}-nolibs-src.zip" + +LICENSE="MPL-1.1" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +LANGS="tr tk" + +S=${WORKDIR}/${P}-nolibs-src + +IUSE="l10n_tk +l10n_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 + # See https://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() { + local anttargs langs="" jar + for jar in ${LANGS}; do + use l10n_${jar} && langs+=" ${jar}" + done + for jar in cekirdek demo ${langs}; do + anttargs="${anttargs} jar-${jar}" + done + eant ${anttargs} $(use_doc javadocs) +} + +src_install() { + local sourcetrees="" langs="" jar + for jar in ${LANGS}; do + use l10n_${jar} && langs+=" ${jar}" + done + for jar in cekirdek demo ${langs}; 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 +} -- cgit v1.2.3