Bug 42889 - New ebuild for GPSIM 0.21.2
|
Bug#:
42889
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: dev-embedded@gentoo.org
|
Reported By: l@lwithers.me.uk
|
|
Component: Ebuilds
|
|
|
URL:
http://www.dattalo.com/gnupic/gpsim.html
|
|
Summary: New ebuild for GPSIM 0.21.2
|
|
Keywords: EBUILD
|
|
Status Whiteboard:
|
|
Opened: 2004-02-25 06:57 0000
|
This is a new ebuild for dev-embedded/gpsim-0.21.2. It has one local use flag,
``gui'', which is used to enable the GUI interface (since it can be built as a
pure commandline app). It also listens to the global ``gtk2'' flag -- but if
this flag is enabled, it requires a CVS snapshot of GTK+Extra (see bug 42888
for an ebuild I just submitted for that).
Created an attachment (id=26887) [details]
gpsim-0.21.2.ebuild
Here's my version - The changes from the orig are:
removed gui use flag - I didn't think "gui" and "gtk2" could be used separtaely
although I could be wrong. If this is the case I'll use "X" rather than "gui".
Looking at the gtk2 def if says to use gtk2 when there is a choise of the two.
Changed it to gtk otherwise spanky will be harrassing me.
Added a few more depends.
In the nongui mode is >=x11-libs/gtk+extra-0.99.17 needed? Maybe i missread it.
Awaiting resolution of bug 42888 before completion.
Created an attachment (id=26897) [details]
Ebuild for gpsim-0.21.2
There is actually a choice as to whether GTK+ or GTK+2 is used, so the
GTK2 use flag should stay. But I think you're right about using an X flag
instead of a gui flag. So to that end, I've attached a slightly revised
ebuild which uses the GTK2 flag and the X flag.
Thanks for the update. I going to put a nested dependancy around the !gtk2 so
that it is.
X? ( !gtk2? ( >=x11-libs/gtk+-1.2.0 ) )
X? ( !gtk2? ( =x11-libs/pango-1* ) )
This is allowed since portage-2.0.50 (which I *may* add as a dependancy).
This is so USE="-X -gtk2" doesn't depend on these libs. Note full package name
too. Make sence? Anyhow in the mean time I just waiting on bug #42888 to be
commited.
Just out of curiosity, what is flag-o-matic doing in this ebuild?
Also, this line:
!gtk2? ( >= gtk+-1.2.0 )
Should probably be:
!gtk2? ( >=gtk+-1.2.0 )
Finally, if you ask me, I think the 'gtk2' flag should be dropped for this revision, so people can *use* the new gpsim without changing USE flags.
If GTK+Extra ever does get released, a new revision of the ebuild can be sent out.
Other than that, the package compiles fine, though it runs a bit more unstable than the previous version.
all those lines should be 'x11-libs/gtk+' ... using incomplete atoms is always
wrong
neither eutils or flag-o-matic is needed by this ebuild ...
Slightly updated the ebuild, so now it:
- has an "X" use flag instead of anything else,
- doesn't use GTK+2 at all (so this ebuild no longer depends on bug 42888),
- doesn't have incomplete atoms,
- adds a "doc" use flag which converts the LyX documentation into PDF.
The new ebuild gives a sandbox access violation when I'm building the docs.
Does anybody have any idea on how to get around this?
Created an attachment (id=33538) [details]
Ebuild for dev-embedded/gpsim-0.21.2
Updated ebuild which now uses prebuilt documentation rather than relying on
lyx. The docs are only pulled down if the doc use flag is on. Thanks to
puggy for hosting this.