Gentoo Archives: gentoo-dev

From: "Tomáš Chvátal" <scarabeus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New eclass for x11 packages
Date: Thu, 18 Feb 2010 23:17:50
Message-Id: 4B7DCA66.3040507@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] New eclass for x11 packages by David Leverton
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Dne 19.2.2010 00:11, David Leverton napsal(a):
5 > On Thursday 18 February 2010 22:33:42 Tomáš Chvátal wrote:
6 >> [[ ${PN} == util-macros ]] || DEPEND+=" >=x11-misc/util-macros-1.3.0"
7 >> [[ ${PN} == font-util ]] || DEPEND+=" >=media-fonts/font-util-1.1.1-r1"
8 >
9 > Do non-fonts really need font-util there? Looks like that sets up a nice
10 > circular dependency.
11 The same dep is in x-modular eclass. I spoted it in some fonts packages
12 as required so i left it there.
13 Good work/idea would be if someone doublecheck that one :]
14
15 >
16 >> [[ -e "./configure.ac" ]] && eautoreconf || ewarn "Unable to autoreconf
17 > the configure script. Things may fail."
18 >
19 > That'll ewarn if configure.ac doesn't exist at all. Doesn't eautoreconf die
20 > anyway if it fails, and if not, is it a good idea for failures to only give a
21 > warning?
22 >
23 That || die is not for eautoreconf
24
25 [[ -e "something" ]] && somethingexists || somethingisnotexisting
26
27 For your behaviour it would have to look like this
28
29 [[ -e "something" ]] && { somethingexists || die if the commands failed ; }
30
31 Tomas
32 -----BEGIN PGP SIGNATURE-----
33 Version: GnuPG v2.0.14 (GNU/Linux)
34 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
35
36 iEYEARECAAYFAkt9ymYACgkQHB6c3gNBRYe5kQCgjpAgHUl7icElBtdAUHTcfPOI
37 wjkAn1CFH/9VxaO9IBnNMlVpLQT60JX+
38 =+A3h
39 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] [RFC] New eclass for x11 packages "Tomáš Chvátal" <scarabeus@g.o>
Re: [gentoo-dev] [RFC] New eclass for x11 packages David Leverton <levertond@××××××××××.com>