From 97310164515a0a048d4f049ae2d3e8d413fb94c6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 2 Apr 2023 17:18:27 +0100 Subject: gentoo auto-resync : 02:04:2023 - 17:18:27 --- dev-libs/Manifest.gz | Bin 96253 -> 96260 bytes dev-libs/libvoikko/Manifest | 3 +- .../libvoikko-4.3.2-disable-wall-werror.patch | 30 ++ dev-libs/libvoikko/libvoikko-4.3.2.ebuild | 2 + dev-libs/xapian-bindings/Manifest | 4 + ...ian-bindings-1.4.22-fix-java-installation.patch | 15 + ...bindings-1.4.22-remove-precompiled-python.patch | 22 ++ .../xapian-bindings/xapian-bindings-1.4.22.ebuild | 346 +++++++++++++++++++++ dev-libs/xapian/Manifest | 2 + dev-libs/xapian/xapian-1.4.22.ebuild | 67 ++++ 10 files changed, 490 insertions(+), 1 deletion(-) create mode 100644 dev-libs/libvoikko/files/libvoikko-4.3.2-disable-wall-werror.patch create mode 100644 dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-fix-java-installation.patch create mode 100644 dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-remove-precompiled-python.patch create mode 100644 dev-libs/xapian-bindings/xapian-bindings-1.4.22.ebuild create mode 100644 dev-libs/xapian/xapian-1.4.22.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index f2bda28ac01c..4ea4c9a8111a 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/libvoikko/Manifest b/dev-libs/libvoikko/Manifest index 1896dae30163..90da0936cafb 100644 --- a/dev-libs/libvoikko/Manifest +++ b/dev-libs/libvoikko/Manifest @@ -1,8 +1,9 @@ AUX libvoikko-4.3-disable-wall-werror.patch 1227 BLAKE2B 6c943d0a77465c176109d790e650044227a82b386d43494e0ea19426fa985d732cfd3e3a9ef309c2de38da6693f813c3f87eef58c72ab809ee8f8d6e70396ebf SHA512 40c95ba1c78e854ef97bcecc3b98f16089d5f26c70051a8022a782338c704428cac0f08e87b7b4db495d78245cf191ed0a00406963da77d515c56f1a1fad5d5a +AUX libvoikko-4.3.2-disable-wall-werror.patch 1172 BLAKE2B 75a7a8c1edc73dfa8941b8bb738587f077b3bb960111bb80fb5b92e28c7b12bdf6d446c8568926bf333da5836caccdde6113ac55c065a9e08dc5552795a39d55 SHA512 4c9d509b2f4960ae3460753044589fdcb069ea0715e3ecc0b5f2aa928e897a86464baacdf643df4533b9419b4cd7a968454844539e9cbaab1ff143a013b225db DIST libvoikko-4.3.1.tar.gz 658079 BLAKE2B 4f52789b5d62991333ba9b979259a631ef2989bc70358b398a4281d56765046209657fd3e41afd47ee7ba1dbafeeb4a34ffd007e55037bca9958fb813e4b7202 SHA512 6677fac7c0cba1289dda23b0c0a4bbe44480ce747189d40634ac57811728c1942a795efd50270e933373fabab9c54e82a8f9fde06d936442820e3f8019574f08 DIST libvoikko-4.3.1.tar.gz.asc 833 BLAKE2B 4a69ae75da1973e383ab21cb557352be1344dc6e34fef13e28616fbd9e0003b93ef5e3488f1e776eb476a750980281463ee144edc5849ec7e3159badc160ceb7 SHA512 04a5e8899679e1503ec0d378903b8ff17e8065aa105ba61559b584eb4cde2a5a9b622fd39bd0126bb87915c7dcbac8495e874c3cdabf25232b1ae41491275ba0 DIST libvoikko-4.3.2.tar.gz 672196 BLAKE2B fb5cf5d415cb2bfd9849a62ffc7822ee2d79b153035e326cdf9103f17fbeab36edb878604980a09346ed5a9fce0b8006012a92483dc886b20d932802bc9bedd9 SHA512 d510a9344501f86b2f644c1237faf8709f02b5d17bca76f7934c8422495aeee307f12c60dde47df15a39c24c3311253d3dea2d0648050fc3a056a22497de695c DIST libvoikko-4.3.2.tar.gz.asc 833 BLAKE2B e1abeb8fb376c83a09ac26a5ffda98c86bb17fc6b7e2b1d4e0976e2b563aeabbeae7200c9a0298051d6e11bc28b83d540e7e2cfff7253030253e81fd39115256 SHA512 5416123b9610225e2baf26ebb8be27d98ac04d34af9c2ed9252fa6e2c2909276a47967a297fc9bf0b51a6bf8650a55919ea4071dd976752b26a3dfec271ddf0a EBUILD libvoikko-4.3.1.ebuild 1251 BLAKE2B 7f697f2269b77afedf54758880a58fdafe85e58c8866b6744a2e085050b41d63d65b19417cbd7a18d9a4ee5a7c69bad7bce8847b7724f60e0eb1deac68228450 SHA512 08836d7d042fbc5c5871e17bc00c14b0fbfefc903668e49736d1a6b9ecb721d59cb707a8e09c7b6e50e0365a696d611fb1d688865128de3310ec852f3310cb0b -EBUILD libvoikko-4.3.2.ebuild 1249 BLAKE2B 5ac0aebe551b94239307efee941995f58b015c07a854d5ae409c4d3e360c5bf72344d82517fd0ea624359363206f4927d8c0d9fe022ab7c05c32a2b92b1b36de SHA512 358d674a76f5988f1948d3142e61d350f575becb67996539380da4ef20b53ad18b8cb51d49687ae5f9df31fd68069fb192259226bcad258481526964e4d081a8 +EBUILD libvoikko-4.3.2.ebuild 1318 BLAKE2B 19fd36360235aa65fc537934b9ed4230d7e5f3e8db589b0253f5c43165413b01d85a5ae3829f6bd05fe32a2be7248f850d061c2291702781d996f30632010ba3 SHA512 47d37d7635107f85e47151a67970abdc20d7a011b0be0dc3b42c6cc5b1dd7e54ae1244b1026445e9844f0979a6b299bcbeeb88d8330b726d1992cd644ab13455 MISC metadata.xml 420 BLAKE2B 50da044696bd5ea088e340526e669db93321664f40298db2ada11ff15bcdd5a4cea5f7398ea65e8cea86ea484b86c8eb11751c05ad16957c4cd3baba521f274b SHA512 546cc02a57222c8b172130d127eaf0a24869be6138a6834f34e761f40a29636c1acf8697a377208cecf5f3183f186ec267ceddec69bc1fb3229acae48ac22a87 diff --git a/dev-libs/libvoikko/files/libvoikko-4.3.2-disable-wall-werror.patch b/dev-libs/libvoikko/files/libvoikko-4.3.2-disable-wall-werror.patch new file mode 100644 index 000000000000..eee8dd56419e --- /dev/null +++ b/dev-libs/libvoikko/files/libvoikko-4.3.2-disable-wall-werror.patch @@ -0,0 +1,30 @@ +diff -Naur a/configure b/configure +--- a/configure 2023-03-04 19:40:49.000000000 +0200 ++++ b/configure 2023-04-02 14:42:31.748484834 +0300 +@@ -18676,7 +18676,7 @@ + + + tmp_CXXFLAGS="$CXXFLAGS" +-CXXFLAGS="$CXXFLAGS -Wall -Werror -fvisibility=hidden" ++CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the visibility attribute" >&5 + printf %s "checking whether $CC supports the visibility attribute... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +@@ -19748,7 +19748,7 @@ + then : + break + fi +- CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" ++ CFLAGS="-Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" + ac_link="$ax_pthread_save_ac_link" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +@@ -20239,7 +20239,7 @@ + fi + + +-CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic" ++CXXFLAGS="$CXXFLAGS -pedantic" + + ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile java/Makefile test/Makefile cs/Makefile cl/Makefile src/libvoikko.pc" + diff --git a/dev-libs/libvoikko/libvoikko-4.3.2.ebuild b/dev-libs/libvoikko/libvoikko-4.3.2.ebuild index c34db2cdc492..a77427b3f6db 100644 --- a/dev-libs/libvoikko/libvoikko-4.3.2.ebuild +++ b/dev-libs/libvoikko/libvoikko-4.3.2.ebuild @@ -31,6 +31,8 @@ BDEPEND="virtual/pkgconfig VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/voikko.asc +PATCHES=( "${FILESDIR}"/libvoikko-4.3.2-disable-wall-werror.patch ) + src_configure() { local myconf=( --prefix=/usr diff --git a/dev-libs/xapian-bindings/Manifest b/dev-libs/xapian-bindings/Manifest index 2600548e9ee6..1defe8437758 100644 --- a/dev-libs/xapian-bindings/Manifest +++ b/dev-libs/xapian-bindings/Manifest @@ -1,5 +1,9 @@ +AUX xapian-bindings-1.4.22-fix-java-installation.patch 462 BLAKE2B 7a938410063dc240041a498ee48d42663f57deb7bf2bfa83023111d163ccd194d98f79dcc4f158955f671bdfe00b023f456629c274575c5277b21f9528eed22a SHA512 92ca8665c7339becb5e159efbb4de5cd921a47e217dac2252b0854aefab25270c4c08e89424466ae6350fca5feb07e2e7b9170978ffb31a4e6475237300da598 +AUX xapian-bindings-1.4.22-remove-precompiled-python.patch 774 BLAKE2B c6c75b017867f7460b426a3adcfc83f00f2705c0e20c967db2a561dd83bdde95d872d739033c0ee83e0959e9e7eb405b3f8aec852ffb4ab3c755844a81a789d7 SHA512 25712eb39d9297a727284d4d12bfd4affcaa6acb71e345e52229246ef4db5269d30d61f4c990f4d5f9fcdbc9781577afb46d0223edbc9225e5ffb375f09c95b4 DIST xapian-bindings-1.4.19.tar.xz 1137596 BLAKE2B 46004a3449a3137db42164a8b4c5b8684d2eaf0edfa60fe7ca41d5565d1cc16b110ca8204100c9e654baa323a4c73536f80550b17989ce3ee4a132315c31a50e SHA512 c3e353a192822be5d86d448b9d5e4c5eb15d5eb2d079560f7c457f8f7ca85d42e2b933891e784d384c188577f427ca1929c2b47732b9d637e36543e8b5b704d6 DIST xapian-bindings-1.4.21.tar.xz 1151620 BLAKE2B 5596d0784110b6b73efce4b330ad7c0750a7173c94c37d80b4c75865b949b16f32957ff7ca0d67c08592b85874a5b19e57a11d32ef26976fb3cae38f542f5ba0 SHA512 86cbdc8ba73be8aa947e209106dd49d111d264f0b00b5831356e19ba3299eb8f87f2c57ab051ea54c54fb5f1b8cc6a1175ee18f89094f5c7345b820ea805ad33 +DIST xapian-bindings-1.4.22.tar.xz 1074840 BLAKE2B 49c71ece1a159a21b95ff8b6d30c5786e6fd2d1744f0a2e27427b83a85ebced6106ab57655715f6e2089bc3e56da32d6f2ad3d71303a1b75316c7d1a61f84cd0 SHA512 0d1b615646d1bdf383e4e32ae152c1493a23ad173232929c8153bb311b3f5b6c6728f29f46f703854c9249ffb35cb620eda1d68cf742c2150f628c19ed55c10f EBUILD xapian-bindings-1.4.19.ebuild 7115 BLAKE2B 9c93d9f8b020813a6b997a957b10592c3d7564e9ad01410d72beb676d8d48237c7419bdbd44ccccac3581b5b885933ab1b5a2282aadd75bbe83a86892e6cdc79 SHA512 68370978c0ba23e83304613663d387a6cf2ef4b6c6677975702382c76539b069f4c52772e13fbde9aed442fca432ce94b108eb715ee769e46a4036d8e74a322b EBUILD xapian-bindings-1.4.21.ebuild 7119 BLAKE2B 28da79127ce839b22daea81505f3d7523209238be7747d4fac27cbedd676fb332f758dc1ccde95eb5fc72217e9d0e97556518f8b743905e7aa19e8c32a6a0cab SHA512 0ab987f1757ccae25087b9b44d62ae8c37cff59f350ee72bc03186ca58a4fea8f91313c3a531b90556e0d622f74fae06f4a36005bc7887d2e0a1ea609204c8ed +EBUILD xapian-bindings-1.4.22.ebuild 6989 BLAKE2B 57145549b2f0f99f1f4849e7ea733d74ff2c124bcacad51d0a6abceabe88a7465522279f6fdf9a12e16231f3b78b7bbba290e74e210f3670c9e722f1623dc683 SHA512 a4565ba0ba4c42e1f2f04ec8f7721b925de0d63b1dc3d6977b290e4354fd1c47de70d2f7a1836e8213f8054c24a25ce846d93262ad022500f70fb0bb93303057 MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 diff --git a/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-fix-java-installation.patch b/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-fix-java-installation.patch new file mode 100644 index 000000000000..58cc6da9a68c --- /dev/null +++ b/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-fix-java-installation.patch @@ -0,0 +1,15 @@ +The build system installs stray pyc files. + +--- a/python3/Makefile.am ++++ b/python3/Makefile.am +@@ -40,9 +40,7 @@ + + # Install as _DATA rather than _SCRIPTS because we don't want to make these + # executable (they don't have a #! line). +-pkgpylib_DATA = xapian/__init__.py \ +- xapian/__pycache__/__init__.@PYTHON3_CACHE_TAG@.pyc \ +- xapian/__pycache__/__init__.@PYTHON3_CACHE_OPT1_EXT@ ++pkgpylib_DATA = xapian/__init__.py + + pkgpylib_LTLIBRARIES = _xapian.la + diff --git a/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-remove-precompiled-python.patch b/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-remove-precompiled-python.patch new file mode 100644 index 000000000000..c8155ee2c36e --- /dev/null +++ b/dev-libs/xapian-bindings/files/xapian-bindings-1.4.22-remove-precompiled-python.patch @@ -0,0 +1,22 @@ +The build system installs the jni shared library in a wrong path. + +--- a/java/Makefile.am ++++ b/java/Makefile.am +@@ -137,7 +137,7 @@ + + jnidir = `pwd`/built + +-jni_LTLIBRARIES = libxapian_jni.la ++noinst_LTLIBRARIES = libxapian_jni.la + + # Remove the .la file - libxapian_jni.la is never linked against (it's a + # module) and JVMs don't use libltdl. Note that the library gets installed by +@@ -162,7 +162,7 @@ + endif + AM_CXXFLAGS = $(SWIG_CXXFLAGS) $(XAPIAN_CXXFLAGS) + AM_CPPFLAGS = $(JAVA_CPPFLAGS) +-libxapian_jni_la_LDFLAGS = -avoid-version -module $(SHREXT) $(NO_UNDEFINED) ++libxapian_jni_la_LDFLAGS = -avoid-version -module $(SHREXT) $(NO_UNDEFINED) -rpath $(libdir)/xapian-bindings + libxapian_jni_la_LIBADD = $(XAPIAN_LIBS) + libxapian_jni_la_SOURCES = xapian_wrap.cc + diff --git a/dev-libs/xapian-bindings/xapian-bindings-1.4.22.ebuild b/dev-libs/xapian-bindings/xapian-bindings-1.4.22.ebuild new file mode 100644 index 000000000000..2503dbf242df --- /dev/null +++ b/dev-libs/xapian-bindings/xapian-bindings-1.4.22.ebuild @@ -0,0 +1,346 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1,3,4} luajit ) + +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="threads(+)" + +USE_PHP="php8-0 php8-1 php8-2" + +PHP_EXT_NAME="xapian" +PHP_EXT_INI="yes" +PHP_EXT_OPTIONAL_USE="php" + +USE_RUBY="ruby30 ruby31 ruby32" +RUBY_OPTIONAL="yes" + +# mono-env does not support EAPI 8 +inherit autotools java-pkg-opt-2 lua mono-env multibuild php-ext-source-r3 python-r1 ruby-ng + +DESCRIPTION="SWIG and JNI bindings for Xapian" +HOMEPAGE="https://xapian.org/" +SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${P}.tar.xz" +S="${WORKDIR}/${P}" # need this here, some inherited eclasses change it + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="java lua mono perl php python ruby tcl" +REQUIRED_USE=" + || ( java lua mono perl php python ruby tcl ) + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) + ruby? ( || ( $(ruby_get_use_targets) ) ) +" + +COMMONDEPEND=" + >=dev-libs/xapian-1.4.21 + lua? ( ${LUA_DEPS} ) + mono? ( dev-lang/mono ) + perl? ( dev-lang/perl:= ) + php? ( dev-lang/php:=[-threads] ) + python? ( + dev-python/sphinx[${PYTHON_USEDEP}] + ${PYTHON_DEPS} + ) + ruby? ( $(ruby_implementations_depend) ) + tcl? ( dev-lang/tcl:= ) +" +DEPEND=" + ${COMMONDEPEND} + virtual/pkgconfig + java? ( >=virtual/jdk-1.8:* ) +" +RDEPEND=" + ${COMMONDEPEND} + java? ( >=virtual/jre-1.8:* ) +" + +PATCHES=( + "${FILESDIR}"/${P}-remove-precompiled-python.patch + "${FILESDIR}"/${P}-fix-java-installation.patch +) + +has_basic_bindings() { + # Update this list if new bindings are added that are not built + # multiple times for multiple versions like lua, php, python and ruby are + return $(use mono || use java || use perl || use tcl) +} + +php_copy_sources() { + local MULTIBUILD_VARIANTS=($(php_get_slots)) + multibuild_copy_sources +} + +php_foreach_impl() { + local MULTIBUILD_VARIANTS=($(php_get_slots)) + multibuild_foreach_variant "$@" +} + +ruby_copy_sources() { + local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) + multibuild_copy_sources +} + +ruby_foreach_impl() { + local MULTIBUILD_VARIANTS=($(ruby_get_use_implementations)) + multibuild_foreach_variant "$@" +} + +pkg_setup() { + use mono && mono-env_pkg_setup + use java && java-pkg-opt-2_pkg_setup +} + +src_unpack() { + default + + if use php; then + local php_slot + for php_slot in $(php_get_slots); do + # Unfortunately required for php-ext-source-r3_createinifiles(). + mkdir "${WORKDIR}/${php_slot}" + done + fi +} + +src_prepare() { + eapply "${PATCHES[@]}" + eautoreconf + + use java && java-pkg-opt-2_src_prepare + + # https://trac.xapian.org/ticket/702 + export XAPIAN_CONFIG="/usr/bin/xapian-config" + + if use lua; then + lua_copy_sources + fi + + if use php; then + php_copy_sources + fi + + if use python; then + python_copy_sources + fi + + if use ruby; then + ruby_copy_sources + fi + + eapply_user +} + +src_configure() { + # Needed to get e.g. test failure details + MAKEOPTS+=" VERBOSE=1" + + if has_basic_bindings ; then + local conf=( + --disable-documentation + $(use_with mono csharp) + $(use_with java) + $(use_with perl) + $(use_with tcl) + --without-lua + --without-php + --without-python + --without-python3 + --without-ruby + ) + + if use java; then + local -x CXXFLAGS="${CXXFLAGS} $(java-pkg_get-jni-cflags)" + fi + + if use perl; then + local -x PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" + local -x PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" + fi + + econf "${conf[@]}" + fi + + lua_configure() { + local myconf=( + --disable-documentation + --without-csharp + --without-java + --without-perl + --without-tcl + --without-php + --without-python + --without-python3 + --without-ruby + --with-lua + ) + + local -x LUA_INC="$(lua_get_include_dir)" + local -x LUA_LIB="$(lua_get_cmod_dir)" + + econf "${myconf[@]}" + + } + + if use lua; then + lua_foreach_impl run_in_build_dir lua_configure + fi + + php_configure() { + local myconf=( + --disable-documentation + --without-java + --without-lua + --without-csharp + --without-perl + --without-python + --without-python3 + --without-ruby + --without-tcl + --with-php + ) + local -x PHP_CONFIG="${EPREFIX}/usr/$(get_libdir)/${MULTIBUILD_VARIANT/-/.}/bin/php-config" + + econf "${myconf[@]}" + } + + if use php; then + addpredict /usr/share/snmp/mibs/.index + addpredict /var/lib/net-snmp/mib_indexes + + php_foreach_impl run_in_build_dir php_configure + fi + + python_configure() { + local myconf=( + --disable-documentation + --without-java + --without-lua + --without-csharp + --without-perl + --without-php + --without-ruby + --without-tcl + --with-python3 + ) + + # Avoid sandbox failures when compiling modules + addpredict "$(python_get_sitedir)" + + econf "${myconf[@]}" + } + + if use python; then + python_foreach_impl run_in_build_dir python_configure + fi + + ruby_configure() { + local myconf=( + --disable-documentation + --without-java + --without-lua + --without-csharp + --without-perl + --without-php + --without-python + --without-python3 + --with-ruby + --without-tcl + ) + local -x RUBY="${EPREFIX}/usr/bin/${MULTIBUILD_VARIANT}" + + econf "${myconf[@]}" + } + + if use ruby; then + ruby_foreach_impl run_in_build_dir ruby_configure + fi +} + +src_compile() { + if has_basic_bindings ; then + default + fi + + if use lua; then + lua_foreach_impl run_in_build_dir emake + fi + + if use php; then + php_foreach_impl run_in_build_dir emake + fi + + if use python; then + unset PYTHONDONTWRITEBYTECODE + python_foreach_impl run_in_build_dir emake + fi + + if use ruby; then + ruby_foreach_impl run_in_build_dir emake + fi +} + +src_test() { + if has_basic_bindings ; then + default + fi + + if use lua; then + lua_foreach_impl run_in_build_dir emake check + fi + + if use php; then + php_foreach_impl run_in_build_dir emake check + fi + + if use python; then + python_foreach_impl run_in_build_dir emake check + fi + + if use ruby; then + ruby_foreach_impl run_in_build_dir emake check + fi +} + +src_install() { + if has_basic_bindings ; then + emake DESTDIR="${D}" install + fi + + if use java; then + java-pkg_dojar java/built/xapian.jar + java-pkg_doso java/.libs/libxapian_jni.so + fi + + if use lua; then + lua_foreach_impl run_in_build_dir emake DESTDIR="${D}" install + fi + + if use php; then + php_foreach_impl run_in_build_dir emake DESTDIR="${D}" install + php-ext-source-r3_createinifiles + # php-ext-source-r3_createinifiles() changes current directory. + cd "${S}" + fi + + if use python; then + python_foreach_impl run_in_build_dir emake DESTDIR="${D}" install + python_foreach_impl python_optimize + fi + + if use ruby; then + ruby_foreach_impl run_in_build_dir emake DESTDIR="${D}" install + find "${ED}"/usr/share/doc/${PF}/ruby/rdocs/js -name \*.gz -delete || die + fi + + # For some USE combinations this directory is not created + if [[ -d "${ED}/usr/share/doc/xapian-bindings" ]]; then + mv "${ED}/usr/share/doc/xapian-bindings" "${ED}/usr/share/doc/${PF}" || die + fi + + dodoc AUTHORS HACKING NEWS TODO README +} diff --git a/dev-libs/xapian/Manifest b/dev-libs/xapian/Manifest index 265c6f90f2dd..a0add3b5b01b 100644 --- a/dev-libs/xapian/Manifest +++ b/dev-libs/xapian/Manifest @@ -1,6 +1,8 @@ DIST xapian-core-1.4.19.tar.xz 2994860 BLAKE2B 9566df1646192370e346c1b0d1e1cda68034fe5d3ab94835709f969df643fd36da49a58a2d3b4177a42faf5af2e71df771277848169ae62f94fe0bb0378ba6aa SHA512 d596058d7f9bfa0b73c5b6354331a799936b45f27012894f6792872ade8656bb0387b504aea8c1c3edfbd48787190452e7a49d2b62d181cb050c46edd3e67346 DIST xapian-core-1.4.21.tar.xz 3018384 BLAKE2B 61a25ee381c84e0a9f20650d94aa097225f2e947dafad7f6b5497db74f383f5b0fcf277a35ea27ff461b34cd2a9a0b6333f88264c5817cff09a2caf42fa3b398 SHA512 4071791daf47f5ae77f32f358c6020fcfa9aa81c15c8da25489b055eef30383695e449ab1cb73670f2f5db2b2a5f78056da0e8eea89d83aaad91dfe340a6b13a +DIST xapian-core-1.4.22.tar.xz 3019608 BLAKE2B f4aec86cd5f63f6f1825a4f8f427ea23be2092ffb4ca11a2fdf20bdf652e7b9f768b1155bcf7ee5e5c5313206c92e1725d1b4d562e3074539a2e8f9901c44f8e SHA512 60d66adbacbd59622d25e392060984bd1dc6c870f9031765f54cb335fb29f72f6d006d27af82a50c8da2cfbebd08dac4503a8afa8ad51bc4e6fa9cb367a59d29 EBUILD xapian-1.4.19.ebuild 1881 BLAKE2B c35cd8b3aeccab24d62187fb405ed78a83d073ccfcda27caccc29461a2f1f16f7122ad462c796c9ca3527d26f2f7d72805be83dc1cc8a40c49ea5ef574e6cf33 SHA512 58770b49391f37da0322b208d6fdc21478138deb978aa7032625b82a34c43613aec973666466e7175ad0e8e739c573767600d0ca2aa4c0b882cad70386d2644d EBUILD xapian-1.4.21-r1.ebuild 1431 BLAKE2B 18eb02c6338b248bc4d6c3cf0a5cdafcbcf711a3c1167396506e3593f0b03c1094bf7811e3c89c2be57fff9b94d02659b621dff89822a891642366897808f396 SHA512 9efb6374e9e3ba334c768706dfebedecebfaba3c7f46327b40d336205d4894d2d2a9c5b9457359133279411e3745f55ca692755445310f6bacc26ccf7efc09a5 EBUILD xapian-1.4.21.ebuild 1881 BLAKE2B c54cf9d37454b61dc8c8c3716439461d76884651cd68746404d6697c148895848cf01b86b864508687b7be9f689a3d4af0204f44704de073184d9168b0888b15 SHA512 a60e6628a3dfdd1a92a638f88716b8822b3b1bc66cdcb588ce86da516ced52f78640343af4333f55b90b8781a52a61393b64fc547e85e76633020f288ede7975 +EBUILD xapian-1.4.22.ebuild 1405 BLAKE2B 09494d14f4d2655ac5c159ec16c5e5bd3b4bb1e044037f434c1205e511108b4159eb22a77b0624a7145dceceab89225f70a73577089f98609c426c252db0e25c SHA512 d39ede4bc59862166324c994c01af32a17731619b85ca4da832c40b1262fb1c971c321702015e9b4b08f16dc4446856bd3e20b1392a3814a2883a1ba0f6c0904 MISC metadata.xml 728 BLAKE2B 7873e39dfb724c6f3268a7de74226d86dea77e6dd53b21aa0df104db1d30efa5c24c18b8e6597acc45b4b6bb39f1f069b7944ef0ebc2906e75a2b5efeed02ebc SHA512 5f582793cee9b74f5b36f57d6997120cf61c4f4204c49694d07b9ace813a9821710a812df2db315e9effa4913fa3b62ab069be96399369f46cc7c811b6d728ba diff --git a/dev-libs/xapian/xapian-1.4.22.ebuild b/dev-libs/xapian/xapian-1.4.22.ebuild new file mode 100644 index 000000000000..40a621af6000 --- /dev/null +++ b/dev-libs/xapian/xapian-1.4.22.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${PN}-core-${PV}" + +DESCRIPTION="Xapian Probabilistic Information Retrieval library" +HOMEPAGE="https://xapian.org/" +SRC_URI="https://oligarchy.co.uk/xapian/${PV}/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0/30" # ABI version of libxapian.so +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="doc static-libs cpu_flags_x86_sse cpu_flags_x86_sse2 +inmemory +remote" + +DEPEND=" + sys-apps/util-linux + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +DOCS="AUTHORS HACKING PLATFORMS README NEWS" + +src_configure() { + local -a myconf + + if use cpu_flags_x86_sse2; then + myconf+=( --enable-sse=sse2 ) + else + if use cpu_flags_x86_sse; then + myconf+=( --enable-sse=sse ) + else + myconf+=( --disable-sse ) + fi + fi + + myconf+=( $(use_enable static-libs static) ) + + use inmemory || myconf+=( --disable-backend-inmemory ) + use remote || myconf+=( --disable-backend-remote ) + + myconf+=( + --enable-backend-glass + --enable-backend-chert + --program-suffix= + ) + + econf "${myconf[@]}" +} + +src_test() { + emake check VALGRIND= +} + +src_install() { + emake DESTDIR="${D}" install + + if ! use doc; then + rm -r "${ED}/usr/share/doc/${PF}" || die + fi + + einstalldocs + + find "${ED}" -name "*.la" -type f -delete || die +} -- cgit v1.2.3