Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jul 2008 23:20:23 -0500
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Philip M. Gollucci" <pgollucci@p6m7g8.com>
Cc:        cvs-ports@freebsd.org, cvs-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: cvs commit: ports/devel/ruby-glib2 Makefile pkg-plist ports/accessibility/ruby-atk Makefile ports/x11-toolkits/ruby-pango Makefile pkg-plist ports/graphics/ruby-gdk_pixbuf2 Makefile pkg-plist ports/x11-toolkits/ruby-gtk2 Makefile pkg-plist ...
Message-ID:  <op.udwmb9uy9aq2h7@mezz.mezzweb.com>
In-Reply-To: <4871911E.1080700@p6m7g8.com>
References:  <200807070327.m673RjkZ043671@repoman.freebsd.org> <4871911E.1080700@p6m7g8.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 06 Jul 2008 22:44:30 -0500, Philip M. Gollucci  
<pgollucci@p6m7g8.com> 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


-- 
mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.udwmb9uy9aq2h7>