From owner-cvs-ports@FreeBSD.ORG Mon Jul 7 04:17:47 2008 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB4AB1065670; Mon, 7 Jul 2008 04:17:47 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao103.cox.net (eastrmmtao103.cox.net [68.230.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id 4A7618FC12; Mon, 7 Jul 2008 04:17:46 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080707041746.DJCI22820.eastrmmtao103.cox.net@eastrmimpo01.cox.net>; Mon, 7 Jul 2008 00:17:46 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id msHl1Z0024iy4EG02sHl3d; Mon, 07 Jul 2008 00:17:46 -0400 Date: Sun, 06 Jul 2008 23:20:23 -0500 To: "Philip M. Gollucci" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200807070327.m673RjkZ043671@repoman.freebsd.org> <4871911E.1080700@p6m7g8.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <4871911E.1080700@p6m7g8.com> User-Agent: Opera Mail/9.51 (Linux) 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 ... X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 04:17:47 -0000 On Sun, 06 Jul 2008 22:44:30 -0500, Philip M. Gollucci 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