From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KiDjw-0003w3-C9 for garchives@archives.gentoo.org; Tue, 23 Sep 2008 19:40:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C3D3E0444; Tue, 23 Sep 2008 19:40:03 +0000 (UTC) Received: from tommyserver.de (tommyserver.de [85.14.217.158]) by pigeon.gentoo.org (Postfix) with ESMTP id DEA40E0444 for ; Tue, 23 Sep 2008 19:40:02 +0000 (UTC) Received: from [192.168.178.22] (Q3f19.q.pppool.de [89.53.63.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tommyserver.de (Postfix) with ESMTPSA id DBE71E5ABB8 for ; Tue, 23 Sep 2008 21:39:58 +0200 (CEST) Message-ID: <48D94608.7060805@gentoo.org> Date: Tue, 23 Sep 2008 21:39:52 +0200 From: Thomas Sachau 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] Re: Default src_install for EAPI-2 or following EAPI References: <18646.17986.821510.192980@a1ihome1.kph.uni-mainz.de> <8cd1ed20809211030w74725bb1qd60482d5fa7bfce2@mail.gmail.com> <18646.38777.205043.568794@a1ihome1.kph.uni-mainz.de> <18646.45711.173931.589892@a1ihome1.kph.uni-mainz.de> In-Reply-To: <18646.45711.173931.589892@a1ihome1.kph.uni-mainz.de> X-Enigmail-Version: 0.95.7 OpenPGP: id=211CA2D4 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig4A56AA8C229BA78CE7DF082B" X-Archives-Salt: b4960e07-b760-4347-ac23-fda465e64302 X-Archives-Hash: a3ba8a335f1852611aeaf477747b4e3a This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4A56AA8C229BA78CE7DF082B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ulrich Mueller schrieb: >>>>>> On Sun, 21 Sep 2008, Steve Long wrote: >=20 >> That works for that specific case, yes, but it's still not a general >> solution, which is what BASH arrays were invented for. For instance, >> an ebuild author cannot specifically include a file with spaces, and >> ignore all the other files in the same directory. >=20 > The better solution would be to rename a such strange files ... > How about an "edetox"? ;-) >=20 > And I still don't see why we would need the most general solution for > a *default* function. There's always the possibility to write your own > src_install() for the few ebuilds that need it. >=20 > Ulrich >=20 >=20 I aggree with Ulrich in this case. This is just a suggestion for a defaul= t src_install funcion, nothing that should cover every possible case. So if you have some specia= l DOC that does not work with the default install, you can still do it the normal way. So my sugge= stion for a default src_install: default_src_install() { if [ -f Makefile -o -f GNUmakefile -o -f makefile ]; then if emake DESTDIR=3D"${D} install || einstall ; then die "install failed" else if [[ -n ${DOCS} ]]; then dodoc ${DOCS} || die "dodoc failed" fi fi fi } Any more comments? Good? Bad? Interested? --------------enig4A56AA8C229BA78CE7DF082B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iJwEAQEKAAYFAkjZRg4ACgkQG7kqcTWJkGcUhAP/VeNCsx3Uu4J19Bq+BoQJTSQv UjLpFXmdJX/VrR6RlENN5Jqc8wBYdirdjXbo0kfdZOi3KkkL3zigrn7krwmbBCoa j2q1r577L/H7srnR/GCIyPaAMM4wYEN/DW2CD+Iy+C5cSwUK7V6zJcFH9DVx9cFL l/gZQaaP80aErVloBs4= =qN80 -----END PGP SIGNATURE----- --------------enig4A56AA8C229BA78CE7DF082B--