From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/
Date: Thu, 30 Mar 2017 14:32:14 +0000 (UTC) [thread overview]
Message-ID: <1490883719.52d9404f466a4b269fa7e399c9412ba749b32661.hattya@gentoo> (raw)
commit: 52d9404f466a4b269fa7e399c9412ba749b32661
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 30 14:21:59 2017 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Mar 30 14:21:59 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52d9404f
dev-db/qdbm: update to EAPI 6
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-db/qdbm/qdbm-1.8.78-r1.ebuild | 94 +++++++++++++++++++++++----------------
1 file changed, 55 insertions(+), 39 deletions(-)
diff --git a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild b/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
index b50def2b3ea..6f6bd6fc00d 100644
--- a/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
+++ b/dev-db/qdbm/qdbm-1.8.78-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI="6"
-inherit eutils java-pkg-opt-2 multilib
+inherit java-pkg-opt-2 perl-functions
DESCRIPTION="Quick Database Manager"
HOMEPAGE="http://fallabs.com/qdbm/"
@@ -12,91 +12,107 @@ SRC_URI="http://fallabs.com/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="cxx debug java perl ruby zlib"
+IUSE="bzip2 cxx debug java lzo perl ruby zlib"
-RDEPEND="java? ( >=virtual/jre-1.4 )
+RDEPEND="bzip2? ( app-arch/bzip2 )
+ java? ( >=virtual/jre-1.4:* )
+ lzo? ( dev-libs/lzo )
perl? ( dev-lang/perl )
- ruby? ( dev-lang/ruby )
+ ruby? ( dev-lang/ruby:= )
zlib? ( sys-libs/zlib )"
DEPEND="${RDEPEND}
- java? ( >=virtual/jdk-1.4 )"
+ java? ( >=virtual/jdk-1.4:* )"
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-runpath.patch
- epatch "${FILESDIR}"/${PN}-perl.patch
- epatch "${FILESDIR}"/${PN}-ruby19.patch
- # apply flags
- sed -i "/^CFLAGS/s|$| ${CFLAGS}|" Makefile.in
- sed -i "/^OPTIMIZE/s|$| ${CFLAGS}|" perl/Makefile.in
- sed -i "/^CXXFLAGS/s|$| ${CXXFLAGS}|" plus/Makefile.in
- sed -i "/^JAVACFLAGS/s|$| ${JAVACFLAGS}|" java/Makefile.in
- # replace make -> $(MAKE)
- sed -i "s/make\( \|$\)/\$(MAKE)\1/g" \
- Makefile.in \
- {cgi,java,perl,plus,ruby}/Makefile.in
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-perl.patch
+ "${FILESDIR}"/${PN}-ruby19.patch
+ "${FILESDIR}"/${PN}-runpath.patch
+)
+HTML_DOCS=( doc/. )
-qdbm_api_for() {
+qdbm_foreach_api() {
local u
for u in cxx java perl ruby; do
if ! use "${u}"; then
continue
fi
- if [ "${u}" = "cxx" ]; then
+ einfo "${EBUILD_PHASE} ${u}"
+ if [[ "${u}" == "cxx" ]]; then
u="plus"
fi
cd "${u}"
case "${EBUILD_PHASE}" in
configure)
- econf
+ case "${u}" in
+ cgi|java|plus)
+ econf $(use_enable debug)
+ ;;
+ *)
+ econf
+ ;;
+ esac
;;
compile)
emake
;;
test)
- emake -j1 check
+ emake check
;;
install)
emake DESTDIR="${D}" MYDATADIR=/usr/share/doc/${P}/html install
esac
- cd -
+ cd - >/dev/null
done
}
+src_prepare() {
+ default
+ java-pkg-opt-2_src_prepare
+
+ sed -i \
+ -e "/^CFLAGS/s|$| ${CFLAGS}|" \
+ -e "/^OPTIMIZE/s|$| ${CFLAGS}|" \
+ -e "/^CXXFLAGS/s|$| ${CXXFLAGS}|" \
+ -e "/^JAVACFLAGS/s|$| ${JAVACFLAGS}|" \
+ -e 's/make\( \|$\)/$(MAKE)\1/g' \
+ Makefile.in {cgi,java,perl,plus,ruby}/Makefile.in
+ find -name "*~" -delete
+}
+
src_configure() {
econf \
+ $(use_enable bzip2 bzip) \
$(use_enable debug) \
+ $(use_enable lzo) \
$(use_enable zlib) \
- --enable-pthread \
- --enable-iconv
- qdbm_api_for # configure
+ --enable-iconv \
+ --enable-pthread
+ qdbm_foreach_api
}
src_compile() {
- emake
- qdbm_api_for # compile
+ default
+ qdbm_foreach_api
}
src_test() {
- emake -j1 check
- qdbm_api_for # test
+ default
+ qdbm_foreach_api
}
src_install() {
- emake DESTDIR="${D}" install
- dodoc ChangeLog NEWS README THANKS
- dohtml -r doc/
- rm -rf "${ED}"/usr/share/${PN}
+ default
+ qdbm_foreach_api
- qdbm_api_for # install
+ 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
- rm -f "${ED}"/$(perl -V:installarchlib | cut -d\' -f2)/*.pod
- find "${ED}" -name .packlist -print0 | xargs -0 rm -f
+ perl_delete_module_manpages
+ perl_fix_packlist
fi
rm -f "${ED}"/usr/bin/*test
next reply other threads:[~2017-03-30 14:32 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 14:32 Akinori Hattori [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-03-30 14:59 [gentoo-commits] repo/gentoo:master commit in: dev-db/qdbm/ Akinori Hattori
2018-06-23 8:17 Akinori Hattori
2019-02-20 14:23 Akinori Hattori
2019-07-24 17:35 Aaron Bauman
2020-05-10 9:53 Akinori Hattori
2020-05-10 9:53 Akinori Hattori
2020-05-27 12:57 Akinori Hattori
2021-07-07 19:15 Hans de Graaff
2021-08-13 13:58 Akinori Hattori
2021-08-13 13:58 Akinori Hattori
2021-08-29 8:37 Marek Szuba
2021-09-13 6:57 Agostino Sarubbo
2021-09-13 6:59 Agostino Sarubbo
2021-09-13 7:00 Agostino Sarubbo
2021-09-13 16:03 Sam James
2021-09-25 5:18 Agostino Sarubbo
2021-10-01 23:42 Sam James
2021-10-21 15:05 Akinori Hattori
2022-09-10 1:52 Akinori Hattori
2022-09-10 1:52 Akinori Hattori
2022-09-10 1:52 Akinori Hattori
2023-12-17 10:49 Hans de Graaff
2024-05-19 9:09 Akinori Hattori
2024-05-19 9:09 Akinori Hattori
2025-01-19 8:25 Hans de Graaff
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=1490883719.52d9404f466a4b269fa7e399c9412ba749b32661.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