Gentoo Archives: gentoo-dev

From: Alastair Tse <liquidx@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] How to fix pathnames in .ebuilds
Date: Thu, 10 Jul 2003 12:40:07
Message-Id: 1057840805.8047.10.camel@huggins.eng.cam.ac.uk
In Reply to: [gentoo-dev] How to fix pathnames in .ebuilds by Martin Lesser
1 On Thu, 2003-07-10 at 13:16, Martin Lesser wrote:
2 > econf() replaces --datadir with /usr/share. When einstall() is called
3 > --datadir is changed to ${D}/usr/share but the depending PIXMAPS_DIR is
4 > not changed to ${D}/usr/share/pixmaps cause it was written to the
5 > Makefiles in the configure step before.
6
7 Do the Makefiles use the variable DESTDIR ? If they do, then use:
8
9 make DESTDIR=${D} install || die "install failed"
10
11 Otherwise, it could be that a particular variable needs to be set in
12 addition to einstall (if you choose to use it). You'll have to delve
13 into the file, find the variable that is set to /usr/share/pixmaps and
14 override it using something like:
15
16 einstall pixmapdir=${D}/usr/share/pixmaps
17
18 > What's the recommended and simplest way to fix such issues? The ebuild
19 > HOWTO did not help me and also the hints in the forums could not help
20 > me.
21
22 The best way of learning is to look at how other ebuilds do it. Maybe
23 someone can write an ebuild FAQ to document all the tricks that are in
24 use :)
25
26 Cheers,
27 --
28 Alastair 'liquidx' Tse
29 >> Gentoo Developer
30 >> http://www.liquidx.net/ | http://dev.gentoo.org/~liquidx/
31 >> GPG Key : http://dev.gentoo.org/~liquidx/liquidx_gentoo_org.asc
32 >> FingerPrint : 579A 9B0E 43E8 0E40 EE93 BB1C 38CE 1C7B 3907 14F6

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] How to fix pathnames in .ebuilds Stanislav Brabec <utx@g.o>