On Friday 06 October 2006 13:08, Hans-Werner Hilse wrote: > > I'd like to install an experimental package with a different prefix, > > say /usr/local/test > > What should I write into the ebuild file? > > I don't think the ROOT environment variable when emerging is what you > want. I think you can just append "--prefix=/usr/local/test" to the > call to "econf". All of this assumes usage of autoconf, of course. > Another common approach is to set DESTDIR to ${D}/usr/local/test for > "make install". > > See > http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
Probably a better a reference is [1]. I'm not sure why you don't think he wants the ROOT var. Also ${D} isn't where it's going to be installed to (in the ebuild qmerge sense - see `man ebuild'). It's where the image is going to be installed (the ebuild install sense - again see `man ebuild`). Also it's a var to be used internally in the ebuild only (which I assume you know). If I am correct about what he wants then the point is that there is no need to edit the ebuild file (otherwise it's a bug). [1] http://dev.gentoo.org/~plasmaroo/devmanual//ebuild-writing/variables/ -- Bo Andresen
pgp1eUdUosAEV.pgp
Description: PGP signature