View previous topic :: View next topic |
Author |
Message |
new_item n00b
Joined: 10 Jun 2011 Posts: 20 Location: Poland
|
Posted: Tue Nov 27, 2012 11:16 pm Post subject: [SOLVED] Can I define my own use flag? |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Nov 27, 2012 11:35 pm Post subject: |
|
|
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.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
new_item n00b
Joined: 10 Jun 2011 Posts: 20 Location: Poland
|
Posted: Tue Nov 27, 2012 11:39 pm Post subject: |
|
|
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 |
|
|
|