Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 368510 Details for
Bug 498988
eutils.eclass: optfeature function
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eutils_add_optfeature_v2.patch
eutils_add_optfeature.patch (text/plain), 1006 bytes, created by
Chris Reffett (RETIRED)
on 2014-01-23 04:30:53 UTC
(
hide
)
Description:
eutils_add_optfeature_v2.patch
Filename:
MIME Type:
Creator:
Chris Reffett (RETIRED)
Created:
2014-01-23 04:30:53 UTC
Size:
1006 bytes
patch
obsolete
>--- eutils.eclass 2014-01-22 20:55:21.822523248 -0500 >+++ eutils.eclass.patched 2014-01-22 23:29:11.107816951 -0500 >@@ -1729,4 +1729,35 @@ > > check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; } > >+# @FUNCTION: optfeature >+# @USAGE: <short description> <package atom to match> [other atoms] >+# @DESCRIPTION: >+# Print out a message suggesting an optional package (or packages) which >+# provide the described functionality >+# >+# The following snippet would suggest app-misc/foo for optional foo support, >+# and app-misc/bar or app-misc/baz[bar] for optional bar support. >+# @CODE: >+# optfeature "foo support" app-misc/foo >+# optfeature "bar support" app-misc/bar app-misc/baz[bar] >+# >+optfeature() { >+ debug-print-function ${FUNCNAME} "$@" >+ local i >+ local desc=$1 >+ local flag=0 >+ shift >+ for i; do >+ if has_version "$i"; then >+ flag=1 >+ break >+ fi >+ done >+ if [[ $flag -eq 0 ]]; then >+ for i in "$@"; do >+ elog " $i for ${desc}" >+ done >+ fi >+} >+ > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 498988
:
368498
|
368506
|
368508
|
368510
|
368514
|
368516
|
368518