Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Announcement of The G Palmtop Environment ebuilds
Date: Wed, 04 Feb 2009 16:35:33
Message-Id: 4989C3FF.2040801@gentoo.org
In Reply to: Re: [gentoo-dev] Announcement of The G Palmtop Environment ebuilds by Angelo Arrifano
1 Angelo Arrifano wrote:
2 >
3 > # Copyright 2008 Gentoo Foundation
4 > # Distributed under the terms of the GNU General Public License v2
5 > # $Header: $
6 > #
7 > # Authors:
8 > # Rene Wagner <rw@×××××××××.org>
9 > # Ned Ludd <solar@g.o>
10 > # Angelo Arrifano <miknix@g.o>
11 >
12
13 Should use eclass-manpages syntax.
14
15 >
16 > # GPE ECLASS
17 > #GPECONF="" # extra configure opts passed to econf
18 > ELTCONF="" # extra options passed to elibtoolize
19 > DOCS="" # documentation files to be installed with dodoc
20 >
21
22 If other eclass that comes before in the inherit hierarchy and sets
23 DOCS, do we want to override it?
24
25 > [ -z "${GPE_MIRROR}" ] && export GPE_MIRROR="http://gpe.linuxtogo.org/download/source"
26 >
27 > [ -z "${GPE_TARBALL_SUFFIX}" ] && export GPE_TARBALL_SUFFIX="gz"
28 >
29
30 Is there a binary called that makes use of those two?
31
32 >
33 > IUSE="${IUSE} nls"
34 >
35
36 This is the first use of IUSE in the eclass so there is nothing to
37 append to.
38
39 >
40 > gpe_src_configure() {
41 > tc-export CC
42 > if [ -f configure ]; then
43 > elibtoolize ${ELTCONF}
44 > econf "$@" ${GPECONF} || die "./configure failure"
45 > fi
46 > }
47 >
48
49 Ebuilds/Eclasses should use [[ instead of [ and econf dies on it's own
50 any way.
51
52
53 > gpe_src_install() {
54 > USE_NLS=yes
55 > use nls || USE_NLS=no
56 >
57
58 I don't see USE_NLS used outside install so it should be local and
59 written in lower case.
60
61 > if [ -f configure ]; then
62 > einstall "$@"
63 > else
64
65 If you really need to use einstall, it would be best to add a comment
66 about why it's needed.
67
68 > make DESTDIR=${D} PREFIX=/usr \
69 > STRIP=true ENABLE_NLS=${USE_NLS} \
70 > "$@" install
71 > fi
72 >
73
74 Should use emake. Stripping should be left to the package manager.
75
76 > # manual document installation
77 > [ -n "${DOCS}" ] && dodoc ${DOCS}
78 >
79 > }
80 >
81
82 dodoc should have || die with it
83
84 >
85 > EXPORT_FUNCTIONS src_compile src_install src_unpack
86 >
87
88 Never exports configure for EAPI 2.
89
90 Regards,
91 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies