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 B42C8138334 for ; Mon, 6 Aug 2018 13:42:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D86EE0830; Mon, 6 Aug 2018 13:42:04 +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 5EDDCE0830 for ; Mon, 6 Aug 2018 13:42:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 7B619335CD8 for ; Mon, 6 Aug 2018 13:42:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6688A360 for ; Mon, 6 Aug 2018 13:41:59 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1533562905.56767b4da64d320c30c9b214c0411f1dcab86fa4.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/freetds/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/freetds/freetds-1.00.341.ebuild dev-db/freetds/metadata.xml X-VCS-Directories: dev-db/freetds/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 56767b4da64d320c30c9b214c0411f1dcab86fa4 X-VCS-Branch: master Date: Mon, 6 Aug 2018 13:41:59 +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-Archives-Salt: 1f52ade7-0970-4fbe-82c1-478ef534c275 X-Archives-Hash: 3fe7090f02c5b08aa8e48c1498541feb commit: 56767b4da64d320c30c9b214c0411f1dcab86fa4 Author: David Seifert gentoo org> AuthorDate: Mon Aug 6 13:30:31 2018 +0000 Commit: David Seifert gentoo org> CommitDate: Mon Aug 6 13:41:45 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56767b4d dev-db/freetds: [QA] fix multiple violations * Fix broken --docdir on Prefix * Don't build static archives unless USE="static-libs" is enabled * Remove .la files unless USE="static-libs" is enabled * Bump to EAPI 7 * Clean up overly complicated src_configure * Add subslot operator for gnutls, libressl and openssl Package-Manager: Portage-2.3.44, Repoman-2.3.10 dev-db/freetds/freetds-1.00.341.ebuild | 44 +++++++++++++++++++--------------- dev-db/freetds/metadata.xml | 2 +- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/dev-db/freetds/freetds-1.00.341.ebuild b/dev-db/freetds/freetds-1.00.341.ebuild index f975c08fe56..77ec3228c82 100644 --- a/dev-db/freetds/freetds-1.00.341.ebuild +++ b/dev-db/freetds/freetds-1.00.341.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 # This is from the "current" release series, because the "stable" series # is a little too stable for us (missing bug fixes, and so on). @@ -13,25 +13,23 @@ SRC_URI="ftp://ftp.freetds.org/pub/${PN}/current/${MY_PN}.${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 - ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" -IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" +IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl static-libs" RESTRICT="test" # sed, grep, and awk are used by the build system and the osql script. COMMON_DEPEND="sys-apps/sed sys-apps/grep virtual/awk - gnutls? ( net-libs/gnutls ) + gnutls? ( net-libs/gnutls:= ) iconv? ( virtual/libiconv ) iodbc? ( dev-db/libiodbc ) kerberos? ( virtual/krb5 ) odbc? ( dev-db/unixODBC ) ssl? ( - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl ) + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) )" - DEPEND="${COMMON_DEPEND}" # bind-tools is needed because the osql script calls "host". @@ -48,15 +46,23 @@ REQUIRED_USE="?? ( iodbc odbc )" S="${WORKDIR}/${MY_PN}.${PV}" src_configure() { - local myconf=( $(use_with iodbc) ) - myconf+=( $(use_with odbc unixodbc "${EPREFIX}/usr") ) - myconf+=( $(use_enable iconv libiconv) ) - myconf+=( $(use_with iconv libiconv-prefix "${EPREFIX}/usr") ) - myconf+=( $(use_enable kerberos krb5) ) - myconf+=( $(use_enable mssql msdblib) ) - myconf+=( $(use_with gnutls) ) - myconf+=( $(use_with ssl openssl "${EPREFIX}/usr") ) - myconf+=( --docdir="/usr/share/doc/${PF}" ) - - econf "${myconf[@]}" + econf \ + --enable-shared \ + $(use_enable iconv libiconv) \ + $(use_enable kerberos krb5) \ + $(use_enable mssql msdblib) \ + $(use_enable static-libs static) \ + $(use_with iodbc) \ + $(use_with odbc unixodbc "${EPREFIX}/usr") \ + $(use_with iconv libiconv-prefix "${EPREFIX}/usr") \ + $(use_with gnutls) \ + $(use_with ssl openssl "${EPREFIX}/usr") +} + +src_install() { + default + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi } diff --git a/dev-db/freetds/metadata.xml b/dev-db/freetds/metadata.xml index 6f49eba8f49..7a38bb90096 100644 --- a/dev-db/freetds/metadata.xml +++ b/dev-db/freetds/metadata.xml @@ -1,5 +1,5 @@ - +