pkglister: Add make.conf's USE, split package.* into auto and manual

master
Pierre Neidhardt 2017-10-22 11:55:50 +01:00
parent 3dcf834bba
commit 71813a1479
4 changed files with 6 additions and 7 deletions

View File

@ -24,8 +24,10 @@ fi
## Gentoo
if command -v emerge >/dev/null 2>&1; then
mkdir -p "$PKG_ROOT/gentoo"
mkdir -p "$PKG_ROOT/gentoo/package.use"
mkdir -p "$PKG_ROOT/gentoo/package.accept_keywords"
cp /var/lib/portage/world "$PKG_ROOT/gentoo/"
sed -n '/^# Auto-generated/q;p' /etc/portage/package.use | LC_ALL=C sort >"$PKG_ROOT/gentoo/package.use"
sed -n '/^# /q;p' /etc/portage/package.accept_keywords | LC_ALL=C sort >"$PKG_ROOT/gentoo/package.accept_keywords"
grep '^USE=' /etc/portage/make.conf > "$PKG_ROOT/gentoo/make.conf"
cp /etc/portage/package.use/manual "$PKG_ROOT/gentoo/package.use/manual"
cp /etc/portage/package.accept_keywords/manual "$PKG_ROOT/gentoo/package.accept_keywords/manual"
fi

View File

@ -0,0 +1 @@
USE="X alsa nvidia"

View File

@ -8,7 +8,3 @@ sci-physics/bullet ~amd64
## Python
=dev-lang/python-3.6.1-r1 ~amd64
## Golang
## TODO: Broken ebuild?
# dev-go/go-tools **