From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Nnckn-0006NK-PA for garchives@archives.gentoo.org; Fri, 05 Mar 2010 19:00:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B1B8E0B70; Fri, 5 Mar 2010 19:00:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B3EC2E0B4F for ; Fri, 5 Mar 2010 18:59:59 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 463641B400C for ; Fri, 5 Mar 2010 18:59:59 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] [rfc] making autotools.eclass depends flexible Date: Fri, 5 Mar 2010 13:59:58 -0500 User-Agent: KMail/1.13.0 (Linux/2.6.32.6; KDE/4.4.0; x86_64; ; ) 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 Content-Type: multipart/signed; boundary="nextPart17141494.9f9KbZgmp9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201003051359.58724.vapier@gentoo.org> X-Archives-Salt: 19111c81-1bb1-46f7-9837-ab2a811eb02f X-Archives-Hash: 043bff92c8a544a535fa1517317e3ec0 --nextPart17141494.9f9KbZgmp9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable sometimes i have optional patches (ignoring the "patches should always be applied") where autotools should be run. always inheriting autotools is currently annoying because it always adds the related dependencies. USE ba= sed inherits are obviously out. so unless there's some burgeoning standard i'm not aware of, below is what i have in mind. packages set AUTOTOOLS_AUTO_DEPEND to "no" before inheriting autotools.eclass and that allows them to put ${AUTOTOOLS_DEPEND} behind a U= SE flag in their own DEPEND string. =2D-- autotools.eclass 8 Feb 2010 11:04:01 -0000 1.92 +++ autotools.eclass 5 Mar 2010 18:09:54 -0000 @@ -46,10 +46,20 @@ if [[ -n ${WANT_AUTOCONF} ]] ; then esac export WANT_AUTOCONF fi =2DDEPEND=3D"${_automake_atom} =2D ${_autoconf_atom}" =2D[[ ${CATEGORY}/${PN} !=3D "sys-devel/libtool" ]] && DEPEND=3D"${DEPEND} = >=3Dsys-devel/libtool-2.2.6b" + +AUTOTOOLS_DEPEND=3D"${_automake_atom} ${_autoconf_atom}" +[[ ${CATEGORY}/${PN} !=3D "sys-devel/libtool" ]] && AUTOTOOLS_DEPEND=3D"${= AUTOTOOLS_DEPEND}=20 >=3Dsys-devel/libtool-2.2.6b" RDEPEND=3D"" + +# @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND +# @DESCRIPTION: +# Set to 'no' to disable automatically adding to DEPEND. This lets +# ebuilds former conditional depends by using ${AUTOTOOLS_DEPEND} in +# their own DEPEND string. +if [[ ${AUTOTOOLS_AUTO_DEPEND} !=3D "no" ]] ; then + DEPEND=3D${AUTOTOOLS_AUTO_DEPEND} +fi + unset _automake_atom _autoconf_atom =20 # @ECLASS-VARIABLE: AM_OPTS =2Dmike --nextPart17141494.9f9KbZgmp9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJLkVSuAAoJEEFjO5/oN/WBMpgP/iIBG+7YQy42Af6jO9nd6hOy q5hY+A/NgNuyD/qAX7+IjIVZGvejAeJvyQJB6vbu6wpu/EXJNhO+5C9MklWjsf6z yVwyXeeDTzk+RdEKgVm1pXeIj7z8Wn6rwXgaCaYw59mAlBDquatG/N1FekrTvBfs x+jBHFwdy/rvjBmo5TRp/+tCGBt79x0OhXSN/Meyjtzdsz0Uy6CIYQDdZyLT4wB3 8+JkwUsPhkYPxfzczGZxfjhC6/Ydk5ZuWPj7oiI5Zsujs6o6zYbMwv81GTsr6yBl AbVn4g1oKaT6JLxpVYrqJqt82RA4azOtLp9qNzL8/0LI++muSprSMkWVucY5u8SM ArT0UIEtNUx7WuJCMTc/Srw5GJgkNzMQJAsZNdXBj9Nwv2fyI0///DQKj9sP5Ygt aGM4eVVCS+6kzyv+4szVU1Jm9GHFPY2B9XIFcihla9A0WgiJfR3svgJBzOc5HU1d bcx5erIG7UIwV5pomeJd086GXhKukC0Du8DQDyq5T0EUYUPcO5MOUrHdSDcqV8Fp xMbA9o6zFuM5xLKmKmkvwtjM2tKmmJAM6zmtLekq1MYJ2HxrD1jg7W0pLTTXlX4P 5nwQ5RRU40k9nnAAXe8nOdTMOo28M82xSskzvN2z+aSI49e1yR3O/kBfHTAScV0c kb+ue2JBk0bYixCJ6yZO =IZjb -----END PGP SIGNATURE----- --nextPart17141494.9f9KbZgmp9--