diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/marisa |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/marisa')
-rw-r--r-- | dev-libs/marisa/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/marisa/files/marisa-0.2.4-python.patch | 15 | ||||
-rw-r--r-- | dev-libs/marisa/marisa-0.2.4.ebuild | 86 | ||||
-rw-r--r-- | dev-libs/marisa/metadata.xml | 8 |
4 files changed, 115 insertions, 0 deletions
diff --git a/dev-libs/marisa/Manifest b/dev-libs/marisa/Manifest new file mode 100644 index 000000000000..b6ec5695ab1e --- /dev/null +++ b/dev-libs/marisa/Manifest @@ -0,0 +1,6 @@ +AUX marisa-0.2.4-python.patch 683 SHA256 f04c4cd3fb7c24d5b1879cc39419d99a13eddc3e4563998aacc1355e3f469324 SHA512 fa718a385cfef196833f5a9aa23c31839505a0101df3d25a73616942845668891f818213b89a36689ec93e678289128add1f6450e15fb995233621faaa76d700 WHIRLPOOL 37252e462eb368f86a1b6d844dc53f536b40c9ef78bbf555a7810d4f2090eb9237e906d815402baeada75114db4fa2bc36bc96e0b1d6322bc18e3a5763c0d3a6 +DIST marisa-0.2.4.tar.gz 502552 SHA256 67a7a4f70d3cc7b0a85eb08f10bc3eaf6763419f0c031f278c1f919121729fb3 SHA512 71aee3ae034d1ce725d986bef43472d61bd64f0af3ccda01bb019cce03f0872629b6a1b305e717056bef06e036372323b2a67e5dc69705d6a74e028b5e2553e4 WHIRLPOOL bf902c90b70bf81209e6e86fd15962c8ff7f811fb168fba0688200ab11f29c36199223311ea8d15a891fcb170745587cce7c2e3e4d2ed7e158af9d1d9841b3e4 +EBUILD marisa-0.2.4.ebuild 2264 SHA256 b931b3a0443be935ed5dc040696d93d1b6b496ddbd56476859f40af51d97dab7 SHA512 87356bd9ab7d3f1908ccffa55a6b8e3de6bb1c2ebeb7df56d7d53315988ecc9f860ef9c0ee9d196746fbc47b0fd9b55d23bd485ccc45aa951739a916cb980afc WHIRLPOOL ece5975adf20f34afede568e24a9d9989bebaa8f370068d3a6180badd1ebdb9f703c2447116c649e736bf2313daea488b3ceddf72d241c6e79811872628bd608 +MISC ChangeLog 2771 SHA256 02c3b5d8b6dc8352e3d0cf0fb64cc66cfc1b4a0bcf20b56cb69e6b54f251473a SHA512 cf4336bd5f64b3369570e9f49cb6e095c18057459166bcbc34e53e9417ab2a06895f1ba74ed2d5e7cee1605d0fc05dfcf7226e770690557f02fb19f3bf41d5c7 WHIRLPOOL ca0e1d6973d2eb6cab208e0e9881e8bbba5ed18d22113a6085ef7aeefedf7ef9d258c9fa4c852e809f852ff317b129db724c5bd1e2a26a4c1ad48db2c32a4964 +MISC ChangeLog-2015 1068 SHA256 5a0f0a0b16e41848efa400579a1844e8a71b7098120703f5e660a6432453e0a9 SHA512 c7923afe4e556de9b9507fcc26910a226a45af5c5c0d78ac686f9f252dc6ed5b4d20ef2becda01cd2f9db6aa78537dab813709b998e574211541f695fab2af3c WHIRLPOOL deb9cae89baefdfc4b1dab18870130b6c16ea13692130b20f24b9cc47fd7e6e615076dc9057bd857587ae17908fdd1aeecb5e15c66894921623bfd7e2e46e456 +MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082 diff --git a/dev-libs/marisa/files/marisa-0.2.4-python.patch b/dev-libs/marisa/files/marisa-0.2.4-python.patch new file mode 100644 index 000000000000..fba0e016d475 --- /dev/null +++ b/dev-libs/marisa/files/marisa-0.2.4-python.patch @@ -0,0 +1,15 @@ +--- bindings/python/setup.py 2011-05-14 07:20:52.000000000 +0200 ++++ bindings/python/setup.py 2013-08-02 17:04:16.423771834 +0200 +@@ -1,8 +1,10 @@ + from distutils.core import setup, Extension + + marisa_module = Extension("_marisa", +- sources=["marisa-swig_wrap.cxx", "marisa-swig.cxx"], +- libraries=["marisa"]) ++ sources=["marisa-swig.i", "marisa-swig.cxx"], ++ swig_opts=["-c++"], ++ libraries=["marisa"], library_dirs=["../../lib/.libs"], ++ include_dirs=["../../lib"]) + + setup(name = "marisa", + ext_modules = [marisa_module], diff --git a/dev-libs/marisa/marisa-0.2.4.ebuild b/dev-libs/marisa/marisa-0.2.4.ebuild new file mode 100644 index 000000000000..36c191d1005b --- /dev/null +++ b/dev-libs/marisa/marisa-0.2.4.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +DISTUTILS_OPTIONAL=1 + +inherit distutils-r1 eutils + +DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge" +HOMEPAGE="https://code.google.com/p/marisa-trie/" +SRC_URI="https://marisa-trie.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~ppc ppc64 ~x86" +IUSE="python doc static-libs cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_sse4a cpu_flags_x86_popcnt" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND} + python? ( dev-lang/swig )" + +# implied by --enable switches +REQUIRED_USE=" + cpu_flags_x86_popcnt? ( cpu_flags_x86_sse3 ) + cpu_flags_x86_sse4a? ( cpu_flags_x86_popcnt cpu_flags_x86_sse3 ) + cpu_flags_x86_sse4_2? ( cpu_flags_x86_popcnt cpu_flags_x86_sse4_1 ) + cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) + cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) + cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +src_prepare() { + epatch "${FILESDIR}/${P}-python.patch" + if use python; then + pushd bindings/python || die + ln -sf ../marisa-swig.i marisa-swig.i || die + ln -sf ../marisa-swig.h marisa-swig.h || die + ln -sf ../marisa-swig.cxx marisa-swig.cxx || die + distutils-r1_src_prepare + popd || die + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + $(use_enable cpu_flags_x86_sse2 sse2) + $(use_enable cpu_flags_x86_sse3 sse3) + $(use_enable cpu_flags_x86_ssse3 ssse3) + $(use_enable cpu_flags_x86_sse4_1 sse4.1) + $(use_enable cpu_flags_x86_sse4_2 sse4.2) + # sse4 is just an alias to sse4.2 + $(use_enable cpu_flags_x86_sse4a sse4a) + $(use_enable cpu_flags_x86_popcnt popcnt) + ) + econf "${myeconfargs[@]}" + + if use python; then + pushd bindings/python || die + distutils-r1_src_configure + popd || die + fi +} + +src_compile() { + default + if use python; then + pushd bindings/python || die + distutils-r1_src_compile + popd || die + fi +} + +src_install() { + default + if use python; then + pushd bindings/python || die + distutils-r1_src_install + popd || die + fi + use doc && dohtml docs/readme.en.html + prune_libtool_files +} diff --git a/dev-libs/marisa/metadata.xml b/dev-libs/marisa/metadata.xml new file mode 100644 index 000000000000..c921b96adf6c --- /dev/null +++ b/dev-libs/marisa/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> |