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 C0BD7138330 for ; Sun, 28 Aug 2016 10:15:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C715E09AF; Sun, 28 Aug 2016 10:15:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1EE7E09AF for ; Sun, 28 Aug 2016 10:15:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71E01340931 for ; Sun, 28 Aug 2016 10:15:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 815002455 for ; Sun, 28 Aug 2016 10:15:48 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1472378826.95a1695e64712a04803da953303d69cd1a9fe75d.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libetpan/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libetpan/libetpan-1.7.2-r1.ebuild X-VCS-Directories: net-libs/libetpan/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 95a1695e64712a04803da953303d69cd1a9fe75d X-VCS-Branch: master Date: Sun, 28 Aug 2016 10:15:48 +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: 1a66018e-a260-456f-b67f-6e04498b5b15 X-Archives-Hash: 317f106ce97beba67781d92888024608 commit: 95a1695e64712a04803da953303d69cd1a9fe75d Author: Pacho Ramos gentoo org> AuthorDate: Sun Aug 28 10:07:06 2016 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Aug 28 10:07:06 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a1695e net-libs/libetpan: Support libressl (#565266 by Marek Behun) Package-Manager: portage-2.3.0 net-libs/libetpan/libetpan-1.7.2-r1.ebuild | 83 ++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/net-libs/libetpan/libetpan-1.7.2-r1.ebuild b/net-libs/libetpan/libetpan-1.7.2-r1.ebuild new file mode 100644 index 00000000..71b7245 --- /dev/null +++ b/net-libs/libetpan/libetpan-1.7.2-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit autotools eutils + +DESCRIPTION="A portable, efficient middleware for different kinds of mail access" +HOMEPAGE="http://libetpan.sourceforge.net/" +SRC_URI="https://github.com/dinhviethoa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="berkdb debug gnutls ipv6 liblockfile libressl sasl ssl static-libs" + +DEPEND="berkdb? ( sys-libs/db:= ) + ssl? ( + gnutls? ( net-libs/gnutls:= ) + !gnutls? ( ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) ) + ) + sasl? ( dev-libs/cyrus-sasl:2 ) + liblockfile? ( net-libs/liblockfile )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0-nonnull.patch +) + +pkg_setup() { + if use gnutls && ! use ssl ; then + ewarn "You have \"gnutls\" USE flag enabled but \"ssl\" USE flag disabled!" + ewarn "No ssl support will be available in ${PN}." + fi +} + +src_prepare() { + default + + sed -i \ + -e "s/-O2 -g//" \ + configure.ac + + eautoreconf +} + +src_configure() { + local sslconf + + if use ssl; then + if use gnutls; then + sslconf="--with-gnutls --without-openssl" + else + sslconf="--without-gnutls --with-openssl" + fi + else + sslconf="--without-gnutls --without-openssl" + fi + + # in Prefix emake uses SHELL=${BASH}, export CONFIG_SHELL to the same so + # libtool recognises it as valid shell (bug #300211) + use prefix && export CONFIG_SHELL=${BASH} + # The configure script contains an error, in that it doesn't check the + # argument of --enable-{debug,optim}, hence --disable-debug results in + # --enable-debug=no, which isn't checked and debugging flags are blindly + # injected. So, avoid passing --disable-debug when we don't need it. + econf \ + $(usex debug '--enable-debug' '') \ + $(use_enable berkdb db) \ + $(use_with sasl) \ + $(use_enable ipv6) \ + $(use_enable liblockfile lockfile) \ + $(use_enable static-libs static) \ + ${sslconf} +} + +src_install() { + default + use static-libs || prune_libtool_files --all +}