37 lines
653 B
Bash
37 lines
653 B
Bash
EAPI=8
|
|
|
|
inherit git-r3
|
|
|
|
DESCRIPTION="Lightweight Gradio WebUI for stable-diffusion.cpp"
|
|
HOMEPAGE="https://github.com/daniandtheweb/sd.cpp-webui"
|
|
EGIT_REPO_URI="https://github.com/daniandtheweb/sd.cpp-webui.git"
|
|
|
|
LICENSE="AGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="amd64"
|
|
|
|
DEPEND="
|
|
sci-ml/stable-diffusion-cpp
|
|
acct-user/sd-cpp-webui
|
|
"
|
|
|
|
RDEPEND="
|
|
dev-python/gradio
|
|
"
|
|
|
|
src_install() {
|
|
insinto /usr/share/sd.cpp-webui
|
|
|
|
doins sdcpp_webui.py
|
|
doins -r defaults
|
|
doins -r modules
|
|
|
|
exeinto /usr/share/sd.cpp-webui
|
|
doexe sdcpp_webui.sh
|
|
|
|
dosym /usr/bin/sd-server /usr/share/sd.cpp-webui/sd-server
|
|
dosym /usr/bin/sd-cli /usr/share/sd.cpp-webui/sd-cli
|
|
|
|
dodoc README.md
|
|
}
|