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 954E21396D0 for ; Tue, 22 Aug 2017 13:35:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDEB41FC03E; Tue, 22 Aug 2017 13:35:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 BE3D91FC03E for ; Tue, 22 Aug 2017 13:35:39 +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 E68C8341C4D for ; Tue, 22 Aug 2017 13:35:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8FA6D7EAB for ; Tue, 22 Aug 2017 13:35:36 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1503408922.116b07e701485db5fa044cd13642dbd43809bc9f.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/freetds/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/freetds/freetds-9999.ebuild X-VCS-Directories: dev-db/freetds/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 116b07e701485db5fa044cd13642dbd43809bc9f X-VCS-Branch: master Date: Tue, 22 Aug 2017 13:35:36 +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: 30787e59-846c-482a-b81f-791f6930057b X-Archives-Hash: c3ca84185426fa5bf76addf21f93bc22 commit: 116b07e701485db5fa044cd13642dbd43809bc9f Author: Michael Orlitzky gentoo org> AuthorDate: Tue Aug 22 13:24:38 2017 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Tue Aug 22 13:35:22 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116b07e7 dev-db/freetds: add live ebuild for easy testing of upstream changes. Package-Manager: Portage-2.3.6, Repoman-2.3.1 dev-db/freetds/freetds-9999.ebuild | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/dev-db/freetds/freetds-9999.ebuild b/dev-db/freetds/freetds-9999.ebuild new file mode 100644 index 00000000000..ec6e2cf418f --- /dev/null +++ b/dev-db/freetds/freetds-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools git-r3 + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +EGIT_REPO_URI="https://github.com/FreeTDS/${PN}.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl" +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 ) + iconv? ( virtual/libiconv ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + odbc? ( dev-db/unixODBC ) + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" + +DEPEND="${COMMON_DEPEND}" + +# bind-tools is needed because the osql script calls "host". +# binutils is for "strings". +RDEPEND="${COMMON_DEPEND} + sys-devel/binutils + net-dns/bind-tools" + +# iODBC and unixODBC are mutually-exclusive choices for +# the ODBC driver manager. Future versions of FreeTDS +# will throw an error if you specify both. +REQUIRED_USE="?? ( iodbc odbc )" + +src_prepare() { + default + eautoreconf +} + +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[@]}" +}