From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-843235-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 4C04513888F
	for <garchives@archives.gentoo.org>; Sat, 31 Oct 2015 01:27:14 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B4225E0853;
	Sat, 31 Oct 2015 01:27:10 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4DCDEE0851
	for <gentoo-commits@lists.gentoo.org>; Sat, 31 Oct 2015 01:27:10 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E6C89340B90
	for <gentoo-commits@lists.gentoo.org>; Sat, 31 Oct 2015 01:27:08 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 24A011B95
	for <gentoo-commits@lists.gentoo.org>; Sat, 31 Oct 2015 01:27:06 +0000 (UTC)
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org>
Message-ID: <1446254799.ff621f037fa0134b97c78d42f3dff2dc965716c0.vapier@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libevent/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-libs/libevent/libevent-2.1.5-r4.ebuild dev-libs/libevent/libevent-9999.ebuild
X-VCS-Directories: dev-libs/libevent/
X-VCS-Committer: vapier
X-VCS-Committer-Name: Mike Frysinger
X-VCS-Revision: ff621f037fa0134b97c78d42f3dff2dc965716c0
X-VCS-Branch: master
Date: Sat, 31 Oct 2015 01:27:06 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: f0e45581-9bee-4be3-a53d-2a22c10a8c25
X-Archives-Hash: 53ebd8a4d147f12b86421ac046fba327

commit:     ff621f037fa0134b97c78d42f3dff2dc965716c0
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 31 01:20:51 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Oct 31 01:26:39 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff621f03

dev-libs/libevent: use configure flags to disable samples/tests

We don't want to spend time compiling things that we aren't going to
use, so pass configure flags to disable them.

 dev-libs/libevent/libevent-2.1.5-r4.ebuild | 5 ++---
 dev-libs/libevent/libevent-9999.ebuild     | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-libs/libevent/libevent-2.1.5-r4.ebuild b/dev-libs/libevent/libevent-2.1.5-r4.ebuild
index 16300fc..4df26f2 100644
--- a/dev-libs/libevent/libevent-2.1.5-r4.ebuild
+++ b/dev-libs/libevent/libevent-2.1.5-r4.ebuild
@@ -37,9 +37,6 @@ S=${WORKDIR}/${MY_P}
 src_prepare() {
 	elibtoolize
 	epatch "${FILESDIR}/${PN}-2.1.5-event_signals_ordering.patch"
-	# don't waste time building tests
-	# https://github.com/libevent/libevent/pull/144
-	sed -i -e '/^all:/s|tests||g' Makefile.nmake || die
 }
 
 multilib_src_configure() {
@@ -48,10 +45,12 @@ multilib_src_configure() {
 
 	ECONF_SOURCE="${S}" \
 	econf \
+		--disable-samples \
 		$(use_enable debug debug-mode) \
 		$(use_enable debug malloc-replacement) \
 		$(use_enable ssl openssl) \
 		$(use_enable static-libs static) \
+		$(use_enable test libevent-regress) \
 		$(use_enable threads thread-support)
 }
 

diff --git a/dev-libs/libevent/libevent-9999.ebuild b/dev-libs/libevent/libevent-9999.ebuild
index 179af26..c807cd3 100644
--- a/dev-libs/libevent/libevent-9999.ebuild
+++ b/dev-libs/libevent/libevent-9999.ebuild
@@ -30,9 +30,6 @@ MULTILIB_WRAPPED_HEADERS=(
 
 src_prepare() {
 	eautoreconf
-	# don't waste time building tests
-	# https://github.com/libevent/libevent/pull/144
-	sed -i -e '/^all:/s|tests||g' Makefile.nmake || die
 }
 
 multilib_src_configure() {
@@ -41,10 +38,12 @@ multilib_src_configure() {
 
 	ECONF_SOURCE="${S}" \
 	econf \
+		--disable-samples \
 		$(use_enable debug debug-mode) \
 		$(use_enable debug malloc-replacement) \
 		$(use_enable ssl openssl) \
 		$(use_enable static-libs static) \
+		$(use_enable test libevent-regress) \
 		$(use_enable threads thread-support)
 }