From owner-freebsd-gnome Mon Jan 21 2:28:47 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id 1F09D37B437 for ; Mon, 21 Jan 2002 02:28:28 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id MAA46326; Mon, 21 Jan 2002 12:28:08 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (h13.229.dialup.iptcom.net [212.9.229.13]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id MAA03026; Mon, 21 Jan 2002 12:28:04 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g0LAQXc12798; Mon, 21 Jan 2002 12:26:33 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3C4BED10.725FFBD3@FreeBSD.org> Date: Mon, 21 Jan 2002 12:27:28 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Joe Clarke Cc: Glenn Johnson , freebsd-gnome@FreeBSD.org Subject: Re: dependency question References: <20020120205118.GA447@gforce.johnson.home> <1011565282.28534.22.camel@shumai.marcuscom.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joe Clarke wrote: > > On Sun, 2002-01-20 at 15:51, Glenn Johnson wrote: > > This is probably a rather basic question but since I could not find an > > archive for the gnome list I have to ask. > > > > I have a port that I am working on that requires gtkhtml, gal, and > > gnomeprint. Now, if I am not mistaken, none of these are pulled in as > > dependencies in the gnome meta port but are pulled in as dependencies > > of ports that are called as part of the gnome meta port. The port in > > question uses the gnome environment and links in many gnome libraries. > > Also, configure calls gnome-config, which is from gnomelibs. I would > > like to use the USE_GNOME make variable in the port Makefile and my > > question is, do I need to explicitly include any of gtkhtml, gal, or > > gnomeprint as dependencies or is USE_GNOME sufficient? > > USE_GNOME will import what you need except for gnomeprint. If your port > doesn't need bonobo, you'll have to LIB_DEPENDS gnomeprint. USE_GNOME > will take care of environment for you as well. There is another consideration, namely the problem with shared directories under ${PREFIX}/share/gnome. Most GNOME packages use them extensively to store their .desktop files, pixmaps, .omf files, help files and so on, so that the dependencies should be constructed in a way that ensures that a package that installs file(s) into shared directory will be deleted before a package which "owns" that directory (i.e. has an appropriate @dirrm in its pkg-plist). Since most of GNOME ports install their shortcuts into menu directory owned by gnomecore all you should do it to define USE_GNOME. There is even a tool called ports/Tools/scripts/gnomedepends.py, which inspects your port's pkg-plist and tells you which packages should be put into its dependency chain to warrant correct removal of shared dirts. -Maxim P.S. Joe, please consider refining this explanation and turn it into another para in our FAQ. Tnx. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message