On Sun, 06 Jul 2008 22:44:30 -0500, Philip M. Gollucci
<[EMAIL PROTECTED]> wrote:
Jeremy Messenger wrote:
- ${RUBY_SITEARCHLIBDIR} ->
${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}
in the *_DEPENDS, that way it will finding correct file when I
tweak the
PREFIX.
I don't quite understand this... Can you elaborate ?
When I install ruby-pango with default prefix, then with ruby-gtk2 I want
to install in different PREFIX for plist stuff. It always annoy me at the
everytime when I update ruby-gtk2/ruby-gnome2 stuff. :-) However, with
this line:
BUILD_DEPENDS=
${RUBY_SITEARCHLIBDIR}/pango.so:${PORTSDIR}/x11-toolkits/ruby-pango
The RUBY_SITEARCHLIBDIR is using PREFIX (_RUBY_SYSLIBDIR?=${PREFIX}/lib)
instead of LOCALBASE, so it will searching for pango.so in incorrect place
and trying to install it. I end up get error of ruby-pango is already
exists. The bsd.python.mk doesn't has that problem by have PYTHON_* (for
LOCALBASE) and PYTHONPREFIX_*.
Before:
----------------------------------------
# cd /usr/ports/x11-toolkits/ruby-gtk2
# make PREFIX=/tmp -V BUILD_DEPENDS
/tmp/lib/ruby/site_ruby/1.8/i386-freebsd7/pango.so:/usr/ports/x11-toolkits/ruby-pango
/usr/local/bin/ruby18:/usr/ports/lang/ruby18
/usr/local/bin/intltool-extract:/usr/ports/textproc/intltool
pkg-config:/usr/ports/devel/pkg-config
----------------------------------------
After:
---------------------------------------
# pwd
/usr/ports/x11-toolkits/ruby-gtk2
# make PREFIX=/tmp -V BUILD_DEPENDS
/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd7/pango.so:/usr/ports/x11-toolkits/ruby-pango
/usr/local/bin/ruby18:/usr/ports/lang/ruby18
/usr/local/bin/intltool-extract:/usr/ports/textproc/intltool
pkg-config:/usr/ports/devel/pkg-config
---------------------------------------
bsd.python.mk
---------------------------------------
# cd /usr/ports/x11-toolkits/py-gtk2
# make PREFIX=/tmp -V BUILD_DEPENDS
/usr/local/lib/python2.5/site-packages/cairo/__init__.py:/usr/ports/graphics/py-cairo
/usr/local/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so:/usr/ports/devel/py-gobject
/usr/local/bin/python2.5:/usr/ports/lang/python25
gmake:/usr/ports/devel/gmake
/usr/local/bin/intltool-extract:/usr/ports/textproc/intltool
pkg-config:/usr/ports/devel/pkg-config
---------------------------------------
I could have done this instead:
BUILD_DEPENDS=
${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}/pango.so
But it's long and ugly. Also, I am lazy. :-)
Cheers,
Mezz
--
[EMAIL PROTECTED] - [EMAIL PROTECTED]
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - [EMAIL PROTECTED]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"