add sci-ml/stable-diffusion-cpp
This commit is contained in:
2
sci-ml/stable-diffusion-cpp/Manifest
Normal file
2
sci-ml/stable-diffusion-cpp/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
EBUILD stable-diffusion-cpp-1.0.0.ebuild 894 BLAKE2B 0471caa6bbd1331270e9ba4755330759f2f191c60767d5b54012777aa2ee1cc682d9e4919d6c67c9ba4cf362dfd701dba0406085bd78fce58a0715c7fd97d527 SHA512 70053f10694efd16cb16c3949edea74b619378877c2b7cfc4cbf600274003835edd91e874b62a382b340860d5ae149e887d30c8b71363625c9bc865e7a57b5f4
|
||||
MISC metadata.xml 384 BLAKE2B 5d62a19c0060d2376b254317ee3a8b1eca0b05b6d9c034a2b8908cc42fa79882da3f6219e7b5495ca93ee1b99c8b2b3d9f9060c85cd95e374cb53f9c21d6c2c6 SHA512 b8d4a04a94d4bcb051836197f7196a116115105b1fcdc15595910a617146526468d561a84677a8221025295fa91697d4a116747230d17ac2b361f69415d2576e
|
||||
11
sci-ml/stable-diffusion-cpp/metadata.xml
Normal file
11
sci-ml/stable-diffusion-cpp/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>oliviervdtoorn@gmail.com</email>
|
||||
<name>Olivier van der Toorn</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">leejet/stable-diffusion.cpp</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake git-r3
|
||||
|
||||
DESCRIPTION="Diffusion model inference in pure C/C++"
|
||||
HOMEPAGE="https://github.com/leejet/stable-diffusion.cpp"
|
||||
EGIT_REPO_URI="https://github.com/leejet/stable-diffusion.cpp.git"
|
||||
EGIT_COMMIT="refs/tags/master-841-6b3edaa"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="vulkan"
|
||||
|
||||
DEPEND="
|
||||
media-libs/libwebm
|
||||
vulkan? (
|
||||
dev-util/glslang
|
||||
dev-util/vulkan-headers
|
||||
media-libs/vulkan-loader
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DGGML_NATIVE=OFF
|
||||
-DSD_BUILD_SHARED_LIBS=ON
|
||||
-DSD_BUILD_SHARED_GGML_LIB=OFF
|
||||
-DGGML_BACKEND_DL=OFF
|
||||
-DGGML_CPU_ALL_VARIANTS=OFF
|
||||
|
||||
-DSD_WEBP=ON
|
||||
-DSD_WEBM=ON
|
||||
)
|
||||
|
||||
if use vulkan; then
|
||||
mycmakeargs+=(
|
||||
-DSD_VULKAN=ON
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
}
|
||||
Reference in New Issue
Block a user