From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 16CAE138334 for ; Fri, 23 Aug 2019 14:40:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4B39E075F; Fri, 23 Aug 2019 14:39:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C0741E075F for ; Fri, 23 Aug 2019 14:39:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 337F034A205 for ; Fri, 23 Aug 2019 14:39:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA9BD266 for ; Fri, 23 Aug 2019 14:39:54 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1566571127.1c29811d86dbc0a458f74c8b026263ef3d83ca05.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/libdbi-drivers/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild X-VCS-Directories: dev-db/libdbi-drivers/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 1c29811d86dbc0a458f74c8b026263ef3d83ca05 X-VCS-Branch: master Date: Fri, 23 Aug 2019 14:39:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4bf8c502-7799-444e-8f98-6c1d256d539a X-Archives-Hash: 991e61d7c199f28904fd203852093e1b commit: 1c29811d86dbc0a458f74c8b026263ef3d83ca05 Author: Brian Evans gentoo org> AuthorDate: Fri Aug 23 14:36:53 2019 +0000 Commit: Brian Evans gentoo org> CommitDate: Fri Aug 23 14:38:47 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c29811d dev-db/libdbi-drivers: Revbump for EAPI and deps Non-maintainer commit Change to EAPI 7 and use mysql-connector-c instead of virtual/mysql Bug: https://bugs.gentoo.org/665840 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Brian Evans gentoo.org> .../libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild new file mode 100644 index 00000000000..a46e855b424 --- /dev/null +++ b/dev-db/libdbi-drivers/libdbi-drivers-0.9.0-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${P}/${P}.tar.gz" +HOMEPAGE="http://libdbi-drivers.sourceforge.net/" +LICENSE="LGPL-2.1" + +IUSE="doc firebird mysql oci8 postgres +sqlite static-libs" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +SLOT=0 +REQUIRED_USE="|| ( mysql postgres sqlite firebird oci8 )" +RESTRICT="firebird? ( bindist )" + +RDEPEND=" + >=dev-db/libdbi-0.9.0 + firebird? ( dev-db/firebird ) + mysql? ( dev-db/mysql-connector-c:= ) + postgres? ( dev-db/postgresql:* ) + sqlite? ( dev-db/sqlite:3 ) +" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/openjade )" + +DOCS=( AUTHORS ChangeLog NEWS README README.osx TODO ) + +PATCHES=( + #"${FILESDIR}"/${P}-fix-ac-macro.patch \ + #"${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch \ + #"${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch + "${FILESDIR}"/${PN}-0.9.0-doc-build-fix.patch +) + +pkg_setup() { + use oci8 && [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf="" + # WARNING: the configure script does NOT work correctly + # --without-$driver does NOT work + # so do NOT use `use_with...` + # Future additions: + # msql + # freetds + # ingres + # db2 + use mysql && myconf+=" --with-mysql" + use postgres && myconf+=" --with-pgsql" + use sqlite && myconf+=" --with-sqlite3" + use firebird && myconf+=" --with-firebird" + if use oci8; then + [[ -z "${ORACLE_HOME}" ]] && die "\$ORACLE_HOME is not set!" + myconf+=" --with-oracle-dir=${ORACLE_HOME} --with-oracle" + fi + + econf \ + $(use_enable doc docs) \ + $(use_enable static-libs static) \ + --with-dbi-libdir=/usr/$(get_libdir) \ + ${myconf} +} + +src_test() { + if [[ -z "${WANT_INTERACTIVE_TESTS}" ]]; then + ewarn "Tests disabled due to interactivity." + ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them." + return 0 + fi + einfo "Running interactive tests" + emake check +} + +src_install() { + default + + find "${D}" -name '*.la' -type f -delete || die +}