Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can I define my own use flag?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
new_item
n00b
n00b


Joined: 10 Jun 2011
Posts: 20
Location: Poland

PostPosted: Tue Nov 27, 2012 11:16 pm    Post subject: [SOLVED] Can I define my own use flag? Reply with quote

Hello all,

I would like to define my own use flag in overlay, which I am preparing.

Is it possible to define brand new USE flag?

Lets say I have my own program which can use two libraries written by myself. But it is optional.

I would like to define two new USE flags:
use_lib_one
use_lib_two

In which files I have to define it ?

Best regards,
new_item.


Last edited by new_item on Wed Nov 28, 2012 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7840
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Nov 27, 2012 11:35 pm    Post subject: Reply with quote

Just include them in the IUSE variable in the ebuild and then use them within the rest of the ebuild to control the changes in the build process as needed. There's no separate definition required. :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
new_item
n00b
n00b


Joined: 10 Jun 2011
Posts: 20
Location: Poland

PostPosted: Tue Nov 27, 2012 11:39 pm    Post subject: Reply with quote

Thank you very much for your reply.

It was not obvious for me. It's nice that portage is working that way :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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