forked from Shinonome/dots-hyprland
Use venv for python script
This commit is contained in:
@@ -325,7 +325,9 @@ main() {
|
|||||||
|
|
||||||
detect_scheme_type_from_image() {
|
detect_scheme_type_from_image() {
|
||||||
local img="$1"
|
local img="$1"
|
||||||
|
source "$(eval echo $ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate"
|
||||||
"$SCRIPT_DIR"/scheme_for_image.py "$img" 2>/dev/null | tr -d '\n'
|
"$SCRIPT_DIR"/scheme_for_image.py "$img" 2>/dev/null | tr -d '\n'
|
||||||
|
deactivate
|
||||||
}
|
}
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env -S\_/bin/sh\_-c\_"source\_\$(eval\_echo\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV)/bin/activate&&exec\_python\_-E\_"\$0"\_"\$@""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import cv2
|
import cv2
|
||||||
|
|||||||
+85
@@ -0,0 +1,85 @@
|
|||||||
|
# Copyright 2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
DART_SASS_VER=1.78.0
|
||||||
|
|
||||||
|
DESCRIPTION="Illogical Impulse Fonts and Theming Dependencies"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/Bali10050/Darkly/archive/refs/heads/main.tar.gz -> ${P}-darkly.tar.gz
|
||||||
|
https://github.com/naipefoundry/gabarito/archive/refs/heads/main.tar.gz -> ${P}-gabarito.tar.gz
|
||||||
|
https://github.com/googlefonts/rubik/archive/refs/heads/main.tar.gz -> ${P}-rubik.tar.gz
|
||||||
|
https://github.com/ThomasJockin/readexpro/archive/refs/heads/master.tar.gz -> ${P}-readexpro.tar.gz
|
||||||
|
https://github.com/google/material-design-icons/archive/refs/heads/main.tar.gz -> ${P}-material-design-icons.tar.gz
|
||||||
|
https://github.com/mjkim0727/breeze-plus/archive/refs/heads/main.tar.gz -> ${P}-breeze-plus.tar.gz
|
||||||
|
https://github.com/lassekongo83/adw-gtk3/archive/refs/heads/main.tar.gz -> ${P}-adw-gtk3.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="
|
||||||
|
kde-plasma/breeze
|
||||||
|
sys-apps/eza
|
||||||
|
app-shells/fish
|
||||||
|
media-libs/fontconfig
|
||||||
|
x11-terms/kitty
|
||||||
|
x11-misc/matugen
|
||||||
|
app-shells/starship
|
||||||
|
media-fonts/jetbrains-mono
|
||||||
|
media-fonts/twemoji
|
||||||
|
"
|
||||||
|
|
||||||
|
# Source directories
|
||||||
|
S="${WORKDIR}"
|
||||||
|
S_DARKLY="${S}/Darkly-main"
|
||||||
|
S_GABARITO="${S}/gabarito-main"
|
||||||
|
S_RUBIK="${S}/rubik-main"
|
||||||
|
S_READEXPRO="${S}/readexpro-master"
|
||||||
|
S_MATERIAL_DESIGN_ICONS="${S}/material-design-icons-main"
|
||||||
|
S_ADW_GTK3="${S}/adw-gtk3-main"
|
||||||
|
S_BREEZE_PLUS="${S}/breeze-plus-main"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
mv "${WORKDIR}/dart-sass-${DART_SASS_VER}-linux-x64" "${S_DART_SASS}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
cd "${S_DARKLY}"
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake .. -DBUILD_QT5=OFF -DBUILD_QT6=ON
|
||||||
|
cmake --build . --parallel=$(nproc)
|
||||||
|
|
||||||
|
cd "${S_ADW_GTK3}"
|
||||||
|
meson setup build
|
||||||
|
meson compile -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cd "${S_DARKLY}/build"
|
||||||
|
cmake --install . --destdir="${D}"
|
||||||
|
|
||||||
|
insinto /usr/share/fonts/ttf-gabarito
|
||||||
|
doins "${S_GABARITO}"/fonts/ttf/*.ttf
|
||||||
|
|
||||||
|
insinto /usr/share/fonts/ttf-readex-pro
|
||||||
|
doins "${S_READEXPRO}"/fonts/ttf/*.ttf
|
||||||
|
|
||||||
|
insinto /usr/share/fonts/ttf-material-design-icons
|
||||||
|
doins "${S_MATERIAL_DESIGN_ICONS}"/font/*.ttf
|
||||||
|
|
||||||
|
insinto /usr/share/themes
|
||||||
|
doins -r "${S_BREEZE_PLUS}"/src/breeze-plus*
|
||||||
|
|
||||||
|
cd "${S_ADW_GTK3}"
|
||||||
|
meson install -C build --destdir="${D}"
|
||||||
|
|
||||||
|
fc-cache -f
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user