Postsync update gentoo
This commit is contained in:
parent
50e07b396a
commit
258997a7f2
@ -12,18 +12,68 @@ EGIT_REPO_URI="https://github.com/Aylur/astal.git"
|
|||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
IUSE="+gjs +io +gtk4"
|
IUSE="+io gtk3 +gtk4 +gjs"
|
||||||
REQUIRED_USE=""
|
REQUIRED_USE=""
|
||||||
|
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-libs/gobject-introspection
|
dev-libs/gobject-introspection
|
||||||
|
gtk4? (
|
||||||
|
gui-libs/gtk4-layer-shell[vala]
|
||||||
|
gui-libs/astal[io]
|
||||||
|
)
|
||||||
|
gjs? (
|
||||||
|
|| (
|
||||||
|
gui-libs/astal[gtk3]
|
||||||
|
gui-libs/astal[gtk4]
|
||||||
|
)
|
||||||
|
)
|
||||||
"
|
"
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
S="${S}/lib/astal/io"
|
# S="${S}/lib/astal/io"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
for dir in ${IUSE[@]}; do
|
local dir
|
||||||
find -depth 2 -type d -name $dir .
|
local features=()
|
||||||
|
initial_s=${S}
|
||||||
|
compiled=()
|
||||||
|
for var in $IUSE; do
|
||||||
|
if use ${var#+}; then
|
||||||
|
dir=$(find . -maxdepth 3 -type d -name ${var#+})
|
||||||
|
echo "Entering $dir"
|
||||||
|
S="$initial_s/$dir"
|
||||||
|
BUILD_DIR="$dir"-build
|
||||||
|
for feature in $IUSE; do
|
||||||
|
if [[ $features == $var* ]]; then
|
||||||
|
features+=${feature#$var}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "Building with Features: ${features[@]}"
|
||||||
|
local emesonargs=(
|
||||||
|
${features[@]}
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
meson_src_compile
|
||||||
|
# meson_src_install
|
||||||
|
compiled+=("$dir")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
S=${initial_s}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
echo ${compiled[@]}
|
||||||
|
pwd
|
||||||
|
for dir in ${compiled[@]}; do
|
||||||
|
# S="$initial_s/$dir"
|
||||||
|
BUILD_DIR=$initial_s/$dir
|
||||||
|
echo $BUILD_DIR
|
||||||
|
# cd "$initial_s/$dir"
|
||||||
|
meson_src_install
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user