Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] splitting cvs spells

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] splitting cvs spells
  • Date: Sat, 7 Oct 2006 11:22:08 -0700

On Sat, Oct 07, 2006 at 02:27:24PM +0200, Flavien Bridault wrote:
> Le samedi 07 octobre 2006 à 14:12 +0500, Alexander Tsamutali a écrit :
> > > The force_depends would be conditional upon the gtk+ version. So it
> > > wouldn't force recompilation unless the version is different. "version
> > > is different" of course could be defined as "major version bump" so
> > > minor version bumps would not force recompilation. Spells have a pretty
> > > wide range of freedom over how they use an interface. Please consider
> > > the possibilities more carefully.
> >
> > You mean something like:
> >
> > depends gtk+2
> > if installed_version gtk+2 <= 2.16 ; then
> > force_depends gtk+2
> > fi
> >
> > Yes that is what i want, but IMHO it would be better to put this code
> > into sorcery, not in spell.
> That's not necessary to modify sorcery for this, a function in
> libgrimoire is more appropriate, right Andrew ?

Yep, in the grimoire FUNCTIONS file, or some other grimoire library
for common DEPENDS stuff. (libgrimoire is actually a sorcery file,
but i know what you meant).


--
_________________________________________________________________________
| Andrew D. Stitt | acedit at armory.com | astitt at sourcemage.org |
| irc: afrayedknot | Sorcery Team Lead | ftp://t.armory.com/ |
| 1024D/D39B096C | 76E4 728A 04EE 62B2 A09A 96D7 4D9E 239B D39B 096C |
-------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page