From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7274C198005 for ; Sun, 24 Feb 2013 16:42:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02866E0747; Sun, 24 Feb 2013 16:42:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12250E01A3 for ; Sun, 24 Feb 2013 16:42:30 +0000 (UTC) Received: from [192.168.4.5] (blfd-5d82389d.pool.mediaWays.net [93.130.56.157]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hasufell) by smtp.gentoo.org (Postfix) with ESMTPSA id 901C733DD62 for ; Sun, 24 Feb 2013 16:42:29 +0000 (UTC) Message-ID: <512A42F2.10005@gentoo.org> Date: Sun, 24 Feb 2013 17:42:26 +0100 From: hasufell User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130123 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New eclass: autotools-multilib-minimal References: <51296027.705@gentoo.org> <20130224132252.115bc260@gentoo.org> In-Reply-To: <20130224132252.115bc260@gentoo.org> X-Enigmail-Version: 1.5 Content-Type: multipart/mixed; boundary="------------000504090401040903010408" X-Archives-Salt: f1c6aa71-f569-422b-bcfb-46634b4c5c3a X-Archives-Hash: c63b634c5dd44061205fde1849b8401c This is a multi-part message in MIME format. --------------000504090401040903010408 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 02/24/2013 05:22 PM, Alexis Ballier wrote: > On Sun, 24 Feb 2013 01:34:47 +0100 > hasufell wrote: > >> Some people seem to feel uncomfortable with autotools-multilib, >> because it depends on autotools-utils. > > To be honest, I don't particularly like autotools-utils, I tend to > consider it a useless bloat. However, Michal's work on > autotools-multilib is IMHO the right thing to do: If you use the > autotools-utils syntax then it's trivial to support multilib without > useless duplication of code. > I still believe such an eclass as the one you propose is useful, except > it's not for autotools (at best temporary for broken autotools based > build systems): For example, I have no clue how to do multilib with > waf-based build systems without going the 'copy $S and run the usual > src_* phases in each directory for each ABI', which is what your eclass > is abstracting I think. > > A. > I have no idea if it makes sense for this package (since it also installs binaries), but as an example I have converted dev-libs/serd. And yes, a rename of the eclass would probably be appropriate. --------------000504090401040903010408 Content-Type: text/plain; charset=UTF-8; name="serd-0.18.2.ebuild.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="serd-0.18.2.ebuild.diff" --- dev-libs/serd/serd-0.18.2.ebuild +++ dev-libs/serd/serd-0.18.2-r1.ebuild @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/serd/serd-0.18.2.ebuild,v 1.1 2013/01/13 21:08:17 aballier Exp $ -EAPI=4 - -inherit waf-utils +EAPI=5 +AUTOTOOLS_IN_SOURCE_BUILD=1 +inherit waf-utils autotools-multilib-minimal DESCRIPTION="Library for RDF syntax which supports reading and writing Turtle and NTriples" HOMEPAGE="http://drobilla.net/software/serd/" @@ -23,9 +23,10 @@ src_prepare() { sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die + prepabisources } -src_configure() { +multilib_src_configure() { waf-utils_src_configure \ --docdir=/usr/share/doc/${PF} \ $(use test && echo "--test") \ @@ -33,6 +34,14 @@ $(use static-libs && echo "--static") } -src_test() { +multilib_src_test() { ./waf test || die } + +multilib_src_compile() { + waf-utils_src_compile +} + +multilib_src_install() { + waf-utils_src_install +} --------------000504090401040903010408--