diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/chasen | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/chasen')
-rw-r--r-- | app-text/chasen/Manifest | 4 | ||||
-rw-r--r-- | app-text/chasen/chasen-2.4.4-r3.ebuild | 60 | ||||
-rw-r--r-- | app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch | 21 | ||||
-rw-r--r-- | app-text/chasen/metadata.xml | 11 |
4 files changed, 96 insertions, 0 deletions
diff --git a/app-text/chasen/Manifest b/app-text/chasen/Manifest new file mode 100644 index 000000000000..63f49cabee02 --- /dev/null +++ b/app-text/chasen/Manifest @@ -0,0 +1,4 @@ +AUX chasen-2.4.4-cve-2011-4000.patch 559 BLAKE2B ee5085a642c1b04ab5cefeaedd09690f988e5cb600953d0ffecd479fe8ddc207e67a27980ebb3df2fbf31dab1f9cc55d597ea09d25dd0c0b29b8fe1d0eddc6c6 SHA512 308a82dfcba13fc33733df853f0abf9979f2d8ff18e1c3f552ac7cd3b6c844dd40e125790fa62844a326ef7e546d0b24fc01c801f3e6cee0aa8b7b2a08474623 +DIST chasen-2.4.4.tar.gz 845720 BLAKE2B ae18e71d78588c108f747abc6f28835f90d0a2c84616a01d87acea2ae5e0e54ef6ff296ebb9dbdce9047a223bd34203cf2763e9b3d4fb28522a4add7bc823860 SHA512 4551d28be6c0de7a585decf03cf5b56def3d181cfdfd975565ac7236e2c3e8cc0bcf5331f1ae309a914f95c6715e13ba3e9d80ebbd6e86c2316a43b7ed831075 +EBUILD chasen-2.4.4-r3.ebuild 1084 BLAKE2B 4657d07c37e08ee0a55ff3b4d319c0b4b515216ac2e202595e1c31f8d243c5f315d696347bae01ca86db6d828d5bae853a8fb7a4133f8b42560cf91d6370b8fa SHA512 5bcc3c9aa096fdc223b71cf8b216bdaa09b33c4ced0c44b76c2f9bfb985d1169fc046c43f9371613ce3234ce8e79f91cc5651d2911f45c36852bc709701f098d +MISC metadata.xml 320 BLAKE2B a218844660f8614413b8afeec00615885e71d7ba7fc1784496ca28fe8c2d689eedb160dfe56080f24cfa369c0652de87597c14b63ab4879cba1970761c8d2ac8 SHA512 1bf81a4a404bd57dd50b071ec19fa00e17b2a733d3988251d195406a8229d0fb3500498ebbb634f863df5d1d56445ceb1605a470421c54697a130769f0f4263c diff --git a/app-text/chasen/chasen-2.4.4-r3.ebuild b/app-text/chasen/chasen-2.4.4-r3.ebuild new file mode 100644 index 000000000000..918861f19523 --- /dev/null +++ b/app-text/chasen/chasen-2.4.4-r3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils perl-module + +DESCRIPTION="Japanese Morphological Analysis System, ChaSen" +HOMEPAGE="http://chasen-legacy.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/chasen-legacy/32224/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86 ~sparc-solaris" +IUSE="perl static-libs" + +DEPEND=">=dev-libs/darts-0.32" +RDEPEND="${DEPEND} + perl? ( !dev-perl/Text-ChaSen )" +PDEPEND=">=app-dicts/ipadic-2.7.0" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cve-2011-4000.patch +} + +src_configure() { + econf $(use_enable static-libs static) + if use perl ; then + cd "${S}"/perl + perl-module_src_configure + fi +} + +src_compile() { + default + if use perl ; then + cd "${S}"/perl || die + perl-module_src_compile + fi +} + +src_test() { + default + if use perl ; then + cd "${S}"/perl || die + perl-module_src_test + fi +} + +src_install () { + default + + if use perl ; then + cd "${S}"/perl || die + perl-module_src_install + newdoc README README.perl + fi + + prune_libtool_files +} diff --git a/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch b/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch new file mode 100644 index 000000000000..61480622e40a --- /dev/null +++ b/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch @@ -0,0 +1,21 @@ +diff --git a/lib/chalib.c b/lib/chalib.c +index 5d79e13..cddf51b 100644 +--- a/lib/chalib.c ++++ b/lib/chalib.c +@@ -306,9 +306,14 @@ chasen_sparse_main(char *input, FILE *output) + */ + while (*input) { + int c = 0, len, cursor; +- if ((crlf = strpbrk(input, "\r\n")) == NULL) ++ if ((crlf = strpbrk(input, "\r\n")) == NULL) { + len = strlen(input); +- else { ++ if (len >= CHA_INPUT_SIZE) { ++ len = CHA_INPUT_SIZE - 1; ++ crlf = input + CHA_INPUT_SIZE - 2; ++ c = 0; ++ } ++ } else { + len = crlf - input; + c = *crlf; + *crlf = '\0'; diff --git a/app-text/chasen/metadata.xml b/app-text/chasen/metadata.xml new file mode 100644 index 000000000000..edc470c136a2 --- /dev/null +++ b/app-text/chasen/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <upstream> + <remote-id type="sourceforge-jp">chasen-legacy</remote-id> + </upstream> +</pkgmetadata> |