public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/
Date: Fri, 13 Aug 2021 13:58:38 +0000 (UTC)	[thread overview]
Message-ID: <1628863096.31fa2b62b1e6efa0fd02e82455abd3195c1e80f1.hattya@gentoo> (raw)

commit:     31fa2b62b1e6efa0fd02e82455abd3195c1e80f1
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Fri Jun 18 17:07:21 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Fri Aug 13 13:58:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31fa2b62

dev-db/qdbm: min java 1.8:*

Closes: https://bugs.gentoo.org/787344
Closes: https://github.com/gentoo/gentoo/pull/21310
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 dev-db/qdbm/qdbm-1.8.78-r3.ebuild | 196 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 196 insertions(+)

diff --git a/dev-db/qdbm/qdbm-1.8.78-r3.ebuild b/dev-db/qdbm/qdbm-1.8.78-r3.ebuild
new file mode 100644
index 00000000000..e3abbce65c8
--- /dev/null
+++ b/dev-db/qdbm/qdbm-1.8.78-r3.ebuild
@@ -0,0 +1,196 @@
+# 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 flag-o-matic java-pkg-opt-2 perl-functions ruby-ng
+
+DESCRIPTION="Quick Database Manager"
+HOMEPAGE="https://fallabs.com/qdbm/"
+SRC_URI="https://fallabs.com/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="bzip2 cxx debug java lzo perl ruby static-libs zlib"
+
+RDEPEND="bzip2? ( app-arch/bzip2 )
+	java? ( >=virtual/jre-1.8:* )
+	lzo? ( dev-libs/lzo )
+	perl? ( dev-lang/perl )
+	ruby? ( $(ruby_implementations_depend) )
+	zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+	java? ( >=virtual/jdk-1.8:* )"
+S="${WORKDIR}/all/${P}"
+RUBY_S="${P}/ruby"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-configure.patch
+	"${FILESDIR}"/${PN}-perl.patch
+	"${FILESDIR}"/${PN}-ruby19.patch
+	"${FILESDIR}"/${PN}-runpath.patch
+	"${FILESDIR}"/${PN}-darwin.patch
+)
+HTML_DOCS=( doc/. )
+
+AT_NOELIBTOOLIZE="yes"
+
+pkg_setup() {
+	java-pkg-opt-2_pkg_setup
+	use ruby && ruby-ng_pkg_setup
+}
+
+qdbm_foreach_api() {
+	local u
+	for u in cxx java perl ruby; do
+		if ! use "${u}"; then
+			continue
+		fi
+		einfo "${EBUILD_PHASE} ${u}"
+		if [[ "${u}" == "cxx" ]]; then
+			u="plus"
+		fi
+		if [[ "${u}" != "ruby" ]]; then
+			cd "${u}"
+			case "${EBUILD_PHASE}" in
+			prepare)
+				mv configure.{in,ac}
+				eautoreconf
+				;;
+			configure)
+				case "${u}" in
+				cgi|java|plus)
+					econf $(use_enable debug)
+					;;
+				*)
+					econf
+					;;
+				esac
+				;;
+			compile)
+				emake
+				;;
+			test)
+				emake check
+				;;
+			install)
+				emake DESTDIR="${D}" MYDATADIR=/usr/share/doc/${P}/html install
+			esac
+			cd - >/dev/null
+		else
+			PATCHES= ruby-ng_src_${EBUILD_PHASE}
+		fi
+	done
+}
+
+src_prepare() {
+	default
+	java-pkg-opt-2_src_prepare
+
+	# fix build with >=sys-devel/gcc-7, bug #638878
+	append-cflags $(test-flags-CC -fno-tree-vrp)
+
+	sed -i \
+		-e "/^CFLAGS/s|$| ${CFLAGS}|" \
+		-e "/^OPTIMIZE/s|$| ${CFLAGS}|" \
+		-e "/^CXXFLAGS/s|$| ${CXXFLAGS}|" \
+		-e "/^JAVACFLAGS/s|$| ${JAVACFLAGS}|" \
+		-e 's/make\( \|$\)/$(MAKE)\1/g' \
+		-e '/^debug/,/^$/s/LDFLAGS="[^"]*" //' \
+		Makefile.in {cgi,java,perl,plus,ruby}/Makefile.in || die
+	find -name "*~" -delete || die
+
+	mv configure.{in,ac} || die
+	eautoreconf
+	qdbm_foreach_api
+}
+
+each_ruby_prepare() {
+	sed -i \
+		-e "s|ruby |${RUBY} |" \
+		-e "s|\.\./\.\.|${WORKDIR}/all/${P}|" \
+		{Makefile,configure}.in {curia,depot,villa}/extconf.rb || die
+
+	mv configure.{in,ac} || die
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_enable bzip2 bzip) \
+		$(use_enable debug) \
+		$(use_enable lzo) \
+		$(use_enable zlib) \
+		--enable-iconv \
+		--enable-pthread
+	qdbm_foreach_api
+}
+
+each_ruby_configure() {
+	econf
+}
+
+src_compile() {
+	if [[ ${CHOST} == *darwin* ]] ; then
+		emake mac
+	else
+		default
+		qdbm_foreach_api
+	fi
+}
+
+each_ruby_compile() {
+	emake
+}
+
+src_test() {
+	if [[ ${CHOST} == *darwin* ]] ; then
+		emake check-mac
+	else
+		default
+		qdbm_foreach_api
+	fi
+}
+
+each_ruby_test() {
+	emake check
+}
+
+src_install() {
+	if [[ ${CHOST} == *darwin* ]] ; then
+		emake install-mac
+	else
+		default
+	fi
+
+	qdbm_foreach_api
+	use static-libs || find "${ED}" -name '*.a' -delete || die
+
+	rm -rf "${ED}"/usr/share/${PN}
+
+	if use java; then
+		java-pkg_dojar "${ED}"/usr/$(get_libdir)/*.jar
+		rm -f "${ED}"/usr/$(get_libdir)/*.jar
+	fi
+	if use perl; then
+		perl_delete_module_manpages
+		perl_fix_packlist
+	fi
+
+	rm -f "${ED}"/usr/bin/*test
+	rm -f "${ED}"/usr/share/man/man1/*test.1*
+}
+
+each_ruby_install() {
+	local m
+	for m in curia depot villa; do
+		emake -C "${m}" DESTDIR="${D}" install
+	done
+}
+
+all_ruby_install() {
+	dodoc -r rb*.html rbapidoc
+}


             reply	other threads:[~2021-08-13 13:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-13 13:58 Akinori Hattori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-19  8:25 [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/ Hans de Graaff
2024-05-19  9:09 Akinori Hattori
2024-05-19  9:09 Akinori Hattori
2023-12-17 10:49 Hans de Graaff
2022-09-10  1:52 Akinori Hattori
2022-09-10  1:52 Akinori Hattori
2022-09-10  1:52 Akinori Hattori
2021-10-21 15:05 Akinori Hattori
2021-10-01 23:42 Sam James
2021-09-25  5:18 Agostino Sarubbo
2021-09-13 16:03 Sam James
2021-09-13  7:00 Agostino Sarubbo
2021-09-13  6:59 Agostino Sarubbo
2021-09-13  6:57 Agostino Sarubbo
2021-08-29  8:37 Marek Szuba
2021-08-13 13:58 Akinori Hattori
2021-07-07 19:15 Hans de Graaff
2020-05-27 12:57 Akinori Hattori
2020-05-10  9:53 Akinori Hattori
2020-05-10  9:53 Akinori Hattori
2019-07-24 17:35 Aaron Bauman
2019-02-20 14:23 Akinori Hattori
2018-06-23  8:17 Akinori Hattori
2017-03-30 14:59 Akinori Hattori
2017-03-30 14:32 Akinori Hattori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1628863096.31fa2b62b1e6efa0fd02e82455abd3195c1e80f1.hattya@gentoo \
    --to=hattya@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox