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

app-arch/lz4: Add USE=lib-only #22168

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LICENSE="BSD-2 GPL-2"
# https://abi-laboratory.pro/tracker/timeline/lz4/
SLOT="0/r132"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="static-libs"
IUSE="lib-only static-libs"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider IUSE=minimal instead, as that's an existing global use flag used by many packages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with minimal as well


CMAKE_USE_DIR=${S}/build/cmake

Expand All @@ -24,6 +24,8 @@ PATCHES=(

multilib_src_configure() {
local mycmakeargs=(
-DLZ4_BUILD_CLI=$(usex !lib-only)
-DLZ4_BUILD_LEGACY_LZ4C=$(usex !lib-only)
-DBUILD_STATIC_LIBS=$(usex static-libs)
)

Expand Down
3 changes: 3 additions & 0 deletions app-arch/lz4/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<email>amadio@gentoo.org</email>
<name>Guilherme Amadio</name>
</maintainer>
<use>
<flag name="lib-only">Don't build lz4 and lz4c programs</flag>
</use>
<upstream>
<remote-id type="github">lz4/lz4</remote-id>
<remote-id type="cpe">cpe:/a:lz4_project:lz4</remote-id>
Expand Down