gentoo-haskell / hackport

A command line tool to generate Gentoo ebuilds from Hackage packages.
GNU General Public License v3.0
52 stars 21 forks source link

Support USE flags with inverted logic #123

Open devurandom opened 3 years ago

devurandom commented 3 years ago

dev-haskell/hledger-web supports the library-only useflag:

❯ q use -eD library-only
dev-haskell/hledger-web[library-only] Build for use with "yesod devel"

This appears to have a similar effect as the more popular useflag executable:

❯ q use -eD executable
dev-haskell/bytedump[executable] build executable file
dev-haskell/cpu[executable] build 'cpuid' tool
dev-haskell/highlighting-kate[executable] Build the Highlight executable.
dev-haskell/language-dot[executable] Build the `ppdot' executable
dev-haskell/skylighting[executable] Build the skylighting executable.
dev-haskell/skylighting-core[executable] Build the skylighting executable.
dev-haskell/texmath[executable] Compile test executable.
dev-haskell/zip-archive[executable] Build the Zip executable.
dev-php/agavi[executable] Install the "agavi" executable used to manage projects. This requires dev-php/phing, and may be omitted if you are (for example) deploying an existing site to a production server.
dev-haskell/bench-show[executable] Build executable as well as library
dev-haskell/bytedump[executable] build executable file
dev-haskell/citeproc[executable] Build citeproc executable
dev-haskell/cpu[executable] build 'cpuid' tool
dev-haskell/highlighter[executable] Install a "highlighter" executable
dev-haskell/highlighting-kate[executable] Build the Highlight executable.
dev-haskell/language-dot[executable] Build the `ppdot' executable
dev-haskell/skylighting[executable] Whether to build the skylighting program
dev-haskell/skylighting-core[executable] Build skylighting-extract tool
dev-haskell/texmath[executable] Compile test executable.
dev-haskell/zip-archive[executable] Build the Zip executable.

It would be nice if the useflags could be unified.

See-also: https://bugs.gentoo.org/show_bug.cgi?id=762256 See-also: https://bugs.gentoo.org/show_bug.cgi?id=762259

ezzieyguywuf commented 3 years ago

I agree with this thinking.

@trofi would you consider a PR to hackport that makes this change?

trofi commented 3 years ago

Yes, that would be a useful hackport extension. https://bugs.gentoo.org/762256#c1 has some thoughts.

ezzieyguywuf commented 3 years ago

I was thinking the same thing about flag inversions.

I may pick this up after the quickcheck and aeson projects, if someone else doesn't get to it first.

El mié., 30 de diciembre de 2020 11:51 a. m., Sergei Trofimovich < notifications@github.com> escribió:

Yes, that would be a useful hackport extension. https://bugs.gentoo.org/762256#c1 has some thoughts.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gentoo-haskell/hackport/issues/123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMB5A2DGD5IEDIK6R2DDLSXNLBPANCNFSM4VNWEVIA .