diff options
Diffstat (limited to 'dev-libs/marisa/marisa-0.2.4.ebuild')
-rw-r--r-- | dev-libs/marisa/marisa-0.2.4.ebuild | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/dev-libs/marisa/marisa-0.2.4.ebuild b/dev-libs/marisa/marisa-0.2.4.ebuild deleted file mode 100644 index 94066df3c186..000000000000 --- a/dev-libs/marisa/marisa-0.2.4.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python{2_7,3_6} ) -DISTUTILS_OPTIONAL=1 - -inherit distutils-r1 eutils - -DESCRIPTION="Matching Algorithm with Recursively Implemented StorAge" -HOMEPAGE="https://github.com/s-yata/marisa-trie https://code.google.com/archive/p/marisa-trie/" -SRC_URI="https://marisa-trie.googlecode.com/files/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm64 ppc ppc64 ~sparc 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 -} |