Skip to content

Commit

Permalink
net-analyzer/nagios-plugins-linux-madrisan: new USE=varlink
Browse files Browse the repository at this point in the history
Remove automatic detection of libvarlink, change behavior based on the
value of the new USE=varlink flag.

This required dropping the x86 keyword because libvarlink is not
keyworded there.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Louis Sautier <[email protected]>
  • Loading branch information
sbraz committed May 5, 2020
1 parent 00c9d09 commit 0255346
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions net-analyzer/nagios-plugins-linux-madrisan/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="curl">Build check_docker which requires <pkg>net-misc/curl</pkg></flag>
<flag name="varlink">Build check_podman which requires <pkg>dev-libs/libvarlink</pkg></flag>
</use>
<upstream>
<remote-id type="github">madrisan/nagios-plugins-linux</remote-id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ SRC_URI="https://github.com/madrisan/${MY_PN}/releases/download/v${PV}/${MY_P}.t

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="curl"
KEYWORDS="~amd64"
IUSE="curl varlink"

DEPEND="curl? ( net-misc/curl:0= )"
DEPEND="
curl? ( net-misc/curl:0= )
varlink? ( dev-libs/libvarlink:= )
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"
Expand All @@ -36,6 +39,7 @@ src_configure() {
# Most options are already defaults for Gentoo
--disable-hardening
$(use_enable curl libcurl)
$(use_enable varlink libvarlink)
)
econf "${myconf[@]}"
}
Expand Down

0 comments on commit 0255346

Please sign in to comment.