# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="tweaked ASOP art + dependencies, for use with android translation layer"
HOMEPAGE="https://gitlab.com/android_translation_layer/art_standalone"
# SRC_URI=""
EGIT_REPO_URI="https://gitlab.com/android_translation_layer/art_standalone.git"
EGIT_BRANCH="master"
inherit autotools git-r3

LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
# note requires python3
DEPEND="dev-lang/python dev-build/meson
|| ( gui-libs/egl-x11 gui-libs/egl-wayland )
virtual/pkgconfig
sys-libs/libunwind
virtual/libelf
dev-libs/wolfssl[jni]
virtual/jdk"
RDEPEND="${DEPEND}"
BDEPEND=""
src_configure() {
	echo "HELLO $(uname -sm)"
}
src_compile() {
	PATH="$PATH:/usr/libexec/gcc/x86_64-pc-linux-gnu/$(gcc -dumpversion)/" make ARCH="x86_64" ____LIBDIR=lib64 || die "build failed"
}

src_install() {
	DESTDIR="${D}" make ____LIBDIR=lib64 install || die "install failed"
}