summaryrefslogtreecommitdiff
path: root/app-text/hyperestraier
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/hyperestraier')
-rw-r--r--app-text/hyperestraier/Manifest3
-rw-r--r--app-text/hyperestraier/hyperestraier-1.4.13-r1.ebuild200
-rw-r--r--app-text/hyperestraier/hyperestraier-1.4.13.ebuild4
3 files changed, 204 insertions, 3 deletions
diff --git a/app-text/hyperestraier/Manifest b/app-text/hyperestraier/Manifest
index fc06baaabb40..ab293e340be2 100644
--- a/app-text/hyperestraier/Manifest
+++ b/app-text/hyperestraier/Manifest
@@ -2,5 +2,6 @@ AUX hyperestraier-configure.patch 12359 BLAKE2B 52fb2210ee4945c07fcd4e9812be052a
AUX hyperestraier-perl.patch 844 BLAKE2B fd221a027e47ed7582e697a8104d1ef82d66b87919f20c82f185b9167ad03ae6b9f0b6996b47a99e58fb42443f1c1b1c9f53a6badab935361b26f8693b680694 SHA512 73c7bd659d80464baf1d28a0eed69c9fdb3052a62aa46dc0b56f2ba6f75d458531dc6023684bd92b22b7fc4b79869ccd82e835827096b163faee0f94b0615465
AUX hyperestraier-ruby19.patch 5143 BLAKE2B c9ea3c9e045583dee3ca119ebea07946522c50b00aba4d94fc40f7172925b9aedb8cbdc88e087a87590422566b12269641511c2c1c0a484390b1c2fa8bd1fecc SHA512 fcae611f594eeb35b6aca6eb1139304538793afc6b794e8dee1a59243d5da216f364165c90e7cf7691ed9a7f38a610ba27f37c2eef2baa4042c4a993cbfefb2a
DIST hyperestraier-1.4.13.tar.gz 1014600 BLAKE2B 02be7cd374c47094dedd239e967dbbe5045a77302125861541dbf4d5fc60d488968718fd6b9ca57b88aac96cf2cfe73397af6bbc3d53ff6e983063ed98748e70 SHA512 ec97f487bb0e085f74222106fc5fab227c8c02ee8d736c0b4adef57ec0e4310f829ac59fff5a1c92321786e89bbc2a059a0acff6ab0e5844b83627567bb265fc
-EBUILD hyperestraier-1.4.13.ebuild 3597 BLAKE2B 4827f592b08c0e3ddd2352f07e373c937600a4e5415b3b1c9c4a8e939fb88d3e15be6230f2c9c447ac3ffd3ff109e5f3c7a57d5ccab3241389c771a54976c642 SHA512 3be73c6f34d158ddaf1b4948f5460e6f4e6b2e667b2f891591028e229c1d2e8e95db7a9418fc9418ca28a593326d4d81ae813f62f5ec5ef0fa99e79a2209dc43
+EBUILD hyperestraier-1.4.13-r1.ebuild 3602 BLAKE2B 197ece6bf99270359563da1df2883d5f5486bb12de489c9ba80d53f0f1f0eb7f891af834029a107d423af9e6a2ff9127551ed7cf60d53ce147ba06d9663cf0f5 SHA512 9accf57e9aac8b396b4c2536006899efe53af88ac39d923894114c3f87ed0f55b8ff0dbe016ba54bec5c460b3b0aef64a0bd57172b465609e0c19f679bd6f2dc
+EBUILD hyperestraier-1.4.13.ebuild 3597 BLAKE2B 3df6c264d5e5eb5fcab4fbb6a694bed6db512e96dda7f4780b9ba593be85ef50ae6ce8c46432d38a3abebd27a10ebb2583d2af5b386c4528ba53900eddf37112 SHA512 332c3ea1708f5138d3a594c04727167a7b90b8a8681ceebe7d35d9155b1e2731d3360844ae580fe6166bbffbcdd505e93e92a73ba9e38f1f27e8a1b5d84f48b0
MISC metadata.xml 440 BLAKE2B 5c3edd49e5590ef45d48db13de2f18aa00f332fe955b03b58439a05d3cf8d4ab623b1df6fb39aad7a6f74bef0f8072cf3a097c30be66793957b3cfcc5c35ae9d SHA512 421891e359bfbdafa6759bbaed59a430cbb6bef6bacf0109bb523fe17a19a5804fbdba26ff6cfd00ba19b5fff3d6aca60bd56fd5facbd0e3831f8a34368f142a
diff --git a/app-text/hyperestraier/hyperestraier-1.4.13-r1.ebuild b/app-text/hyperestraier/hyperestraier-1.4.13-r1.ebuild
new file mode 100644
index 000000000000..3b15a1cb6a0e
--- /dev/null
+++ b/app-text/hyperestraier/hyperestraier-1.4.13-r1.ebuild
@@ -0,0 +1,200 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+RUBY_OPTIONAL="yes"
+
+inherit autotools java-pkg-opt-2 perl-functions ruby-ng
+
+DESCRIPTION="a full-text search system for communities"
+HOMEPAGE="https://fallabs.com/hyperestraier/"
+SRC_URI="https://fallabs.com/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="bzip2 debug java lzo mecab perl ruby static-libs +zlib"
+
+RDEPEND="dev-db/qdbm
+ bzip2? ( app-arch/bzip2 )
+ java? ( >=virtual/jre-1.8:* )
+ lzo? ( dev-libs/lzo )
+ mecab? ( app-text/mecab )
+ perl? ( dev-lang/perl )
+ ruby? ( $(ruby_implementations_depend) )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ java? ( >=virtual/jdk-1.8:* )"
+BDEPEND="virtual/pkgconfig"
+S="${WORKDIR}/all/${P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-configure.patch
+ "${FILESDIR}"/${PN}-perl.patch
+ "${FILESDIR}"/${PN}-ruby19.patch
+)
+HTML_DOCS=( doc/. )
+
+AT_NOELIBTOOLIZE="yes"
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+ use ruby && ruby-ng_pkg_setup
+}
+
+he_foreach_api() {
+ local u d
+ for u in java perl ruby; do
+ if ! use "${u}"; then
+ continue
+ fi
+ if [[ "${u}" != "ruby" ]]; then
+ for d in ${u}native ${u}pure; do
+ if [[ ! -d "${d}" ]]; then
+ continue
+ fi
+ einfo "${EBUILD_PHASE} ${d}"
+ cd "${d}"
+ case "${EBUILD_PHASE}" in
+ prepare)
+ mv configure.{in,ac}
+ eautoreconf
+ ;;
+ configure)
+ econf
+ ;;
+ compile)
+ emake
+ ;;
+ test)
+ if [[ "${d}" == "${u}native" ]]; then
+ emake check
+ fi
+ ;;
+ install)
+ if [[ "${u}" != "java" ]]; then
+ emake DESTDIR="${D}" install
+ else
+ java-pkg_dojar *.jar
+ if [[ "${d}" == "${u}native" ]]; then
+ dolib.so lib*.so*
+ fi
+ fi
+ ;;
+ esac
+ cd - >/dev/null
+ done
+ else
+ PATCHES= ruby-ng_src_${EBUILD_PHASE}
+ fi
+ done
+}
+
+he_foreach_ruby_api() {
+ local d
+ for d in rubynative rubypure; do
+ cd "${d}"
+ case "${EBUILD_PHASE}" in
+ prepare)
+ sed -i \
+ -e "/RUBY=/cRUBY=\"${RUBY}\"" \
+ -e "/=\`.*ruby/s|ruby|${RUBY}|" \
+ configure.in
+
+ mv configure.{in,ac}
+ eautoreconf
+ ;;
+ configure)
+ econf
+ ;;
+ compile)
+ emake
+ ;;
+ test)
+ if [[ "${d}" == "${u}native" ]]; then
+ emake check
+ fi
+ ;;
+ install)
+ emake DESTDIR="${D}" install
+ ;;
+ esac
+ cd - >/dev/null
+ done
+}
+
+src_prepare() {
+ default
+ java-pkg-opt-2_src_prepare
+
+ sed -i \
+ -e "/^CFLAGS/s|$| ${CFLAGS}|" \
+ -e "/^JAVACFLAGS/s|$| ${JAVACFLAGS}|" \
+ -e '/^LDENV/d' \
+ -e 's/make\( \|$\)/$(MAKE)\1/g' \
+ Makefile.in {java,perl,ruby}*/Makefile.in
+
+ mv configure.{in,ac}
+ eautoreconf
+ he_foreach_api # prepare
+}
+
+all_ruby_prepare() {
+ sed -i "/^RUNENV /s|\.\.|${WORKDIR}/all/${P}|" ruby*/Makefile.in
+ sed -i "s|\.\./\.\.|${WORKDIR}/all/${P}|" rubynative/src/extconf.rb
+}
+
+each_ruby_prepare() {
+ he_foreach_ruby_api
+}
+
+src_configure() {
+ econf \
+ $(use_enable bzip2 bzip) \
+ $(use_enable debug) \
+ $(use_enable lzo) \
+ $(use_enable mecab) \
+ $(use_enable zlib)
+ he_foreach_api
+}
+
+each_ruby_configure() {
+ he_foreach_ruby_api
+}
+
+src_compile() {
+ default
+ he_foreach_api
+}
+
+each_ruby_compile() {
+ he_foreach_ruby_api
+}
+
+src_test() {
+ default
+ he_foreach_api
+}
+
+each_ruby_test() {
+ he_foreach_ruby_api
+}
+
+src_install() {
+ emake DESTDIR="${D}" MYDOCS= install
+ einstalldocs
+ he_foreach_api
+ use static-libs || find "${ED}" -name '*.a' -delete || die
+
+ if use perl; then
+ perl_delete_module_manpages
+ perl_fix_packlist
+ fi
+
+ rm -f "${D}"/usr/bin/*test
+}
+
+each_ruby_install() {
+ he_foreach_ruby_api
+}
diff --git a/app-text/hyperestraier/hyperestraier-1.4.13.ebuild b/app-text/hyperestraier/hyperestraier-1.4.13.ebuild
index f759094eb85b..0556785a6caf 100644
--- a/app-text/hyperestraier/hyperestraier-1.4.13.ebuild
+++ b/app-text/hyperestraier/hyperestraier-1.4.13.ebuild
@@ -24,9 +24,9 @@ RDEPEND="dev-db/qdbm
perl? ( dev-lang/perl )
ruby? ( $(ruby_implementations_depend) )
zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig
+DEPEND="${RDEPEND}
java? ( >=virtual/jdk-1.4:* )"
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/all/${P}"
PATCHES=(