sm-discuss AT lists.ibiblio.org
Subject:
Public SourceMage Discussion List
List archive
- From: Eric Sandall <eric AT sandall.us>
- To: David Haley <khoralin AT gmail.com>
- Cc: SM-Discuss <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] SUB_DEPENDS Questions
- Date: Fri, 27 Aug 2010 13:38:07 -0700
On Aug 24, 2010, at 11:26 AM, David Haley wrote: I have been looking over the DEPENDS, SUB_DEPENDS, and PRE_SUB_DEPENDS that are currently posted on the SMGL website to get information for updating a spell (gnucash) with two sub-dependencies. I wanted to ask and see if what I am thinking needs to be updated in the appropriate spells is correct, or if I am way our in left field somewhere.
In any case I am not going to put all the spell file in their entirety (unless someone wants me to that is) as that would make this a horribly long email. So in anycase on with my example which in this case is:
gnucash needs goffice with gtk+2 support
============= In gnucash/DEPENDS: change 'depends goffice' to 'depends -sub "gtk+2" goffice'
You'll want 'depends -sub "GTK2" goffice' to match your {,PRE_}SUB_DEPENDS below. in goffice/ we create PRE_SUB_DEPENDS and SUB_DEPENDS (assuming they do not already exist)
in goffice/PRE_SUB_DEPENDS add the following: case $THIS_SUB_DEPENDS in GTK2) is_depends_enabled $SPELL gtk+2 && return 0;; esac return 1
in goffice/SUB_DEPENDS add the following: case "$THIS_SUB_DEPENDS" in GTK2) depends sdl_ttf;; *) echo "bogus sub_depends"; return 1;; esac
Why sdl_ttf for gtk+2 support? ==============
Again is this right or am I way off. Based on what I have read so far this is the impression I got of the changes that needed to be made. Am I missing anything? Any input or advise would be greatly appreciated. Just trying to learn how this works :)
You'll also need to add a REPAIR file to update PRE_SUB_DEPENDS in the tablet.
-sandalle
Eric Sandall | Source Mage GNU/Linux Developer |
Archive powered by MHonArc 2.6.24.