Skip to content

Commit

Permalink
app-portage/grs: add USE=server to reduce dependencies
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.13, Repoman-2.3.3
  • Loading branch information
blueness committed Dec 27, 2017
1 parent 6a1affb commit 07334e6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
34 changes: 19 additions & 15 deletions app-portage/grs/grs-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
EAPI="6"
PYTHON_COMPAT=( python3_{4,5,6} )

inherit distutils-r1 linux-info
Expand All @@ -19,27 +19,31 @@ HOMEPAGE="https://dev.gentoo.org/~blueness/${PN}"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
IUSE="server"

DEPEND=""
RDEPEND="
app-arch/tar[xattr]
app-crypt/md5deep
dev-libs/libcgroup
dev-vcs/git
net-misc/rsync
sys-apps/portage
sys-fs/squashfs-tools
virtual/cdrtools
|| (
sys-kernel/genkernel
sys-kernel/genkernel-next
server? (
app-arch/tar[xattr]
app-crypt/md5deep
dev-libs/libcgroup
dev-vcs/git
net-misc/rsync
sys-fs/squashfs-tools
virtual/cdrtools
|| (
sys-kernel/genkernel
sys-kernel/genkernel-next
)
)"

pkg_setup() {
local CONFIG_CHECK="~CGROUPS"
local ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the kernel."
linux-info_pkg_setup
if use server; then
local CONFIG_CHECK="~CGROUPS"
local ERROR_CGROUPS="WARNING: grsrun requires CONFIG_CGROUPS enabled in the kernel."
linux-info_pkg_setup
fi
}

src_install() {
Expand Down
3 changes: 3 additions & 0 deletions app-portage/grs/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<email>[email protected]</email>
<name>Anthony G. Basile</name>
</maintainer>
<use>
<flag name="server">Install all the tools building systems</flag>
</use>
</pkgmetadata>

0 comments on commit 07334e6

Please sign in to comment.