Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add options in time to build the package #4

Closed
gutierri opened this issue Dec 24, 2015 · 3 comments
Closed

add options in time to build the package #4

gutierri opened this issue Dec 24, 2015 · 3 comments

Comments

@gutierri
Copy link
Contributor

Example
winbrew install vim --options optimize=MAXSPEED features=HUGE
(It's just an example, we can think of something better)

Or as the AUR of Arch Linux, which allows you to edit the build file

@mfichman
Copy link
Owner

WinBrew already supports per-package command line switches. See here for an example:

https://github.com/mfichman/winbrew/blob/master/formula/sfml.py#L10
https://github.com/mfichman/winbrew/blob/master/formula/sfml.py#L16

Basically, you use Formula.options to indicate that there is an option in the install function, and read the option via Formula.option. Then, you specify the option on the command line after the package name. Example:

winbrew install sfml --build-examples

If you think this is sufficient for your use-case, then I'll close the bug. Otherwise, we can discuss an alternative plan.

@mfichman
Copy link
Owner

BTW, thanks for the feedback!

@gutierri
Copy link
Contributor Author

We can keep as is :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants