On Fri, Feb 27, 2009 at 11:59:04AM +0000, Robert Osfield wrote:
> Is this an issue with the published osg gentoo packaging itself?
I added the package in gentoo and made xulrunner dependency optional
> How does gentoo see a dependency like this and go off an automatically
> decide to pull it down and compile it?
The ebuild, that is a file that give instruction to portage (our build
system), have the IUSE variable that govern optional features.
In my case, I have now:
IUSE="xulrunner"
The user can build with USE="xulrunner" or USE="-xulrunner" (There is a
default for that)
The dependency (RUNTIME) are that (I think I miss some):
RDEPEND="virtual/opengl
virtual/glu
net-misc/curl
xulrunner? ( net-libs/xulrunner )
gnome-base/librsvg
media-libs/jpeg
media-libs/giflib
media-libs/tiff
app-text/poppler-bindings"
All dependency are mandatory, except the net-libs/xulrunner that depends
on the setting of the USE variable xulrunner.
During the configure pass I change the parameter passed to cmake taking
into account the setting of xulrunner USE variable. Something like:
mycmakeargs="-DBUILD_OSG_APPLICATIONS=OFF"
mycmakeargs="${mycmakeargs} $(cmake-utils_use_enable xulrunner XUL)"
cmake .. $mycmakeargs
The complete ebuild is at
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-games/openscenegraph/openscenegraph-2.8.0.ebuild?view=markup
In the future I will likely put all optional requirements driven by USE
flags
Alfredo
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org