Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ebuild-fragen: IUSE vs. RDEPEND
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Thu Mar 24, 2005 1:35 pm    Post subject: [solved] ebuild-fragen: IUSE vs. RDEPEND Reply with quote

Ich habe, wie vielleicht schon bekannt, für nerolinux ein ebuild gechrieben.
jetzt wurde vorgeschlagen (https://bugs.gentoo.org/show_bug.cgi?id=85503#c5) use-flags für das encoding/decoding zeugs einzuführen, was ungefähr so aussehen würde:
Code:
IUSE="mpg123 oggvorbis shorten"
RDEPEND="x11-libs/gtk+
    media-sound/shorten
    media-sound/mpg123
    media-sound/vorbis-tools"

ist natürlich etwas blöd, weil es a) keine use-flags "mpg123" und "shorten" gibt und b) die 3 letzten zusatzprogramme nur dann emerged werden sollen, wenn die use-flags entsprechend gesetzt sind.

wie löse ich das jetzt am besten?
thx equi


EDIT: s. https://bugs.gentoo.org/show_bug.cgi?id=85503#c6
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel


Last edited by equinox0r on Thu Mar 24, 2005 2:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2937
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Thu Mar 24, 2005 2:17 pm    Post subject: Reply with quote

USE Falgs, die es nicht gibt und in IUSE gesetzt werden, werden "erstellt".

Code:

IUSE="mpg123 oggvorbis shorten"
RDEPEND="x11-libs/gtk+
    shorten? ( media-sound/shorten )
    mpg123? ( media-sound/mpg123 )
   oggvorbis? ( media-sound/vorbis-tools )"


mehr infos dazu: man 5 ebuild
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Mar 24, 2005 2:17 pm    Post subject: Reply with quote

Wie wäre es damit?
Code:
IUSE="mp3 oggvorbis shorten"
RDEPEND="x11-libs/gtk+
     shorten? ( media-sound/shorten )
     mp3? ( virtual/mpg123 )
     oggvorbis? ( media-sound/vorbis-tools )"


virtual/mpg123 aber nur, wenn es auch mit mpg321 funktioniert, sonst halt media-sound.
shorten wäre damit ein neues lokales USE flag.
Back to top
View user's profile Send private message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Thu Mar 24, 2005 2:19 pm    Post subject: Reply with quote

Earthwings wrote:
Wie wäre es damit?
Code:
IUSE="mp3 oggvorbis shorten"
RDEPEND="x11-libs/gtk+
     shorten? ( media-sound/shorten )
     mp3? ( virtual/mpg123 )
     oggvorbis? ( media-sound/vorbis-tools )"


virtual/mpg123 aber nur, wenn es auch mit mpg321 funktioniert, sonst halt media-sound.
shorten wäre damit ein neues lokales USE flag.


so ähnlich hab ich das jetzt gemacht, allerdings mit media-sound/mpg123.

thx an alle :)
_________________
AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum