mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 16:13:21 -04:00
Merge updates from master
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST configuradorfnmt-1.0.1-0.x86_64.rpm 139541324 BLAKE2B f47afc8934dd31e7508e1cfa3837d3e2edc44cbc3cd6805131a617909e9d5996d9223e942a0de380a260bc4be9f434678aeab4665daaf751122a8b86979aaa2a SHA512 5622d2d0242c26ef0b8598ecd753e49b05248efaea19f161edd28944349c1a6fda2fa0583c584285ca51ec83972a6661551f79df49e4b10e4bf176bdc66f1725
|
||||
@@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop java-utils-2 rpm xdg
|
||||
|
||||
DESCRIPTION="Spanish government certificate request generator"
|
||||
HOMEPAGE="https://www.cert.fnmt.es/"
|
||||
SRC_URI="https://descargas.cert.fnmt.es/Linux/${P}-0.x86_64.rpm"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="FNMT-RCM"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="virtual/jre:1.8"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "usr/lib64/${PN}/${PN}.jar"
|
||||
java-pkg_dolauncher
|
||||
doicon "usr/lib64/${PN}/${PN}.png"
|
||||
make_desktop_entry "${PN} %u" "Configurador FNMT" "${PN}" "Utility" "Comment[es]=Generador de certificados de la FNMT\nMimeType=x-scheme-handler/fnmtcr"
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@chuso.net</email>
|
||||
<name>Jesus Perez Rey</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST harper-0.44.0-crates.tar.xz 25123724 BLAKE2B da48e66bc1ffa5efe69af176f6daecfca9b0df8ed8b9e88403a3b14dd95b0c36675c0bb9ceb174c05645b5e17f30a0a45e778f869160a08338f997286b9e3f2e SHA512 41e0402d8c5f5330a2ee95c6284f9c5bf22eaa7df539c8e018c2aa0b498335c3c8fb06938c77daffa180626593831bc84dfe3f4e4de0044ac9f9a718b60d103e
|
||||
DIST harper-0.44.0.tar.gz 4099561 BLAKE2B b8ec499f817ebb37ff61737df9cbc83501dc51339c87e88924716cc8e98020c0ad445e2f7b58dd4cdb83f09e2bd94111ce22f8cb1f07eee30cdde11e7e8dc7b4 SHA512 676166b2fc618bfa15a2f91f64db96c8c629b6cbd8830014ba7faf845d3187cb43bbb03871b047ee8dfd44faa543ea307ced5812f8109da8baaca0dcc95c22e1
|
||||
DIST harper-0.50.0-crates.tar.xz 26366664 BLAKE2B c12455b063d494d91086c8344961349dfd0ccf61dcd98e2fd74fe002b005ce7d81a05311c2196650a433df35916509ac5c1802cfc7f541050ec87a5140cd305f SHA512 601522bbdf595fce17415976ab4a66153da13a37b9b3ddafaa6b5af95ce341489b0398d40d895e72b5c06d853086928306d17bdccd02fd08a2db72828bef5737
|
||||
DIST harper-0.50.0.tar.gz 4144153 BLAKE2B 2171ca043bce88e6e54a375123761ee7208180a0263dbad064899f2ba989c474514144be77016625348c98f104e5eedc62da89f11623a331ed55da7a6d8896ad SHA512 dabb83c49689d47e2b55187f258bc62bc19358f9e1fa273d5efa77f7ada5b2996825c3adcd7c90e7d162c6f6232c7737120bdb944ffd8d9d04e11b111e4f0513
|
||||
|
||||
2
dev-cpp/tinygltf/Manifest
Normal file
2
dev-cpp/tinygltf/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST glTF-Sample-Models-d7a3cc8e51d7c573771ae77a57f16b0662a905c6.tar.gz 1181935486 BLAKE2B 4282f5b5e2d56677a907b91b73791bc34dfcdbf931088f315adb938f4c74ffaaa7c9ef9c9018c7e39fbe617b336cc0b09ded87f9f9a567affc1bf25da5929713 SHA512 38e1af72f5748356098d2b948fe19442c200c1b824276bad0f1406f0ee4eb62126891049c0ae795127a92d364a47fd8ec8d29f211a5b19d263a78124aff3c11d
|
||||
DIST tinygltf-2.9.6.tar.gz 5904733 BLAKE2B 52012d3ca8cc6661e470c544ad64c6e2761ea39b712da15ca53b19131795220d4be5375697eb935e8b38c025f03e5243e8e1c99c04a5464e130589ee946afb22 SHA512 89397dc2c8884a54ea0c370251449459a200057b5e470210c4468f43c4623947500630b1a67ff6319e0998e648487367398f134711bc7d2c42ebdbd7097770b3
|
||||
@@ -0,0 +1,41 @@
|
||||
From ea07b73401b604adefa99b5d11c391d10cbb29c4 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Wed, 9 Jul 2025 16:56:20 +0700
|
||||
Subject: [PATCH] Use nlohmann and stb packages instead of bundled ones
|
||||
|
||||
---
|
||||
tiny_gltf.h | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tiny_gltf.h b/tiny_gltf.h
|
||||
index 7612804..b536faa 100644
|
||||
--- a/tiny_gltf.h
|
||||
+++ b/tiny_gltf.h
|
||||
@@ -1712,7 +1712,7 @@ class TinyGLTF {
|
||||
|
||||
#ifndef TINYGLTF_NO_INCLUDE_JSON
|
||||
#ifndef TINYGLTF_USE_RAPIDJSON
|
||||
-#include "json.hpp"
|
||||
+#include <nlohmann/json.hpp>
|
||||
#else
|
||||
#ifndef TINYGLTF_NO_INCLUDE_RAPIDJSON
|
||||
#include "document.h"
|
||||
@@ -1731,13 +1731,13 @@ class TinyGLTF {
|
||||
|
||||
#ifndef TINYGLTF_NO_STB_IMAGE
|
||||
#ifndef TINYGLTF_NO_INCLUDE_STB_IMAGE
|
||||
-#include "stb_image.h"
|
||||
+#include <stb/stb_image.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef TINYGLTF_NO_STB_IMAGE_WRITE
|
||||
#ifndef TINYGLTF_NO_INCLUDE_STB_IMAGE_WRITE
|
||||
-#include "stb_image_write.h"
|
||||
+#include <stb/stb_image_write.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
--
|
||||
2.50.0
|
||||
|
||||
15
dev-cpp/tinygltf/metadata.xml
Normal file
15
dev-cpp/tinygltf/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>parona@protonmail.com</email>
|
||||
<name>Alfred Wingate</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>dangduong31205@gmail.com</email>
|
||||
<name>Nguyen Dinh Dang Duong</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">syoyo/tinygltf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
95
dev-cpp/tinygltf/tinygltf-2.9.6.ebuild
Normal file
95
dev-cpp/tinygltf/tinygltf-2.9.6.ebuild
Normal file
@@ -0,0 +1,95 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake edo python-any-r1
|
||||
|
||||
DESCRIPTION="Header only C++11 tiny glTF 2.0 library"
|
||||
HOMEPAGE="https://github.com/syoyo/tinygltf"
|
||||
|
||||
SAMPLE_MODELS="d7a3cc8e51d7c573771ae77a57f16b0662a905c6"
|
||||
SRC_URI="
|
||||
https://github.com/syoyo/tinygltf/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
test? (
|
||||
https://github.com/KhronosGroup/glTF-Sample-Models/archive/${SAMPLE_MODELS}.tar.gz
|
||||
-> glTF-Sample-Models-${SAMPLE_MODELS}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="examples test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-Use-nlohmann-and-stb-packages-instead-of-bundled-one.patch"
|
||||
)
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/stb
|
||||
dev-cpp/nlohmann_json
|
||||
examples? (
|
||||
media-libs/glew:=
|
||||
media-libs/glfw
|
||||
media-libs/glu
|
||||
virtual/opengl
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
)
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
if use test; then
|
||||
mv -T "${WORKDIR}/glTF-Sample-Models-${SAMPLE_MODELS}" "${WORKDIR}/glTF-Sample-Models" || die
|
||||
fi
|
||||
|
||||
sed -i -e 's/clang++/$(CXX)/' tests/Makefile || die
|
||||
sed -i \
|
||||
-e "s|^sample_model_dir = \".*\"|sample_model_dir = \"${WORKDIR}/glTF-Sample-Models\"|" \
|
||||
-e "s|\"./loader_example\"|\"${BUILD_DIR}/loader_example\"|" \
|
||||
test_runner.py || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DTINYGLTF_BUILD_LOADER_EXAMPLE=$(usex test)
|
||||
-DTINYGLTF_BUILD_GL_EXAMPLES=$(usex examples)
|
||||
-DTINYGLTF_BUILD_VALIDATOR_EXAMPLE=$(usex examples)
|
||||
-DTINYGLTF_BUILD_BUILDER_EXAMPLE=$(usex examples)
|
||||
-DTINYGLTF_HEADER_ONLY=OFF
|
||||
-DTINYGLTF_INSTALL=ON
|
||||
-DTINYGLTF_INSTALL_VENDOR=OFF
|
||||
)
|
||||
#use examples && mycmakeargs+=( -DOpenGL_GL_PREFERENCE=GLVND )
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# unit tests
|
||||
pushd tests >/dev/null || die
|
||||
emake
|
||||
edo ./tester
|
||||
edo ./tester_noexcept
|
||||
popd >/dev/null || die
|
||||
|
||||
# glTF parsing tests
|
||||
edo "${EPYTHON}" test_runner.py
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
DIST amazon-corretto-11.0.23.9.1-linux-x64.tar.gz 195487466 BLAKE2B f17bfd1406fb3e8cca617fbf1d3cf212af9299aa65df4b68ea6aa5881cb42f8056a2bc3dda5e1ad5583eededb7b711874ff9507304448f37a66a50950ed0b73f SHA512 37ac145e1c2ff1cf103200262890fc2732c99345a13a9d9d0457ce11aab55efda166f0ee15f3adcea9c11f91b3008522e26a63f36570f97aa4cfb9fa3318b3d9
|
||||
DIST amazon-corretto-17.0.11.9.1-linux-x64.tar.gz 193947693 BLAKE2B c384a0343739a98466e0ae4ad19de501f17910570d567ff6eec47ec66e8723ea931c8eb143f57ff3e75ed53051529cf11f1fac8c43d1387dfb637a06b1e679b0 SHA512 a101945fa3fe3ca068a62c9ac3133ff8062a48834f672a1594a5a6e11f29827616c09fd7cb0bbb057a7bdb500b367b5cb97c75ad95d8041ca4e02d6d65df66b6
|
||||
DIST amazon-corretto-21.0.3.9.1-linux-x64.tar.gz 209461943 BLAKE2B b21b20e3ae625ab25e59f4d7faa3988277b4e70ae1a98e4b7c5fc09df92e1616ca28aa786f50ccd0554df8b11c7cbc094fb8e0189bd80c6431c13db4cc6dec37 SHA512 f5a9f919f0707be620294ea322e9518758ef661bd88c8c2af1a8f95b06f78068272e67758a70c64dc5c8d4989829362aa7efa0ff13077022e5a32c7dafecabff
|
||||
DIST amazon-corretto-22.0.1.8.1-linux-x64.tar.gz 207751648 BLAKE2B 37a65e9bfd006836967b7d29df944a500069163488bd23197fa7790705fd2637f6c223c72de884be1153708b2781b19fb66b88bb28eb68bd27a2db336af7a2f4 SHA512 e7f1d77cd4cd8e13f45b895141da076cd43b6c1cb2204a33742cfdf75185297340217a2745fd1d9f8e5d2cf276bf4926ee102f2f34588acd7a6c4c03bf688d82
|
||||
DIST amazon-corretto-8.412.08.1-linux-x64.tar.gz 118088115 BLAKE2B e0a5e6de7985900514a22f14795966e161719db39259f55576a0172e133057837c713f823e59b29b1e81b236b69a3ce76e6ed7e3cd27745d6b4148b2b4e8af8a SHA512 48b0a5420d6f18d6bbb74ee8a14069d102c4e9bdc04b0818aa42e0ce345b39871762b6ba1b13322c829049897a79e9a8105637f317317fca9debf0b79d27c645
|
||||
DIST amazon-corretto-11.0.27.6.1-linux-x64.tar.gz 195570710 BLAKE2B d5b5740059f1233d7c2c5f7e63a696c1e4dfd2cb2890675d9c8e1050e4d18cdd4bfcc4a64bc62a6725678a731b5bd51ac0c9697e989c504570de35efeedd6c36 SHA512 0ce31ddfaadeda5bccb321a63e35152abb915d73e69e5915716f7922c64607347645eec9ad038fc9980a2b14cde6daadb4349ca9af4c7039bfae5f10505f7052
|
||||
DIST amazon-corretto-17.0.15.6.1-linux-x64.tar.gz 193554879 BLAKE2B 960f94ec695051ed41826cc1af7b7895031bc2df14dd11c68ca0d9842c53946489e94fc129c53a806664a138a1998aa96049a76e7568d58dc0b43c567852495c SHA512 7c6f3b30307682bc78104be86947a02a3d963ce8ec99090fdd66f9b7d0949cf3dc18e565bf3926f0b770c7e5cb91cd94b89633408f631594d70c24c4ddf98f89
|
||||
DIST amazon-corretto-21.0.7.6.1-linux-x64.tar.gz 208603382 BLAKE2B 0a8e06018f00a4192610d7abab291cf1017b3432e88c5442a626b0a3befbe8c89cec90c96178a6e6132aad5edcdb2dc7cdd0e518d898fb4da9ea5b5de44b3680 SHA512 b0d7749413fda20f062f8460fbbdd5cba24c47187ec5794f9ddae5045fd2caa60452894a6fa4331ee9d7a69a4a645ef57cb66f6d4d22cbbcd3e53bd422044a27
|
||||
DIST amazon-corretto-24.0.1.9.1-linux-x64.tar.gz 226124142 BLAKE2B fe51550427c3e50683cca0887dd4b8bed9b73343a94d3a66947871359e7513dc97d0722b4383461171d5d33fe39c2dc2714f798a8fad874c7bdb450327bb955a SHA512 d2aecbaa7da9b7d21c738c46c223df46cb0afd9d7a3b08238e1f92bb0749ae9029d0cb8333f067b0a91fbf144f72c64c4c6e7e6192d4d77ce959ab937639462c
|
||||
DIST amazon-corretto-8.452.09.1-linux-x64.tar.gz 118157716 BLAKE2B 7113db8637f6d874999fbe1f7993d1db105674e0a0fa4b6492cc1bccff0ea5108f8b68f51b94886fc8508bcbf3b2e307bf23dd5d1b59767cebe5658e73cb51b4 SHA512 e0021e277700d67014bc0dafa35d852ceaa169860571d57c9264c3ac03ab3f54cfc2f73421654c7f7bbff18bed4850732cd26e24f1fd88d199c2bcd9aa0dd45e
|
||||
|
||||
@@ -19,7 +19,11 @@ SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -19,7 +19,11 @@ SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -19,7 +19,11 @@ SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -19,7 +19,11 @@ SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -20,7 +20,11 @@ SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -1,6 +1,6 @@
|
||||
DIST microsoft-jdk-11.0.22-linux-aarch64.tar.gz 195581683 BLAKE2B e27735a58eaa600652c0c1400968de7d7a24fce15da4d41ca1998c84a79462de548852b39945d6b4cb0aa0f04577b9c4bf36219bd0bb5b5438d9f93860f304c2 SHA512 d63048448d99199f6be6fe4f340abc77e40f547021eaf3908c64930b6a86e5113b08ab67a1ab00e5a9fa620fb8087fd0c9c1b2cfce83ab0a4897b0b764a3ca00
|
||||
DIST microsoft-jdk-11.0.22-linux-x64.tar.gz 197022932 BLAKE2B 8ac69530bd7ccc832d8466f8ad94ddb6159b6bd70fbe4d3d84f72bde78d418d578a4143407331a61e5e8cbd8c1979b1eab8a3b9a79888a760eed0f442625cfcc SHA512 04aceb51c148f97f6f88242bf473ad0259b64776858e9cc89048beff4dfac0149d10e608ee51cce5466ed3f51034d69252e6eccf1b5c890d55ad3f1e88ec563b
|
||||
DIST microsoft-jdk-17.0.10-linux-aarch64.tar.gz 190078768 BLAKE2B 03cea395bd0336dbc75ad14aa6add1c98851022abf03644c4c0d8a054d70527b104db46103442c0bc5d2592d28c7dbafc51e6e8573150f730a645d12cc3edc32 SHA512 4878e00b6d3acc5b7c9af938e64270c69a35a757452955bcf9fef2c62e3072461e28e5974f5aba82dcec8fc1eafa7ea02fae2347ff564dedd80ab2a28d265c0d
|
||||
DIST microsoft-jdk-17.0.10-linux-x64.tar.gz 191482548 BLAKE2B befaa3495a80b52b2320c0d6955635df5c5252a33955569d0204273d9bd152a9506723abed85685876349ef2f80771528165d13c177a16cd93b8431801acd1c2 SHA512 c3a0302cdc9c9ef4674c191eb149a85a4f9f771a6237baa00b6346d3f83d935f47d87e08c3fc37eead872b3e36c5904a15c4554289220df1feadd23baddb902e
|
||||
DIST microsoft-jdk-21.0.2-linux-aarch64.tar.gz 204898650 BLAKE2B 76ba846f1a80b15717cc6d587080a7d709ce3e8f2bcf74cdf2bf0177064be53b90ec0887459da1efe210117b62df74733cfd4115cfec00a13e0ec139709ba1a7 SHA512 4fd0bda6b70bc7e3eb35b7a96e43da2a470966b6e702424b43693e51879ddb1aa1c70d5254ef202b46b19b0c06951d96f0cf81fc63e34ee97385fa945926b3fe
|
||||
DIST microsoft-jdk-21.0.2-linux-x64.tar.gz 206772622 BLAKE2B e31ced718c87fa051e72bdc8488ad4e0586bed9d3e8023e2969fb49ada837dccb6289fc29e524837550664c8a7a0536cf0d79faf3b02deb55152f8ccfb99c574 SHA512 3e94145d956558184c23023e84486337e853901953b5b927162ddd039529ebfd8ef664491dda1573c5ca4d3d3d8161fffaef8630702dd3a2b706212ab1405da3
|
||||
DIST microsoft-jdk-11.0.27-linux-aarch64.tar.gz 195873081 BLAKE2B 9eba4529f1c5ea545be18dbd6172e41db72c78e35caf622bf844fe5ce1604482b2c12cea7b231a47cc4944db22aef3758dcbfe9cc67a3cfe163f05e6e8ad79fd SHA512 9d21da83aafb9ddedc54d5278869acaeda9154b58cafa39bd7a91a3fded7ede851720f4b93c8e77cf7de1e75d4fc5ffce511345bcb79e083f691e65da9c30ae4
|
||||
DIST microsoft-jdk-11.0.27-linux-x64.tar.gz 197348786 BLAKE2B b62ef5ca156bd131f7f0c9759a02602c5f8741f26310c3dc7383adc7558d885906f2ca59ec7bc5852136e12fafa61574a0e84253d8993564a3dd9e695e3996f4 SHA512 f7d479726f82d726aaeabf8107e4f7ae6c3297924e89499aef9886c365f290701e12f4913d00c5582c4e01a97204ec6f125b60e2b4ee2d3c1ac10b205cdcbd7b
|
||||
DIST microsoft-jdk-17.0.15-linux-aarch64.tar.gz 189978643 BLAKE2B 597185c5be59bbc8277d93704c0da949325bc3131581918fc933a152429208991b1e7de913215f7829676f8bcb5aeb2796a406604a9c2294fcfc04b81cbefb98 SHA512 bbcc76dc379da14a87a1dbf4121795a61a07ed3423fd10457a01fa66579c642058e6142f169571d41e64256c67b7e9abd6c8ec71a29ee653cb3f68fc7842f611
|
||||
DIST microsoft-jdk-17.0.15-linux-x64.tar.gz 191280289 BLAKE2B 16fc4a4d0014b4a4329a0e872478d15c751928f954e1b931dbb6509ef4f46bd9e9e5d91de9c0bc2aaf883bec641bdc19fbb6fcd98adc3c5b92c31444547b3160 SHA512 e9751edea9050645075bd3f0948e57b2e940a7c75733621e83f28487436b1b6461f29286db1ad83f9d811b5dc31af148fef9a50c82279dcc63cc1163e32d53a4
|
||||
DIST microsoft-jdk-21.0.7-linux-aarch64.tar.gz 204273587 BLAKE2B 1e2eb241b68ba7363e29f541d78ce870934f8d67a636c262c442694936239b4488bf0fda3d1f149df54306ed7b6f8a8b379e457790893849c87bd58d7acf76cf SHA512 1ef4064fd65aa8e20635d8553b740aa0c4e83fc7162200023bd217ffb400bb230c0190e6b282b826ad7751232e6c31dfbe29293a272ea46170acf811e328a63c
|
||||
DIST microsoft-jdk-21.0.7-linux-x64.tar.gz 206064723 BLAKE2B 9157d569d9d739af4454b325fd79f18a7d975fb2eb78f04a24138b57ef4e789ca97df592c774b50b556c887819d4bb7cc70052530055e411fd5e29bed43c1742 SHA512 5cd52780b5264cd23b9f6e4a0bb085904889d9d4aeca77169b00e1d6c1a7589211b9aa3f2f048d73d6ef7b27c2b4bccd0852eb8a01e7fe36e3d41f871de5d9bb
|
||||
|
||||
@@ -6,6 +6,7 @@ EAPI=8
|
||||
inherit java-vm-2 toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_p/+}
|
||||
|
||||
DESCRIPTION="Prebuilt Java JDK binaries provided by Microsoft"
|
||||
HOMEPAGE="https://www.microsoft.com/openjdk"
|
||||
|
||||
@@ -14,13 +15,18 @@ SRC_URI="
|
||||
arm64? ( https://aka.ms/download-jdk/microsoft-jdk-${PV}-linux-aarch64.tar.gz )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/jdk-${MY_PV}+13"
|
||||
S="${WORKDIR}/jdk-${MY_PV}+6"
|
||||
|
||||
LICENSE="GPL-2-with-classpath-exception"
|
||||
SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
media-libs/fontconfig:1.0
|
||||
@@ -6,7 +6,6 @@ EAPI=8
|
||||
inherit java-vm-2 toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_p/+}
|
||||
|
||||
DESCRIPTION="Prebuilt Java JDK binaries provided by Microsoft"
|
||||
HOMEPAGE="https://www.microsoft.com/openjdk"
|
||||
|
||||
@@ -15,13 +14,15 @@ SRC_URI="
|
||||
arm64? ( https://aka.ms/download-jdk/microsoft-jdk-${PV}-linux-aarch64.tar.gz )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/jdk-${MY_PV}+7"
|
||||
|
||||
S="${WORKDIR}/jdk-${MY_PV}+6"
|
||||
LICENSE="GPL-2-with-classpath-exception"
|
||||
SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
@@ -14,12 +14,15 @@ SRC_URI="
|
||||
arm64? ( https://aka.ms/download-jdk/microsoft-jdk-${PV}-linux-aarch64.tar.gz )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/jdk-${MY_PV}+7"
|
||||
S="${WORKDIR}/jdk-${MY_PV}+6"
|
||||
LICENSE="GPL-2-with-classpath-exception"
|
||||
SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
>=sys-apps/baselayout-java-0.1.0-r1
|
||||
kernel_linux? (
|
||||
1
dev-libs/lygia/Manifest
Normal file
1
dev-libs/lygia/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST lygia-1.3.0.tar.gz 413934 BLAKE2B 5b9662210b3e610c1a78d7b287c236d0193efcb49cd3fdf1d014f179dbd0dd3c3cb462ed2ca0c36b5bdb291341e5cf7a522134a64c7698b431d5f050a5260e63 SHA512 e9b1e81149bb3d6cba32b3dc977b09c6fc6e98cf1ad812ee0367745b3ec88d30befc047373bcaa7f8e01add78b40a2676656335823d233859eb825eb6a8dbe34
|
||||
7
dev-libs/lygia/files/lygia.pc.in
Normal file
7
dev-libs/lygia/files/lygia.pc.in
Normal file
@@ -0,0 +1,7 @@
|
||||
install_dir=@INSTALL_DIR@
|
||||
|
||||
Name: LYGIA Shader Library
|
||||
Description: LYGIA is a shader library of reusable functions that will let you prototype, port or ship a project in just few minutes.
|
||||
Version: @VERSION@
|
||||
Cflags: -I${install_dir}
|
||||
|
||||
39
dev-libs/lygia/lygia-1.3.0.ebuild
Normal file
39
dev-libs/lygia/lygia-1.3.0.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="LYGIA is a shader library of reusable functions."
|
||||
|
||||
HOMEPAGE="
|
||||
https://lygia.xyz
|
||||
https://github.com/patriciogonzalezvivo/lygia"
|
||||
SRC_URI="https://codeload.github.com/patriciogonzalezvivo/lygia/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Prosperity-3.0.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
install_dir=/usr/include
|
||||
pc_file=lygia.pc
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
default
|
||||
sed \
|
||||
-e "s|@INSTALL_DIR@|${install_dir%%/}/|g" \
|
||||
-e "s|@VERSION@|${PV}|g" \
|
||||
"${FILESDIR}/${pc_file}.in" > ${pc_file} || die "sed failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
dodoc *.md
|
||||
rm -f *.md
|
||||
|
||||
insinto ${install_dir}/${PN}
|
||||
doins -r *
|
||||
|
||||
insinto /usr/lib64/pkgconfig
|
||||
doins ${pc_file}
|
||||
}
|
||||
@@ -2,11 +2,10 @@
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>pastalian46@gmail.com</email>
|
||||
<name>Takuya Wakazono</name>
|
||||
<email>dangduong31205@gmail.com</email>
|
||||
<name>Nguyen Dinh Dang Duong</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">fengsp/color-thief-py</remote-id>
|
||||
<remote-id type="pypi">colorthief</remote-id>
|
||||
<remote-id type="github">patriciogonzalezvivo/lygia</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
1
dev-libs/mcl/Manifest
Normal file
1
dev-libs/mcl/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST mcl-0.1.13.tar.gz 25663 BLAKE2B 3dbd667338a4697b9a044dca363cbf6f92de51d173116110694d34f6796a3ed2ebc056fa2ce3015ee3840b1435eb367a714ccbe24b4807c7d139ecb446279b6f SHA512 ed394edead795d04583034f569ada69a9ee893431159cb8ee2cc8f47509ad5e4ffdcfdefdeae06a118305b61f74d420f421125fc2e038c21d7ff08612e03ad24
|
||||
@@ -0,0 +1,29 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Build tests only when requested.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -102,8 +102,10 @@ endif()
|
||||
|
||||
# Project files
|
||||
|
||||
+include(CTest)
|
||||
+
|
||||
add_subdirectory(src)
|
||||
-if (TARGET Catch2::Catch2 AND MASTER_PROJECT)
|
||||
+if (BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -10,7 +10,6 @@ target_include_directories(mcl-tests PUBLIC .)
|
||||
target_compile_options(mcl-tests PRIVATE ${STAMINA_CXX_FLAGS})
|
||||
target_link_libraries(mcl-tests PRIVATE Catch2::Catch2WithMain mcl)
|
||||
|
||||
-include(CTest)
|
||||
include(Catch)
|
||||
catch_discover_tests(mcl-tests)
|
||||
enable_testing()
|
||||
36
dev-libs/mcl/mcl-0.1.13.ebuild
Normal file
36
dev-libs/mcl/mcl-0.1.13.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="merry's common library"
|
||||
HOMEPAGE="https://github.com/merryhime/mcl"
|
||||
SRC_URI="https://github.com/merryhime/mcl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libfmt:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? ( dev-cpp/catch )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.1.13-build-tests-only-when-requested.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>pastalian46@gmail.com</email>
|
||||
<name>Takuya Wakazono</name>
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Rogdham/pyzstd</remote-id>
|
||||
<remote-id type="pypi">pyzstd</remote-id>
|
||||
<bugs-to>https://github.com/merryhime/mcl/issues</bugs-to>
|
||||
<remote-id type="github">merryhime/mcl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
1
dev-libs/microprofile/Manifest
Normal file
1
dev-libs/microprofile/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST microprofile-4.0.tar.gz 25645927 BLAKE2B d842ff793fd66cbe01323f7ab658a15c7409a919b22c3e18106d923a0e35dc3bd1e648d1dc2656dc99e8976d9e19f9f72aefe3706ca59447486642bf22117a01 SHA512 f51909b95b0dc3efcb17e0dea7b0b0734f254dad8ddae534dc0b5d0791d7846268367d3d940678fd96163fa904871a9f10c7e240eacb3ae48bd18f7a706614d3
|
||||
12
dev-libs/microprofile/metadata.xml
Normal file
12
dev-libs/microprofile/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/jonasmr/microprofile/issues</bugs-to>
|
||||
<remote-id type="github">jonasmr/microprofile</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
17
dev-libs/microprofile/microprofile-4.0.ebuild
Normal file
17
dev-libs/microprofile/microprofile-4.0.ebuild
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="An embeddable profiler"
|
||||
HOMEPAGE="https://github.com/jonasmr/microprofile"
|
||||
SRC_URI="https://github.com/jonasmr/microprofile/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-libs/stb"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
1
dev-libs/nihstro/Manifest
Normal file
1
dev-libs/nihstro/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST nihstro-0_pre20250505.tar.gz 110629 BLAKE2B f6b24d16d5b8300221d596d91e79398db8530623dd7f0f133e3a5f9caf9c76b91612012afd7a653d65613c154855873c694a4770be9c573889f2e2fad3af178b SHA512 f291051c927cf06d783234847baa124f134487aab9952938ffafcd023481d0e744caec1889b908f95867772ca338d57d780152692405028a850d1af6ce60f310
|
||||
12
dev-libs/nihstro/metadata.xml
Normal file
12
dev-libs/nihstro/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/neobrain/nihstro/issues</bugs-to>
|
||||
<remote-id type="github">neobrain/nihstro</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
34
dev-libs/nihstro/nihstro-0_pre20250505.ebuild
Normal file
34
dev-libs/nihstro/nihstro-0_pre20250505.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
EGIT_COMMIT="f4d8659decbfe5d234f04134b5002b82dc515a44"
|
||||
|
||||
DESCRIPTION="3DS shader assembler and disassembler"
|
||||
HOMEPAGE="https://github.com/neobrain/nihstro"
|
||||
SRC_URI="https://github.com/neobrain/nihstro/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="dev-libs/boost:="
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-Wno-dev
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
doheader -r include/nihstro
|
||||
}
|
||||
1
dev-libs/oaknut/Manifest
Normal file
1
dev-libs/oaknut/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST oaknut-2.0.2.tar.gz 86770 BLAKE2B ed3a8a6acbb5bd5557cd23718bf034e36554d72565d7176cf894471de6e9b7efb2b1c435cbe2ff62ddc7c02500eb0431d8ab29b370101e830e53e9239a2c043e SHA512 d950ed4184e476f30206a58fbfbeaf0d4dfbf3d34a73dc3b0c6815d46c84632214372c01cdae86b1f5f30c7a5e874f5a81c922befc86d1d72f3b9c74f0fac1bb
|
||||
12
dev-libs/oaknut/metadata.xml
Normal file
12
dev-libs/oaknut/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/merryhime/oaknut/issues</bugs-to>
|
||||
<remote-id type="github">merryhime/oaknut</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
28
dev-libs/oaknut/oaknut-2.0.2.ebuild
Normal file
28
dev-libs/oaknut/oaknut-2.0.2.ebuild
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Yet another AArch64 emitter"
|
||||
HOMEPAGE="https://github.com/merryhime/oaknut"
|
||||
SRC_URI="https://github.com/merryhime/oaknut/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? ( dev-cpp/catch )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
DIST sirit-0_p20220725.tar.gz 23535 BLAKE2B 8cdcb2b5007b849b032be1fbe53375a24bd62b109da4c7388e18961294acde0ea3bd2312c5c40eafd2394712fdf83ea16b47df94b8ee5c51f5de37a7e2df79ff SHA512 4424d1020a02877a2465d94ace0309cfc6952b0624ba248c113a5858e3749837d430fb5ec348953c140955ddf013a2a783f97b9594899a989905b08b82722a60
|
||||
DIST sirit-0_p20230510.tar.gz 24196 BLAKE2B cd9512d79352bd00b33f59afff61059fa8e31b5e8792f37753543e37cd08967e0828dfa27a9f561281d800cf43a1466e8222f3d787385c3eabb1c24ecc13713b SHA512 768871f203bd1263fb2f01cba1a661fb85e8681f7af6f92403abe4fa34d79908edd863bfcbac1cacaad7dd08e0b720122fffe793881ffb0e4ee3af7c9c55affc
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
<email>samuel.bauer@yahoo.fr</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ReinUsesLisp/sirit</remote-id>
|
||||
<remote-id type="github">PabloMK7/sirit</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -5,9 +5,11 @@ EAPI=8
|
||||
|
||||
inherit cmake vcs-snapshot
|
||||
|
||||
EGIT_COMMIT="4ab79a8c023aa63caaa93848b09b9fe8b183b1a9"
|
||||
|
||||
DESCRIPTION="A runtime SPIR-V assembler"
|
||||
HOMEPAGE="https://github.com/ReinUsesLisp/sirit"
|
||||
SRC_URI="https://github.com/ReinUsesLisp/sirit/archive/aa292d56650bc28f2b2d75973fab2e61d0136f9c.tar.gz -> ${P}.tar.gz"
|
||||
HOMEPAGE="https://github.com/PabloMK7/sirit"
|
||||
SRC_URI="https://github.com/PabloMK7/sirit/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
1
dev-libs/vera/Manifest
Normal file
1
dev-libs/vera/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vera-cb117806d14ab2c31db86d5b8cab5c58b791dd6c.tar.gz 3085129 BLAKE2B 7f97910fd9fd29ff0182e8c32f4e4d34257e13dab015262635278fe28f61d9609364f00e48c7d7704c789acd71ef0217d54381c56da878c4b092731570c5cbab SHA512 4abbcc2b9b353eb66454a0c5d6e0f06975c3bcbd4e356177a84a0ea57e2a292b0a7eff1f8a39243d114bf146edbd6a0beb5737e10cee8b3cb04005098fa7164d
|
||||
22
dev-libs/vera/files/0001-Bump-cmake-min-version.patch
Normal file
22
dev-libs/vera/files/0001-Bump-cmake-min-version.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 74d6dffc30ebaf4046954901e8605c8600edb488 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Wed, 9 Jul 2025 21:23:51 +0700
|
||||
Subject: [PATCH 1/6] Bump cmake min version
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f82abad..c29116c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.2)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(vera CXX)
|
||||
|
||||
--
|
||||
2.50.0
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 6d4b10f540f951abb42c1a6d62e93ebbb6fca36d Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 01:35:06 +0700
|
||||
Subject: [PATCH 2/6] Remove hardcoded installation dir
|
||||
|
||||
---
|
||||
src/CMakeLists.txt | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 981ff16..8021914 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -302,7 +302,9 @@ target_include_directories(vera PUBLIC ${INCLUDE_DEPS_FOLDERS} ${INCLUDE_FOLDER}
|
||||
|
||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||
|
||||
- install(TARGETS ${PROJECT_NAME} DESTINATION lib)
|
||||
+ install(TARGETS ${PROJECT_NAME}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES ${ROOT_HEADER} DESTINATION include/vera)
|
||||
install(FILES ${GL_HEADER} DESTINATION include/vera/gl)
|
||||
install(FILES ${IO_HEADER} DESTINATION include/vera/io)
|
||||
--
|
||||
2.50.0
|
||||
|
||||
76
dev-libs/vera/files/0003-Use-dev-libs-stb-package.patch
Normal file
76
dev-libs/vera/files/0003-Use-dev-libs-stb-package.patch
Normal file
@@ -0,0 +1,76 @@
|
||||
From 68dbfb61d2557b11412a579abc7bc032d0202072 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 00:53:04 +0700
|
||||
Subject: [PATCH 3/6] Use dev-libs/stb package
|
||||
|
||||
---
|
||||
src/CMakeLists.txt | 1 +
|
||||
src/io/gltf.cpp | 5 -----
|
||||
src/ops/pixel.cpp | 5 +----
|
||||
src/stb_impl.cpp | 5 +++++
|
||||
4 files changed, 7 insertions(+), 9 deletions(-)
|
||||
create mode 100644 src/stb_impl.cpp
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 8021914..74b00c0 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -36,6 +36,7 @@ set(VERA_SOURCES
|
||||
${DEPS_FOLDER}/stb/stb_image.cpp
|
||||
${SOURCE_FOLDER}/app.cpp
|
||||
${SOURCE_FOLDER}/window.cpp
|
||||
+ ${SOURCE_FOLDER}/stb_impl.cpp
|
||||
${SOURCE_FOLDER}/gl/gl.cpp
|
||||
${SOURCE_FOLDER}/gl/fbo.cpp
|
||||
${SOURCE_FOLDER}/gl/vbo.cpp
|
||||
diff --git a/src/io/gltf.cpp b/src/io/gltf.cpp
|
||||
index fcc25b7..2c08f43 100644
|
||||
--- a/src/io/gltf.cpp
|
||||
+++ b/src/io/gltf.cpp
|
||||
@@ -20,11 +20,6 @@
|
||||
#include "glm/gtc/type_ptr.hpp"
|
||||
#include "glm/gtx/quaternion.hpp"
|
||||
|
||||
-#define TINYGLTF_IMPLEMENTATION
|
||||
-#define STB_IMAGE_IMPLEMENTATION
|
||||
-#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
-// #define TINYGLTF_NOEXCEPTION
|
||||
-// #define JSON_NOEXCEPTION
|
||||
#include "tiny_gltf.h"
|
||||
|
||||
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
|
||||
diff --git a/src/ops/pixel.cpp b/src/ops/pixel.cpp
|
||||
index e57b84f..58ef78e 100644
|
||||
--- a/src/ops/pixel.cpp
|
||||
+++ b/src/ops/pixel.cpp
|
||||
@@ -3,9 +3,6 @@
|
||||
#include "vera/ops/pixel.h"
|
||||
#include "vera/ops/fs.h"
|
||||
|
||||
-#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
-#define STB_IMAGE_IMPLEMENTATION
|
||||
-
|
||||
#include "stb_image.h"
|
||||
#include "stb_image_write.h"
|
||||
#include "extract_depthmap.h"
|
||||
@@ -191,4 +188,4 @@ void freePixels(void *pixels) {
|
||||
stbi_image_free(pixels);
|
||||
}
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/src/stb_impl.cpp b/src/stb_impl.cpp
|
||||
new file mode 100644
|
||||
index 0000000..82928fa
|
||||
--- /dev/null
|
||||
+++ b/src/stb_impl.cpp
|
||||
@@ -0,0 +1,5 @@
|
||||
+#define STB_IMAGE_IMPLEMENTATION
|
||||
+#include "stb_image.h"
|
||||
+
|
||||
+#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
+#include "stb_image_write.h"
|
||||
--
|
||||
2.50.0
|
||||
|
||||
46
dev-libs/vera/files/0004-Change-include-lines.patch
Normal file
46
dev-libs/vera/files/0004-Change-include-lines.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
From 7cc9a85c6a656d72abbbe74ee9b70a21a015ca21 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 00:53:09 +0700
|
||||
Subject: [PATCH 4/6] Change include lines
|
||||
|
||||
---
|
||||
src/gl/textureStreamAudio.cpp | 2 +-
|
||||
src/xr/holoPlay.cpp | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/gl/textureStreamAudio.cpp b/src/gl/textureStreamAudio.cpp
|
||||
index ae886b5..59c23b6 100644
|
||||
--- a/src/gl/textureStreamAudio.cpp
|
||||
+++ b/src/gl/textureStreamAudio.cpp
|
||||
@@ -17,7 +17,7 @@
|
||||
extern "C" {
|
||||
#include <libavcodec/avfft.h>
|
||||
#include <libavutil/mem.h>
|
||||
-#include "miniaudio.h"
|
||||
+#include <miniaudio/miniaudio.h>
|
||||
}
|
||||
|
||||
ma_device_config a_deviceConfig;
|
||||
diff --git a/src/xr/holoPlay.cpp b/src/xr/holoPlay.cpp
|
||||
index 012e1e0..b43d087 100644
|
||||
--- a/src/xr/holoPlay.cpp
|
||||
+++ b/src/xr/holoPlay.cpp
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <fstream>
|
||||
|
||||
-#include "json.hpp"
|
||||
+#include <nlohmann/json.hpp>
|
||||
|
||||
namespace vera {
|
||||
|
||||
@@ -299,4 +299,4 @@ void feedLenticularUniforms(Shader& _shader) {
|
||||
_shader.setUniform("u_lenticularRB", float(lenticular.ri), float(lenticular.bi));
|
||||
}
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
--
|
||||
2.50.0
|
||||
|
||||
107
dev-libs/vera/files/0005-Remove-some-bundled-deps.patch
Normal file
107
dev-libs/vera/files/0005-Remove-some-bundled-deps.patch
Normal file
@@ -0,0 +1,107 @@
|
||||
From 8a275ff1cc0a892113f0d3dcc23c6396deaa8c31 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 01:24:44 +0700
|
||||
Subject: [PATCH 5/6] Remove some bundled deps
|
||||
|
||||
---
|
||||
deps/CMakeLists.txt | 18 +-----------------
|
||||
src/CMakeLists.txt | 22 ++++++++++++++--------
|
||||
2 files changed, 15 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt
|
||||
index 45d1e48..8ca12fd 100644
|
||||
--- a/deps/CMakeLists.txt
|
||||
+++ b/deps/CMakeLists.txt
|
||||
@@ -1,31 +1,15 @@
|
||||
## GLFW
|
||||
if (NOT NO_X11 AND NOT FORCE_GBM AND NOT EMSCRIPTEN)
|
||||
- # Configure GLFW to build only the library.
|
||||
- set(GLFW_BUILD_DOCS OFF CACHE BOOL "")
|
||||
- set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "")
|
||||
- set(GLFW_BUILD_TESTS OFF CACHE BOOL "")
|
||||
- set(GLFW_INSTALL OFF CACHE BOOL "")
|
||||
- add_subdirectory(glfw)
|
||||
-
|
||||
- if(APPLE)
|
||||
- target_compile_options(glfw PRIVATE "-Wno-deprecated-declarations")
|
||||
- endif()
|
||||
-
|
||||
if(NOT DEFINED OpenGL_GL_PREFERENCE)
|
||||
# set(OpenGL_GL_PREFERENCE "LEGACY")
|
||||
set(OPENGL_GL_PREFERENCE "GLVND")
|
||||
endif()
|
||||
set(OpenGL_GL_PREFERENCE ${OPENGL_GL_PREFERENCE})
|
||||
find_package(OpenGL REQUIRED)
|
||||
-
|
||||
message(STATUS "OPENGL_LIBRARIES: ${OPENGL_LIBRARIES}")
|
||||
message(STATUS "OPENGL_opengl_LIBRARY: ${OPENGL_opengl_LIBRARY}")
|
||||
endif()
|
||||
|
||||
-if (WIN32)
|
||||
- add_subdirectory(glew)
|
||||
-endif (WIN32)
|
||||
-
|
||||
if (EMSCRIPTEN)
|
||||
add_subdirectory(emscripten-webxr)
|
||||
-endif (EMSCRIPTEN)
|
||||
\ No newline at end of file
|
||||
+endif (EMSCRIPTEN)
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 74b00c0..0289ee3 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -3,17 +3,12 @@ set(SOURCE_FOLDER "${PROJECT_SOURCE_DIR}/src")
|
||||
set(DEPS_FOLDER "${PROJECT_SOURCE_DIR}/deps")
|
||||
set(INCLUDE_FOLDER "${PROJECT_SOURCE_DIR}/include")
|
||||
set(INCLUDE_DEPS_FOLDERS
|
||||
- "${PROJECT_SOURCE_DIR}/deps/glm"
|
||||
- "${PROJECT_SOURCE_DIR}/deps/stb"
|
||||
"${PROJECT_SOURCE_DIR}/deps/glob"
|
||||
"${PROJECT_SOURCE_DIR}/deps/skymodel"
|
||||
"${PROJECT_SOURCE_DIR}/deps/fontstash"
|
||||
- "${PROJECT_SOURCE_DIR}/deps/miniaudio"
|
||||
"${PROJECT_SOURCE_DIR}/deps/phonedepth"
|
||||
- "${PROJECT_SOURCE_DIR}/deps/tinygltf"
|
||||
"${PROJECT_SOURCE_DIR}/deps/tinyobjloader"
|
||||
"${PROJECT_SOURCE_DIR}/deps/tinyply"
|
||||
- "${PROJECT_SOURCE_DIR}/deps/miniz"
|
||||
"${PROJECT_SOURCE_DIR}/deps/tinyexr"
|
||||
)
|
||||
|
||||
@@ -28,12 +23,9 @@ file(GLOB XR_HEADER "${INCLUDE_FOLDER}/vera/xr/*.h")
|
||||
|
||||
# SOURCE files
|
||||
set(VERA_SOURCES
|
||||
- ${DEPS_FOLDER}/miniz/miniz.cpp
|
||||
${DEPS_FOLDER}/glob/glob.cpp
|
||||
${DEPS_FOLDER}/phonedepth/extract_depthmap.cpp
|
||||
${DEPS_FOLDER}/skymodel/ArHosekSkyModel.cpp
|
||||
- ${DEPS_FOLDER}/stb/stb_image_write.cpp
|
||||
- ${DEPS_FOLDER}/stb/stb_image.cpp
|
||||
${SOURCE_FOLDER}/app.cpp
|
||||
${SOURCE_FOLDER}/window.cpp
|
||||
${SOURCE_FOLDER}/stb_impl.cpp
|
||||
@@ -91,6 +83,20 @@ set(VERA_SOURCES
|
||||
#
|
||||
add_library(vera ${VERA_SOURCES})
|
||||
|
||||
+find_package(PkgConfig)
|
||||
+
|
||||
+# miniaudio package just install header files to /usr/include, just patch miniaudio.h -> miniaudio/miniaudio.h
|
||||
+
|
||||
+pkg_check_modules(STB stb REQUIRED)
|
||||
+target_include_directories(vera PUBLIC ${STB_INCLUDE_DIRS})
|
||||
+
|
||||
+find_library(TINYGLTF_LIB tinygltf REQUIRED)
|
||||
+target_link_libraries(vera PUBLIC ${TINYGLTF_LIB})
|
||||
+
|
||||
+pkg_check_modules(MINIZ_LIB miniz REQUIRED)
|
||||
+target_include_directories(vera PUBLIC ${MINIZ_LIB_INCLUDE_DIRS})
|
||||
+target_link_libraries(vera PUBLIC ${MINIZ_LIB_LIBRARIES})
|
||||
+
|
||||
set_target_properties(vera PROPERTIES
|
||||
CXX_STANDARD 11
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
--
|
||||
2.50.0
|
||||
|
||||
274
dev-libs/vera/files/0006-Fix-in-class-initialization.patch
Normal file
274
dev-libs/vera/files/0006-Fix-in-class-initialization.patch
Normal file
@@ -0,0 +1,274 @@
|
||||
From df04be674dec037e4dd2442a0fc791589ded2019 Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 22:01:48 +0700
|
||||
Subject: [PATCH 6/6] Fix in-class initialization
|
||||
|
||||
---
|
||||
include/vera/app.h | 4 +++-
|
||||
include/vera/gl/textureStream.h | 4 +++-
|
||||
include/vera/gl/textureStreamAudio.h | 2 +-
|
||||
include/vera/types/sky.h | 3 ++-
|
||||
include/vera/window.h | 5 ++++-
|
||||
include/vera/xr/holoPlay.h | 3 ++-
|
||||
src/CMakeLists.txt | 4 +++-
|
||||
src/app.cpp | 4 +++-
|
||||
src/gl/textureStream.cpp | 6 ++++++
|
||||
src/gl/textureStreamAudio.cpp | 1 +
|
||||
src/gl/textureStreamMMAL.cpp | 3 ++-
|
||||
src/types/sky.cpp | 5 +++++
|
||||
src/window.cpp | 4 ++++
|
||||
src/xr/holoPlay.cpp | 2 +-
|
||||
14 files changed, 40 insertions(+), 10 deletions(-)
|
||||
create mode 100644 src/gl/textureStream.cpp
|
||||
create mode 100644 src/types/sky.cpp
|
||||
|
||||
diff --git a/include/vera/app.h b/include/vera/app.h
|
||||
index 16d4b80..df909c1 100644
|
||||
--- a/include/vera/app.h
|
||||
+++ b/include/vera/app.h
|
||||
@@ -16,6 +16,8 @@ namespace vera {
|
||||
class App {
|
||||
public:
|
||||
|
||||
+ App();
|
||||
+
|
||||
void run(WindowProperties _properties = WindowProperties());
|
||||
|
||||
virtual void setup() {};
|
||||
@@ -90,4 +92,4 @@ protected:
|
||||
#endif
|
||||
};
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/include/vera/gl/textureStream.h b/include/vera/gl/textureStream.h
|
||||
index 3964089..d2d4cbf 100644
|
||||
--- a/include/vera/gl/textureStream.h
|
||||
+++ b/include/vera/gl/textureStream.h
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "texture.h"
|
||||
|
||||
+#include <GL/glext.h>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
@@ -10,6 +11,7 @@ namespace vera {
|
||||
class TextureStream : public Texture {
|
||||
public:
|
||||
|
||||
+ TextureStream();
|
||||
virtual ~TextureStream() {}
|
||||
|
||||
virtual void setSpeed( float _speed ) {};
|
||||
@@ -86,7 +88,7 @@ protected:
|
||||
}
|
||||
std::vector<GLuint> m_idPrevs;
|
||||
|
||||
- bool m_play = true;
|
||||
+ bool m_play;
|
||||
};
|
||||
|
||||
}
|
||||
diff --git a/include/vera/gl/textureStreamAudio.h b/include/vera/gl/textureStreamAudio.h
|
||||
index 3f24205..236b7e6 100644
|
||||
--- a/include/vera/gl/textureStreamAudio.h
|
||||
+++ b/include/vera/gl/textureStreamAudio.h
|
||||
@@ -16,7 +16,7 @@ public:
|
||||
private:
|
||||
static const int m_buf_len = 1024;
|
||||
std::vector<uint8_t> m_buffer_wr, m_buffer_re, m_texture;
|
||||
- float* m_dft_buffer = nullptr;
|
||||
+ float* m_dft_buffer;
|
||||
};
|
||||
|
||||
|
||||
diff --git a/include/vera/types/sky.h b/include/vera/types/sky.h
|
||||
index 1e03460..49eabb3 100644
|
||||
--- a/include/vera/types/sky.h
|
||||
+++ b/include/vera/types/sky.h
|
||||
@@ -7,6 +7,7 @@ namespace vera {
|
||||
// SKY BOX GENERATOR
|
||||
// --------------------------------------------------------------
|
||||
struct SkyData {
|
||||
+ SkyData();
|
||||
glm::vec3 groundAlbedo = glm::vec3(0.25f);
|
||||
float elevation = 0.3f;
|
||||
float azimuth = 0.0f;
|
||||
@@ -14,4 +15,4 @@ struct SkyData {
|
||||
bool change = false;
|
||||
};
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/include/vera/window.h b/include/vera/window.h
|
||||
index 21f754a..deebbd9 100644
|
||||
--- a/include/vera/window.h
|
||||
+++ b/include/vera/window.h
|
||||
@@ -20,6 +20,9 @@ enum WindowStyle {
|
||||
};
|
||||
|
||||
struct WindowProperties {
|
||||
+
|
||||
+ WindowProperties();
|
||||
+
|
||||
WindowStyle style = REGULAR;
|
||||
size_t major = 2;
|
||||
size_t minor = 0;
|
||||
@@ -138,4 +141,4 @@ void setMouseDragCallback(std::function<void(float, float, int)>);
|
||||
void setScrollCallback(std::function<void(float)>);
|
||||
void setDropCallback(std::function<void(int, const char**)>);
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/include/vera/xr/holoPlay.h b/include/vera/xr/holoPlay.h
|
||||
index 376004e..b258cd3 100644
|
||||
--- a/include/vera/xr/holoPlay.h
|
||||
+++ b/include/vera/xr/holoPlay.h
|
||||
@@ -42,6 +42,7 @@ void renderQuilt(std::function<void(const QuiltProperties&, glm::vec4&, int&)> _
|
||||
// in order to render correctly make sure this values match your calibration file on your device
|
||||
//
|
||||
struct LenticularProperties {
|
||||
+ LenticularProperties() = default;
|
||||
float dpi = 324.0;
|
||||
float pitch = 52.58737671470091;
|
||||
float slope = -7.196136200157333;
|
||||
@@ -55,4 +56,4 @@ void setLenticularProperties(const std::string& _path);
|
||||
std::string getLenticularFragShader(size_t _versionNumber = 100);
|
||||
void feedLenticularUniforms(Shader& _shader);
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 0289ee3..0db75c0 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -41,6 +41,7 @@ set(VERA_SOURCES
|
||||
${SOURCE_FOLDER}/gl/textureBump.cpp
|
||||
${SOURCE_FOLDER}/gl/textureCube.cpp
|
||||
${SOURCE_FOLDER}/gl/textureProps.cpp
|
||||
+ ${SOURCE_FOLDER}/gl/textureStream.cpp
|
||||
${SOURCE_FOLDER}/gl/textureStreamAV.cpp
|
||||
${SOURCE_FOLDER}/gl/textureStreamOMX.cpp
|
||||
${SOURCE_FOLDER}/gl/textureStreamMMAL.cpp
|
||||
@@ -74,6 +75,7 @@ set(VERA_SOURCES
|
||||
${SOURCE_FOLDER}/types/node.cpp
|
||||
${SOURCE_FOLDER}/types/scene.cpp
|
||||
${SOURCE_FOLDER}/types/triangle.cpp
|
||||
+ ${SOURCE_FOLDER}/types/sky.cpp
|
||||
${SOURCE_FOLDER}/shaders/defaultShaders.cpp
|
||||
${SOURCE_FOLDER}/xr/holoPlay.cpp
|
||||
${SOURCE_FOLDER}/xr/xr.cpp
|
||||
@@ -81,7 +83,7 @@ set(VERA_SOURCES
|
||||
|
||||
# C++ LIBRAY
|
||||
#
|
||||
-add_library(vera ${VERA_SOURCES})
|
||||
+add_library(vera SHARED ${VERA_SOURCES})
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
diff --git a/src/app.cpp b/src/app.cpp
|
||||
index 008080b..abe7eff 100644
|
||||
--- a/src/app.cpp
|
||||
+++ b/src/app.cpp
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace vera {
|
||||
|
||||
+App::App() = default;
|
||||
+
|
||||
#if defined(__EMSCRIPTEN__)
|
||||
EM_BOOL App::loop (double _time, void* _userData) {
|
||||
App* _app = (App*)_userData;
|
||||
@@ -299,4 +301,4 @@ void App::orbitControl() {
|
||||
cam->setVirtualOffset(1.5, getQuiltCurrentViewIndex(), getQuiltTotalViews());
|
||||
}
|
||||
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
diff --git a/src/gl/textureStream.cpp b/src/gl/textureStream.cpp
|
||||
new file mode 100644
|
||||
index 0000000..d45b5c3
|
||||
--- /dev/null
|
||||
+++ b/src/gl/textureStream.cpp
|
||||
@@ -0,0 +1,6 @@
|
||||
+#include "vera/gl/textureStream.h"
|
||||
+
|
||||
+namespace vera {
|
||||
+ TextureStream::TextureStream() = default;
|
||||
+}
|
||||
+
|
||||
diff --git a/src/gl/textureStreamAudio.cpp b/src/gl/textureStreamAudio.cpp
|
||||
index 59c23b6..8a52cbb 100644
|
||||
--- a/src/gl/textureStreamAudio.cpp
|
||||
+++ b/src/gl/textureStreamAudio.cpp
|
||||
@@ -53,6 +53,7 @@ TextureStreamAudio::TextureStreamAudio(): TextureStream() {
|
||||
m_dft_buffer = (float*)av_malloc_array(sizeof(float), m_buf_len);
|
||||
m_buffer_wr.resize(m_buf_len, 0);
|
||||
m_buffer_re.resize(m_buf_len, 0);
|
||||
+ m_dft_buffer = nullptr;
|
||||
}
|
||||
|
||||
TextureStreamAudio::~TextureStreamAudio() {
|
||||
diff --git a/src/gl/textureStreamMMAL.cpp b/src/gl/textureStreamMMAL.cpp
|
||||
index ff8b184..e515164 100644
|
||||
--- a/src/gl/textureStreamMMAL.cpp
|
||||
+++ b/src/gl/textureStreamMMAL.cpp
|
||||
@@ -615,7 +615,8 @@ TextureStreamMMAL::TextureStreamMMAL() :
|
||||
camera_component(NULL),
|
||||
m_fbo_id(0), m_old_fbo_id(0),
|
||||
m_egl_img(0),
|
||||
- m_vbo(nullptr) {
|
||||
+ m_vbo(nullptr),
|
||||
+ camera_component(NULL) {
|
||||
#ifndef DRIVER_BROADCOM
|
||||
// bcm_host is initialated on the creation of the window in LEGACY
|
||||
bcm_host_init();
|
||||
diff --git a/src/types/sky.cpp b/src/types/sky.cpp
|
||||
new file mode 100644
|
||||
index 0000000..1bfa0c6
|
||||
--- /dev/null
|
||||
+++ b/src/types/sky.cpp
|
||||
@@ -0,0 +1,5 @@
|
||||
+#include "vera/types/sky.h"
|
||||
+
|
||||
+namespace vera {
|
||||
+ SkyData::SkyData() = default;
|
||||
+}
|
||||
diff --git a/src/window.cpp b/src/window.cpp
|
||||
index 35f2249..90d295b 100644
|
||||
--- a/src/window.cpp
|
||||
+++ b/src/window.cpp
|
||||
@@ -49,6 +49,10 @@ static float yScroll = 0.0f;
|
||||
static bool bShift = false;
|
||||
static bool bControl = false;
|
||||
|
||||
+namespace vera {
|
||||
+ WindowProperties::WindowProperties() = default;
|
||||
+}
|
||||
+
|
||||
#if defined(DRIVER_GLFW)
|
||||
|
||||
#if defined(__APPLE__)
|
||||
diff --git a/src/xr/holoPlay.cpp b/src/xr/holoPlay.cpp
|
||||
index b43d087..b8862eb 100644
|
||||
--- a/src/xr/holoPlay.cpp
|
||||
+++ b/src/xr/holoPlay.cpp
|
||||
@@ -15,7 +15,7 @@ static Shader quilt_shader;
|
||||
static int currentViewIndex = 0;
|
||||
|
||||
// QUILT
|
||||
-QuiltProperties::QuiltProperties() {};
|
||||
+QuiltProperties::QuiltProperties() = default;
|
||||
QuiltProperties::QuiltProperties(int _width, int _height, int _cols, int _rows) {
|
||||
width = _width;
|
||||
height = _height;
|
||||
--
|
||||
2.50.0
|
||||
|
||||
9
dev-libs/vera/files/vera.pc.in
Normal file
9
dev-libs/vera/files/vera.pc.in
Normal file
@@ -0,0 +1,9 @@
|
||||
prefix=/usr
|
||||
includedir=${prefix}/include/
|
||||
libdir=${prefix}/@LIBDIR@
|
||||
|
||||
Name: Vera
|
||||
Description: C++/WASM GL Framework
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lvera
|
||||
Cflags: -I${includedir}
|
||||
11
dev-libs/vera/metadata.xml
Normal file
11
dev-libs/vera/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>dangduong31205@gmail.com</email>
|
||||
<name>Nguyen Dinh Dang Duong</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">patriciogonzalezvivo/vera</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
84
dev-libs/vera/vera-20240804-r1.ebuild
Normal file
84
dev-libs/vera/vera-20240804-r1.ebuild
Normal file
@@ -0,0 +1,84 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
CHKSUM="cb117806d14ab2c31db86d5b8cab5c58b791dd6c"
|
||||
|
||||
DESCRIPTION="C++/WASM GL Framework"
|
||||
HOMEPAGE="https://github.com/patriciogonzalezvivo/vera"
|
||||
SRC_URI="https://github.com/patriciogonzalezvivo/vera/archive/${CHKSUM}.tar.gz -> ${PN}-${CHKSUM}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${CHKSUM}"
|
||||
|
||||
LICENSE="Prosperity-3.0.0"
|
||||
SLOT="0"
|
||||
IUSE="X wayland"
|
||||
|
||||
DEPEND="
|
||||
dev-cpp/nlohmann_json
|
||||
media-libs/glm
|
||||
dev-libs/miniz
|
||||
dev-cpp/tinygltf
|
||||
dev-libs/stb
|
||||
dev-libs/miniaudio
|
||||
media-video/ffmpeg
|
||||
media-libs/libsdl2
|
||||
dev-libs/glib
|
||||
media-libs/libpulse
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
|
||||
media-libs/glfw
|
||||
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXi
|
||||
x11-libs/libXxf86vm
|
||||
)
|
||||
|
||||
wayland? (
|
||||
dev-libs/wayland
|
||||
gui-libs/libdecor
|
||||
x11-libs/libxkbcommon
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-Bump-cmake-min-version.patch"
|
||||
"${FILESDIR}/0002-Remove-hardcoded-installation-dir.patch"
|
||||
"${FILESDIR}/0003-Use-dev-libs-stb-package.patch"
|
||||
"${FILESDIR}/0004-Change-include-lines.patch"
|
||||
"${FILESDIR}/0005-Remove-some-bundled-deps.patch"
|
||||
"${FILESDIR}/0006-Fix-in-class-initialization.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
local libdir=$(get_libdir)
|
||||
rm -rf "${S}/deps"{glew,glfw,glm,miniaudio,miniz,stb,tinygltf} || die "delete bundled deps failed"
|
||||
sed \
|
||||
-e "s|@LIBDIR@|${libdir%/}/|g" \
|
||||
-e "s|@VERSION@|${PV}|g" \
|
||||
"${FILESDIR}/vera.pc.in" > vera.pc || die "sed failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local libdir=$(get_libdir)
|
||||
local args=(
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_LIBDIR=${libdir}
|
||||
-DNO_X11="$(usex X OFF ON)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins vera.pc
|
||||
}
|
||||
1
dev-libs/zycore-c/Manifest
Normal file
1
dev-libs/zycore-c/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST zycore-c-1.5.2.tar.gz 65981 BLAKE2B 127e9a0d0da0d0887b85a806deb7a6404913e9ed77afbfa4fd945e139c4102a26d3ae0128812bc8ed1b6da6e1d460217f126c23bbd4c12c888ebcea1f1483049 SHA512 dd410010b99e11f40ad5234d21c9857bd57e47591ed9caec45c6199bfd690f7158499659c874680f2087bfd2b6eee41f08e95c367f83af3585690ce7d20ccb87
|
||||
@@ -0,0 +1,35 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Build documentation only when requested.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -36,6 +36,9 @@ option(ZYAN_FORCE_ASSERTS
|
||||
option(ZYCORE_BUILD_SHARED_LIB
|
||||
"Build shared library"
|
||||
OFF)
|
||||
+option(ZYCORE_BUILD_DOCS
|
||||
+ "Build documentation"
|
||||
+ OFF)
|
||||
option(ZYCORE_BUILD_EXAMPLES
|
||||
"Build examples"
|
||||
OFF)
|
||||
@@ -228,7 +231,8 @@ install(DIRECTORY "include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
# Doxygen documentation #
|
||||
# =============================================================================================== #
|
||||
|
||||
-find_package(Doxygen)
|
||||
+if (ZYCORE_BUILD_DOCS)
|
||||
+find_package(Doxygen REQUIRED)
|
||||
if (DOXYGEN_FOUND)
|
||||
set(DOXYGEN_GENERATE_MAN YES)
|
||||
doxygen_add_docs(ZycoreDoc "include/Zycore/" ALL)
|
||||
@@ -243,6 +247,7 @@ if (DOXYGEN_FOUND)
|
||||
COMPONENT Documentation
|
||||
)
|
||||
endif()
|
||||
+endif()
|
||||
|
||||
# =============================================================================================== #
|
||||
# Developer mode #
|
||||
16
dev-libs/zycore-c/metadata.xml
Normal file
16
dev-libs/zycore-c/metadata.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/zyantific/zycore-c/issues</bugs-to>
|
||||
<remote-id type="github">zyantific/zycore-c</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Internal library providing platform independent types, macros and a fallback
|
||||
for environments without LibC.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
36
dev-libs/zycore-c/zycore-c-1.5.2.ebuild
Normal file
36
dev-libs/zycore-c/zycore-c-1.5.2.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Zyan Core Library for C"
|
||||
HOMEPAGE="https://github.com/zyantific/zycore-c"
|
||||
SRC_URI="https://github.com/zyantific/zycore-c/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
doc? ( app-text/doxygen )
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.5.2-build-documentation-only-when-requested.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DZYCORE_BUILD_SHARED_LIB=yes
|
||||
|
||||
-DZYCORE_BUILD_DOCS=$(usex doc)
|
||||
-DZYCORE_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
1
dev-libs/zydis/Manifest
Normal file
1
dev-libs/zydis/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST zydis-4.1.1.tar.gz 811528 BLAKE2B 65593d836604fe7fbd2991b735f77674e02f7e2bd5f6fdc90a688e162b730c9fc7698a3ba46779f23331ff14fcc0cc204a2da808734ec7ea45772ebcd2328371 SHA512 177e84fedb3449e29ffb6c0b02a92066ba1aa8fb624facad5593902b8e08cb8ae0b20ff38c16987989c8e414d7484d09dab7917c00a8fe54aa9bab4bc90e275d
|
||||
12
dev-libs/zydis/metadata.xml
Normal file
12
dev-libs/zydis/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/zyantific/zydis/issues</bugs-to>
|
||||
<remote-id type="github">zyantific/zydis</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
39
dev-libs/zydis/zydis-4.1.1.ebuild
Normal file
39
dev-libs/zydis/zydis-4.1.1.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Fast and lightweight x86/x86-64 disassembler and code generation library"
|
||||
HOMEPAGE="https://zydis.re"
|
||||
SRC_URI="https://github.com/zyantific/zydis/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc man test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/zycore-c
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
doc? ( app-text/doxygen )
|
||||
man? ( app-text/ronn-ng )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DZYAN_SYSTEM_ZYCORE=yes
|
||||
-DZYDIS_BUILD_EXAMPLES=no
|
||||
-DZYDIS_BUILD_SHARED_LIB=yes
|
||||
|
||||
-DZYDIS_BUILD_DOXYGEN=$(usex doc)
|
||||
-DZYDIS_BUILD_MAN=$(usex man)
|
||||
-DZYDIS_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST colorthief-0.2.1.tar.gz 6164 BLAKE2B 7d05951c5ee6b2ab39aa882f871e5e49cf416f134aa696243e0800d1d7f41fbcb96b32374a2a72bdef3a0e01f9d0987b5789658abd1a6b56ed01a75d888d596b SHA512 33d8f048d6e0fb4b6f3b5a6d7fd53ec8156e1ab4b2fe9c8252d49954929a3046547536ae7cb6d7752c43fd2974b36acffabcc61d733ad462a2504ead36c99da7
|
||||
@@ -1,20 +0,0 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Module for grabbing the color palette from an image"
|
||||
HOMEPAGE="
|
||||
https://github.com/fengsp/color-thief-py
|
||||
https://pypi.org/project/colorthief/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]"
|
||||
@@ -1,2 +1,3 @@
|
||||
DIST fastapi-0.115.13.tar.gz 295680 BLAKE2B 04fa6fec81e25045f6e6601dc6207973fa4afe7b2fe6ebd27645a48f5b6f0a30758581dba947972fbcfb62e6e5dcf119c03f007c9f31ddc80236f1ea7e39d453 SHA512 0c337265d118ce86e1800251caba4f55ece9c8262870000cf5b3b36f21467079043377a136c1c5aa17f96b724c3633cc600c96093192ced7a2ffa18eba7c8171
|
||||
DIST fastapi-0.115.14.tar.gz 296263 BLAKE2B 196cf0043d43b9b03b24198c9c001e1fcd9a37ba608ae0190908024dfb0cff2789f85a8a1b5f9b61f66101df5b28c701638e15f414e446b5a57b64d482d52b9e SHA512 48831b78c6a4738b02ba32327d4cef251e776126180b265877fcf3bab3d7631dbb20434b63c5845781d3dae495cce9fb12ee59e35edc656c8806efbddbfc0e53
|
||||
DIST fastapi-0.116.0.tar.gz 296518 BLAKE2B c3b157e3723bc4491a0cc25215de0cd0deb1b9918c2bcd7a9cdc4eceac3fbe2306c64374c80668aa3bd1a6c62836fdcad373667a75aadc95885e8ae37d14b5d1 SHA512 1b74671b746c77aa31861979187e387b1e867d43985420adc5dee056f9f97104e754c6e6e9cbbfe96a59b83cdc2e3a67bb9f49d954f6f16d08b441e1be1e63bb
|
||||
|
||||
111
dev-python/fastapi/fastapi-0.116.0.ebuild
Normal file
111
dev-python/fastapi/fastapi-0.116.0.ebuild
Normal file
@@ -0,0 +1,111 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=pdm-backend
|
||||
PYTHON_COMPAT=( python3_{12..13} )
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="FastAPI framework, high performance, easy to learn, ready for production"
|
||||
HOMEPAGE="
|
||||
https://fastapi.tiangolo.com/
|
||||
https://pypi.org/project/fastapi/
|
||||
https://github.com/fastapi/fastapi
|
||||
"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/fastapi/fastapi.git"
|
||||
else
|
||||
inherit pypi
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/pydantic-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-1.7.4[${PYTHON_USEDEP}]
|
||||
<dev-python/starlette-0.48.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/starlette-0.40.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.8.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/aiosqlite[${PYTHON_USEDEP}]
|
||||
>=dev-python/anyio-3.2.1[${PYTHON_USEDEP}]
|
||||
dev-python/bcrypt[${PYTHON_USEDEP}]
|
||||
dev-python/dirty-equals[${PYTHON_USEDEP}]
|
||||
dev-python/email-validator[${PYTHON_USEDEP}]
|
||||
>=dev-python/flask-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/inline-snapshot-0.21.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja2-3.1.5[${PYTHON_USEDEP}]
|
||||
dev-python/orjson[${PYTHON_USEDEP}]
|
||||
<dev-python/passlib-2.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/passlib-1.7.2[${PYTHON_USEDEP}]
|
||||
dev-python/pydantic-settings[${PYTHON_USEDEP}]
|
||||
dev-python/pyjwt[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-multipart-0.0.18[${PYTHON_USEDEP}]
|
||||
<dev-python/pyyaml-7.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||
dev-python/sqlmodel[${PYTHON_USEDEP}]
|
||||
dev-python/trio[${PYTHON_USEDEP}]
|
||||
dev-python/ujson[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
# brotli and zstd due to starlette based tests expecting it
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.115.6-httpx-0.28-test-fix.patch"
|
||||
"${FILESDIR}/${PN}-0.115.14-starlette-bump.patch"
|
||||
)
|
||||
|
||||
EPYTEST_PLUGINS=( anyio )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# Depends on coverage
|
||||
"tests/test_fastapi_cli.py::test_fastapi_cli"
|
||||
# Test result affected by unrelated packages such as brotli and zstd
|
||||
# https://github.com/fastapi/fastapi/blob/7c6f2f8fde68f488163376c9e92a59d46c491298/tests/test_tutorial/test_header_param_models/test_tutorial001.py#L77
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial001.py::test_header_param_model_invalid"
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial003.py::test_header_param_model_invalid"
|
||||
"tests/test_tutorial/test_header_param_models/test_tutorial003.py::test_header_param_model_no_underscore"
|
||||
# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6afa196ca0cb1604875847b1b84fa64896a06f6e
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_form"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_file_upload"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_file_bytes"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_multi_form"
|
||||
"tests/test_multipart_installation.py::test_incorrect_multipart_installed_form_file"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_file"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_file_bytes"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_multi_form"
|
||||
"tests/test_multipart_installation.py::test_no_multipart_installed_form_file"
|
||||
"tests/test_multipart_installation.py::test_old_multipart_installed"
|
||||
# Hangs with network-sandbox
|
||||
"tests/test_tutorial/test_websockets/test_tutorial003_py39.py::test_websocket_handle_disconnection"
|
||||
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# Dont install fastapi executable as fastapi-cli is supposed to handle it
|
||||
sed -i -e '/\[project.scripts\]/,/^$/d' pyproject.toml || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "commandline interface" dev-python/fastapi-cli
|
||||
optfeature "test client" dev-python/httpx
|
||||
optfeature "templates" dev-python/jinja2
|
||||
optfeature "forms and file uploads" dev-python/python-multipart
|
||||
optfeature "validate emails" dev-python/email-validator
|
||||
optfeature "uvicorn with uvloop" dev-python/uvicorn
|
||||
optfeature_header "Alternative JSON responses"
|
||||
optfeature "ORJSONResponse" dev-python/orjson
|
||||
optfeature "UJSONResponse" dev-python/ujson
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST pyzstd-0.17.0.tar.gz 1212160 BLAKE2B df758d02d4cb8df504538b0ff9de059a86d15ca1fe362879932f916db9ac057eaa34efb342fcca9c206a8f463201b8f774978727c209cd8799e51152b7ff90c0 SHA512 932bd4b7df026c40aa24c1548237b3decf44109897572b8933d4a2284036998d7bb320d355a71f9ab04509333204072ed78098f6e6c05b997a80f268763a4b28
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python bindings to Zstandard (zstd) compression library"
|
||||
HOMEPAGE="
|
||||
https://github.com/Rogdham/pyzstd
|
||||
https://pypi.org/project/pyzstd/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/zstd:=
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
' 3.{11,12})
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
# we don't need the custom build backend
|
||||
sed -i 's/pyzstd_pep517/setuptools.build_meta/' pyproject.toml || die
|
||||
sed -i "s/'-g0', '-flto'//" setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
DISTUTILS_ARGS=( --dynamic-link-zstd )
|
||||
}
|
||||
|
||||
python_test() {
|
||||
eunittest tests
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST sphinxcontrib-katex-0.9.9.tar.gz 99711 BLAKE2B 75d8e4acd26bb8b83693ea42d8bb05997195252ae34f8484484f094b124ea629b48b2c496d3f7b5252171cda125c63aaf3161c457032f91057662a76a1a40f8d SHA512 aaac916193d01b32e3e10636294abb5285b18f922c7e7c190e0e4dc66f477860058981f50f38a9441323e79be32d9b0585c0e99f90f4074b555229cceb0a8b8f
|
||||
DIST sphinxcontrib_katex-0.9.10.tar.gz 100194 BLAKE2B e821a4f43d57c65eeb1439fc0067cf1200bfd7135dc05b08bbe65f0c695180be94f3c496d2438735f76af3cb49653312c79856b28960a399e8ae10cc47bac4c4 SHA512 43c62a37383920d9e328f16e10b437ffa8ff0bb2f1b9e282d5b1e02de2f2d54a2222ab7b7f2314a80eca710472808502f0f152344ed11e3a54b42441007d875f
|
||||
DIST sphinxcontrib_katex-0.9.11.tar.gz 100476 BLAKE2B 630fc9ae63ad67f0e65d220922ec5e2077933369b7895f7f58575ca262ea1481b568112eaa78d822b9184bc768f5496e936bc1b715c3e6981173c9b9d54a4205 SHA512 426956366977afc6b89a160a1f20bec245a45a6245c994c449440a7ff814e5ca122963be815b57f8a9a5ffdf9e1c3c70be4c1ce05713716df516f4659784900d
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
diff '--color=auto' -Naur a/pyproject.toml b/pyproject.toml
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -7,7 +7,7 @@
|
||||
]
|
||||
description = 'A Sphinx extension for rendering math in HTML pages'
|
||||
readme = 'README.rst'
|
||||
-license = {file = 'LICENSE'}
|
||||
+license-files = ['LICENSE']
|
||||
keywords = [
|
||||
'sphinx',
|
||||
'latex',
|
||||
@@ -19,7 +19,6 @@
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Intended Audience :: Science/Research',
|
||||
'Intended Audience :: Developers',
|
||||
- 'License :: OSI Approved :: MIT License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
@@ -179,6 +178,7 @@
|
||||
#
|
||||
# Find all (sub-)modules of the Python package
|
||||
[tool.setuptools.packages.find]
|
||||
+exclude = ["docs", "tests"]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = 'sphinxcontrib.katex.__version__'}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN=${PN/-/_}
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYPI_PN=${PN/-/_}
|
||||
PYTHON_COMPAT=( python3_{11..13} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -20,8 +21,16 @@ RDEPEND=">=dev-python/sphinx-4.5.0-r1[${PYTHON_USEDEP}]"
|
||||
|
||||
DOCS=()
|
||||
|
||||
PATCHES="
|
||||
${FILESDIR}/${P}_fix_install.patch
|
||||
${FILESDIR}/${PN}-0.9.10_fix_use_tomli.patch
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/insipid-sphinx-theme
|
||||
dev-python/insipid-sphinx-theme \
|
||||
dev-python/tomli
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -1,6 +1,6 @@
|
||||
DIST deblob-0.10.tar.gz 9015 BLAKE2B f7776e6a939116f9f0836d3204c9a6ddab34433dd2b609cc0ad5eb3581682e534980baf586aac22e65e5e85af455602d4d93ca461025a68560ede62ea867af75 SHA512 879fb822f4dec357e99a2d5db61608362735018b59aa4aee1f952f6525769667149f0c406862e6b542184c74efc261db75408469d6c1c70ff18a086878658dd6
|
||||
DIST deblob-0.10.tar.gz.sign 141 BLAKE2B 03256b22f17b8c88d9f6ef95591156e2c7904b8fadc97b2163379000a526106f56908da6d3cbb19a8ea5a97566bcbf1a7fab3cfb1f13fbabbd699d57cba2d0ba SHA512 ceb3fc5a1021686e287fd95602ae78cb616c53e3945f6eea9d56a8ebff49d5ff37634a6b4cda5487140514ec3dd864e88bbb5d98007f4421e2e2a04aa9f6d139
|
||||
DIST deblob-0.9.tar.gz 2062509 BLAKE2B 47170649958cf6a9ad77d8d803aacac7ba20bfb3f8a89cb3e3907d576596ad818a45b7e527583d5deed33acfc667d25f32abc48caa3f91ebd9a4f183ec2857f1 SHA512 8b0521e8cbce0cd861f67f63ba5e9dc8df2c39410771e56b6bb74f144dee156307e2eba72a6cc671a6d53e2cec17801c84c35df553fbdd3e08ff44f76913c549
|
||||
DIST deblob-0.9.tar.gz.sign 305 BLAKE2B 1b2b81f1567c2a217db9bf958ba586e85f5343d7e1f2aa047a4b1cbf9e7728e541a4c02373a4433fcfa113c3ddb365440f81289d9b9ea69a19e12aa0c830ee22 SHA512 1ec3b366a0cacd28ae38d0f68b4ffa40bfd1268fba9d93796a0c1e2fcc9042e9b132c014d960d67736300020d4baed77250ccaa1fce3f01b68935a795bb7b447
|
||||
DIST deblob-0.11.tar.gz 9044 BLAKE2B e16bcc5bf44d0cc6d35cb763b6eb949c6620cd97bd0fda93aa29d2777243bca0ebbfc54c28531b50906f198dea3bf448228aa457053c0ae9e97f7c51b00ebb11 SHA512 c3aa2fdaf72fd8a1b5e4b07cca8462ab917ee5b01447234e862acc7810a98c7dc5427108970059a5c07059020f6dff2e71301debbf14c9347857e03a2ec2de7e
|
||||
DIST deblob-0.11.tar.gz.sign 141 BLAKE2B ff5faac3334d791beecbec919c7d65281b17c4effb017811be9706a50fb1c67f85ac5825a9f8c04bd89ded748d87f5e87b80840d0b76365183d6e7602f5350f9 SHA512 5cd517dc6ed5eb002a67bcee8161dd21554304abedfc3e42f1d8e5ccb7bd5db718ae11ccdb525d5170a8e599249d5bb6ab6fd22d916ab75011b5f83bd8c90a22
|
||||
DIST deblob-test-0.10.tar.gz 2054850 BLAKE2B e4420fdf7076bde62c431862397ee0deeb0a6b79a8f8f4e51b88a1b5b7e23390629c05c2f54b77a2263c22146bf6cb8ed18c51cc01cb9576d29f1f4126699d96 SHA512 bdd5cb4998ae5c0bc39a903f5cbf0f93783d590e8d4a397442aa78a50605cd39a5c6195623706445b7a24e938c9f4861138a75f935924c0930ff3f82bb511443
|
||||
DIST deblob-test-0.10.tar.gz.sign 141 BLAKE2B fc4121172a0cff87cf264097813b52ee4a4f5334bcab09756cbc9aef4b335beed31fb9f44ecd6269231783b0e9ad3de2e8c2fac543ff7158f0f9be55ff9e6008 SHA512 c51f8aa9f403ede2288cb64a9433eecb657f357fefe810fc813ee8d3e7bdd37fe0d3dff0f5fd6239ab1a496f0dc1402406d7c052a746e1004ca9a75aefb09a6b
|
||||
|
||||
@@ -1,18 +1,24 @@
|
||||
# Copyright 2021-2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
|
||||
# Copyright 2021-2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_TEST_V="0.10"
|
||||
|
||||
if [[ "$PV" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.sr.ht/~lanodan/deblob"
|
||||
EGIT_REPO_URI="https://anongit.hacktivis.me/git/deblob.git"
|
||||
else
|
||||
VERIFY_SIG_METHOD=signify
|
||||
inherit verify-sig
|
||||
|
||||
SRC_URI="
|
||||
https://distfiles.hacktivis.me/releases/${P}.tar.gz
|
||||
verify-sig? ( https://distfiles.hacktivis.me/releases/${P}.tar.gz.sign )
|
||||
https://distfiles.hacktivis.me/releases/deblob/${P}.tar.gz
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${MY_TEST_V}.tar.gz )
|
||||
verify-sig? (
|
||||
https://distfiles.hacktivis.me/releases/deblob/${P}.tar.gz.sign
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${MY_TEST_V}.tar.gz.sign )
|
||||
)
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
fi
|
||||
@@ -23,10 +29,13 @@ HOMEPAGE="https://hacktivis.me/projects/deblob"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/hare-0.24.2:=
|
||||
<dev-lang/hare-0.25.2
|
||||
dev-hare/hare-json
|
||||
>=dev-lang/hare-0.25.2:=
|
||||
>=dev-hare/hare-json-0.25.2.0
|
||||
"
|
||||
|
||||
# built by hare
|
||||
@@ -34,9 +43,9 @@ QA_FLAGS_IGNORED="usr/bin/deblob"
|
||||
|
||||
if [[ "${PV}" != "9999" ]]
|
||||
then
|
||||
BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2024 )"
|
||||
BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2025 )"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2024.pub"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2025.pub"
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
@@ -44,9 +53,17 @@ then
|
||||
cd "${DISTDIR}" || die
|
||||
cp ${A} "${WORKDIR}" || die
|
||||
cd "${WORKDIR}" || die
|
||||
|
||||
verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign"
|
||||
use test && verify-sig_verify_detached "deblob-test-${MY_TEST_V}.tar.gz" "deblob-test-${MY_TEST_V}.tar.gz.sign"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
if use test; then
|
||||
rm -r "${WORKDIR}/${P}/test" || die
|
||||
mv "${WORKDIR}/deblob-test-${MY_TEST_V}" "${WORKDIR}/${P}/test" || die
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_TEST_V="0.10"
|
||||
|
||||
if [[ "$PV" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://anongit.hacktivis.me/git/deblob.git"
|
||||
@@ -12,10 +14,10 @@ else
|
||||
|
||||
SRC_URI="
|
||||
https://distfiles.hacktivis.me/releases/deblob/${P}.tar.gz
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${PV}.tar.gz )
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${MY_TEST_V}.tar.gz )
|
||||
verify-sig? (
|
||||
https://distfiles.hacktivis.me/releases/deblob/${P}.tar.gz.sign
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${PV}.tar.gz.sign )
|
||||
test? ( https://distfiles.hacktivis.me/releases/deblob-test/deblob-test-${MY_TEST_V}.tar.gz.sign )
|
||||
)
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
@@ -32,8 +34,8 @@ IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/hare-0.24.2:=
|
||||
dev-hare/hare-json
|
||||
>=dev-lang/hare-0.25.2:=
|
||||
>=dev-hare/hare-json-0.25.2.0
|
||||
"
|
||||
|
||||
# built by hare
|
||||
@@ -53,14 +55,14 @@ then
|
||||
cd "${WORKDIR}" || die
|
||||
|
||||
verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign"
|
||||
use test && verify-sig_verify_detached "deblob-test-${PV}.tar.gz" "deblob-test-${PV}.tar.gz.sign"
|
||||
use test && verify-sig_verify_detached "deblob-test-${MY_TEST_V}.tar.gz" "deblob-test-${MY_TEST_V}.tar.gz.sign"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
if use test; then
|
||||
rm -r "${WORKDIR}/${P}/test" || die
|
||||
mv "${WORKDIR}/deblob-test-${PV}" "${WORKDIR}/${P}/test" || die
|
||||
mv "${WORKDIR}/deblob-test-${MY_TEST_V}" "${WORKDIR}/${P}/test" || die
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
DIST lazygit-0.50.0.tar.gz 5320489 BLAKE2B 0184cbab4cfe8b7c2560029a7daacb80758a87a428b742de06650294278ca4294a87f1a48edea34eed6b85b7acd70a2111f29bf6afcec5d6e2133e949393b588 SHA512 ac8c3260ead242426d87c544555ff147cec0ab37d482a7abbed05f859cf729edcbf69f0bd60358371c2c76ab48b47296c1068dbf8a34ca1aefa3053e844b913b
|
||||
DIST lazygit-0.51.1.tar.gz 5329099 BLAKE2B 04a1fee358f6f90c27ccddd5352956ddaddfe6f9e4e608032bfe5563ab69bd12a8d9f5f7ab25724ec9a489fa3e45fb9865cde00500cecba5ce1b0cf927387a4e SHA512 1300a8b697209981d89e8c1d6eb3e1f39f6a8113dfaeebc5eb29c210044ccfa688865c275a408eaf7f8a697384b5b6e9f817fd55a1a8c70133bf6db0eeadfed2
|
||||
DIST lazygit-0.52.0.tar.gz 5328915 BLAKE2B 3a9200f9e8cecf8a4fba920768cef3f531e190f3996cb947e7034d2d146d88787d5634f9b524320b295504f8c543a0bf956dacbfbde621a95435d0b548201c52 SHA512 aacb8d9a36c919b273c4a448e80fc9c13df581331b6e4cba8dc4af20b8e78f0f7546ffa51e789bd3595f770e46c65906c266e72ae4355d72c7fde36758f7d8f4
|
||||
DIST lazygit-0.53.0.tar.gz 5360932 BLAKE2B c1484fe9ac7a39463ddb766d62ce91c9576b681928eca52fd5ab6d65316970416d7fbe4f9c14783b7bd0c1d5eb2cca81602a3522b36814d199895b86908cb0b3 SHA512 98cb4bf8df07133c677cd977d80b8e3a3f6e53c15505dd2a0241903752188f634ce7cc70a3030a33d9676bafc3c5838e7fd5768a2152b25bb2e74444ae194173
|
||||
|
||||
32
dev-vcs/lazygit/lazygit-0.53.0.ebuild
Normal file
32
dev-vcs/lazygit/lazygit-0.53.0.ebuild
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Simple terminal UI for git commands"
|
||||
HOMEPAGE="https://github.com/jesseduffield/lazygit"
|
||||
SRC_URI="https://github.com/jesseduffield/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD ISC MIT Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="dev-vcs/git"
|
||||
|
||||
DOCS=( {CODE-OF-CONDUCT,CONTRIBUTING,README}.md docs )
|
||||
|
||||
src_compile() {
|
||||
ego build -o bin/lazygit \
|
||||
-ldflags "-X main.version=${PV}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test ./... -short
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/lazygit
|
||||
einstalldocs
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST taisei-1.4.1.tar.xz 219550456 BLAKE2B 640b4e53b4ee4784173a8ba0ea435a75aa547a788e549f56c3dff99f9a36997a3c7c73d857fc86bf7aa10d6c22f3bf826991d3a61147e2ec24771fb96c987ed6 SHA512 7c11ed1c7a7898ca4f43854224c8e55305fcef8312f0d32b488c85fbf16cceaa84fd52948bb81e311095b93254d95ea7eaa8f85c42bbbe54cf81d2702242cb2b
|
||||
DIST taisei-1.4.2.tar.xz 219573092 BLAKE2B 382e6e02013573f4218a073ad9d19cd128f0b4366d3f3f586e8ab4de9a5948ffedd13a22cefc9a8af04cccd2cf0205c9d6c738b125fd332b363606acd5938e4a SHA512 81cb2e354169eac2495fe5aaf65136580240af6bfaf194b0288352a527e0d12e2e7b2eb2510f8f8cf4fc96ed3b5a66934e3d62c8b53b497e7f2cd8be962a5f98
|
||||
DIST taisei-1.4.3.tar.xz 290329696 BLAKE2B 761d42681261baf85a45c2873f2515b28dd4e6211ee955f2e225dcc9af4f08e667ea6f51fa23f6ba9d6c96cbc79bab09d3ecb71d5b7d4b4ff82394c57294e431 SHA512 a9124c13fe22f3e69f36d1931ea2f951c1baacdaf0612993a2588d245728dfb9ec131e2c6c4b04c36cd42d9c8e1a488adf120ec996c0cb627acd5216aed06665
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 2019-2023 Gentoo Authors
|
||||
# Copyright 2019-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit meson python-any-r1 xdg
|
||||
|
||||
@@ -21,18 +21,20 @@ HOMEPAGE="https://taisei-project.org/"
|
||||
LICENSE="MIT CC-BY-4.0 CC0-1.0 public-domain"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc lto zip"
|
||||
IUSE="doc lto +mimalloc zip"
|
||||
|
||||
RDEPEND="
|
||||
dev-util/glslang
|
||||
media-libs/freetype:2
|
||||
media-libs/opusfile
|
||||
>=media-libs/libpng-1.5
|
||||
media-libs/libsdl2
|
||||
media-libs/libsdl3
|
||||
media-libs/libwebp
|
||||
media-libs/opusfile
|
||||
app-arch/zstd
|
||||
sys-libs/zlib
|
||||
dev-libs/openssl:=
|
||||
mimalloc? ( dev-libs/mimalloc:= )
|
||||
zip? ( dev-libs/libzip )
|
||||
"
|
||||
# see: https://github.com/taisei-project/taisei/issues/381
|
||||
@@ -49,6 +51,13 @@ BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
doc? ( dev-python/docutils )"
|
||||
|
||||
# BSD qsort_r(3) and Microsoft qsort_s(3) implicit declarations
|
||||
# https://bugs.gentoo.org/941235
|
||||
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||
qsort_r
|
||||
qsort_s
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version "dev-python/zstandard[${PYTHON_USEDEP}]"
|
||||
}
|
||||
@@ -59,7 +68,7 @@ src_prepare() {
|
||||
meson.build || die "Failed changing doc_path"
|
||||
|
||||
# Remove blobs
|
||||
rm external/basis_universal/OpenCL/lib/*.lib \
|
||||
rm -f external/basis_universal/OpenCL/lib/*.lib \
|
||||
external/basis_universal/webgl_videotest/basis.wasm \
|
||||
external/basis_universal/webgl/transcoder/build/basis_transcoder.wasm \
|
||||
external/basis_universal/webgl/encoder/build/basis_encoder.wasm \
|
||||
@@ -73,6 +82,7 @@ src_configure() {
|
||||
$(meson_feature doc docs)
|
||||
$(meson_use lto b_lto)
|
||||
$(meson_feature zip vfs_zip)
|
||||
-Dallocator=$(usex mimalloc mimalloc libc)
|
||||
-Dstrip=false
|
||||
-Duse_libcrypto=enabled
|
||||
)
|
||||
@@ -1,2 +1 @@
|
||||
DIST quakespasm-0.94.1.tar.gz 9900452 BLAKE2B 21fc363d09e1fbf8f8217d54ad18e38e51e715dc4fe92d591d605b24bae52f9554159c4cc4c97842e6e3e34efb8d422c5a5fe5edc91ae354f97935ae23051047 SHA512 17b7fc74a5e3932b6341c36d957f86ffc01e88013971be2eb4252b57fceecaebeb5cd9a67619ebd38422dfe0fbdbe06a5e5486dcf82ff17fb7d1b0ba664b1cf0
|
||||
DIST quakespasm-0.96.3.tar.gz 11552047 BLAKE2B 70412a86b549995011bf3e68f20f2b997ed22dcc2db49c2c107326f0db58205f14efcfcacb6c29f7c198051b8e4d8fbea42dd489d1b4b368fb7bcc530a70b8f5 SHA512 e8500d566a6cc6532c81823aa7775a48d9edcecc053528477d3c360ba17b8895b5fbda20b2679f571c9996da58d411eed1f975ef9435beb63a3261c14082f18e
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
https://bugs.gentoo.org/795759
|
||||
https://bugs.gentoo.org/887677
|
||||
--- a/Quake/Makefile
|
||||
+++ b/Quake/Makefile
|
||||
@@ -49,7 +49,6 @@ STRIP ?= strip
|
||||
PKG_CONFIG ?= pkg-config
|
||||
|
||||
CPUFLAGS=
|
||||
-LDFLAGS =
|
||||
DFLAGS ?=
|
||||
CFLAGS ?= -Wall -Wno-trigraphs
|
||||
CFLAGS += $(CPUFLAGS)
|
||||
@@ -59,7 +58,6 @@ CFLAGS += -g
|
||||
do_strip=
|
||||
else
|
||||
DFLAGS += -DNDEBUG
|
||||
-CFLAGS += -O2
|
||||
CFLAGS += $(call check_gcc,-fweb,)
|
||||
CFLAGS += $(call check_gcc,-frename-registers,)
|
||||
cmd_strip=$(STRIP) $(1)
|
||||
@@ -9,9 +9,6 @@
|
||||
<email>alexander@tsoy.me</email>
|
||||
<name>Alexander Tsoy</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="sdl2">Use <pkg>media-libs/libsdl2</pkg> instead of <pkg>media-libs/libsdl</pkg></flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">quakespasm</remote-id>
|
||||
</upstream>
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.code.sf.net/p/quakespasm/quakespasm"
|
||||
else
|
||||
SRC_URI="https://downloads.sourceforge.net/project/${PN}/Source/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Modern, cross-platform Quake 1 engine based on FitzQuake"
|
||||
HOMEPAGE="https://quakespasm.sourceforge.net"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="sdl2"
|
||||
|
||||
DEPEND="
|
||||
media-libs/libglvnd
|
||||
media-libs/libmad
|
||||
media-libs/libvorbis
|
||||
sdl2? ( media-libs/libsdl2[opengl] )
|
||||
!sdl2? ( media-libs/libsdl[opengl] )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
DOCS=( Quakespasm.html Quakespasm-Music.txt Quakespasm.txt )
|
||||
|
||||
PATCHES=(
|
||||
# bug 795759, 887677
|
||||
"${FILESDIR}/${P}-makefile.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
cd Quake || die
|
||||
emake COMMON_LIBS="-lm -lOpenGL" USE_SDL2=$(usex sdl2 1 0) STRIP="/bin/true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
dobin Quake/quakespasm
|
||||
}
|
||||
@@ -22,16 +22,16 @@ DIST once_cell-1.20.2.crate 33394 BLAKE2B 79dd394fcf1637adfef28b4159ec653c8b71d2
|
||||
DIST pem-rfc7468-0.7.0.crate 24159 BLAKE2B 478d355dd970b9705ebcf44d74d61ae0694db6de16b2018548fda88546f53e35b965ff72d939def399a49fe97d3c8317a10385ace94b3d552797ec64ace1eb8f SHA512 f47d3b6c7c8bf4547916acc2a3d6671f6c1308e74641419c8f1df810d8bd940aba8f94d361e4cbef3eae3b7f11587cd3996a11be3be41d19111abfcde7a9272a
|
||||
DIST portable-atomic-1.10.0.crate 174760 BLAKE2B 9a05d6162c95f5140709cbd005c1997449fb6373700e8ed3966e3379898e95f3cbdb90b387f1c7deb3f1eb33125378852a7168d0d22b433813f6c082112b0365 SHA512 fb47ab53fe240d5b0824dd068c6dda473d3e71ae6f5dfccaa17262a8b6de0e1dde05d83975e53bbfcf43f10ef5c634fc024f94613937927ae93f1adad1dadb19
|
||||
DIST proc-macro2-1.0.92.crate 52353 BLAKE2B 9aa29fa6f1c56c0392a94a81b4c61953f4d185012cdca37e356817845535da79d7094bf43472ce63109ce479a2fd0cbef4d802afd61daf92c4db303bcac60e7e SHA512 e614f08acc0a7e97ef580479cf5b682378df1ca16f09bfb2296ebb3490a435229dea9d682c621c54ce57e8e1d3b7803eb8ff83c88bd02e07228dba6d02f14aee
|
||||
DIST pyo3-0.24.0.crate 1108432 BLAKE2B 03098e1ed1f2bcb489ab5fbaf2605631f75804ad138591ae88975c287b8e7544e5f70ef7e3261625075498ac00545b79f6c0b5aab3bcdee2897cbbfabc3f7e87 SHA512 2b9be3cc780c48198ccad08c304053c5248d7c3b7a32e8a3eeba48246b962aa71cbf31ab8c49cab9b555933cccd447412761017b477019a35dc2598999fe63ad
|
||||
DIST pyo3-build-config-0.24.0.crate 33982 BLAKE2B 7972eb69fafdfc73ab7e2ef65498a05a5eeb122e332d10db9990d1a7849fc651a9179fa7dba71707150b005258a7f32fe711d7068fac5c5ca071abdb10bdb55d SHA512 f1f571ead6731d1d775210a02df5ca8ef850460eeabfbe04552403477f9d656eebe25a8833ea03b2e2bc7080bdcf9c6ce3b2b3f9b0f746c316ee31b11b5a2365
|
||||
DIST pyo3-ffi-0.24.0.crate 76274 BLAKE2B 2f5873a9b2e6bb6a420056a2cfc063e6e04c184bce58a39498307730aa5e061f277de6e805a70ef2448d4473b0bf32e8413c281438464391ffce457749d43c91 SHA512 2206cfaaa157ce7ab7b480823af0f96524e9d78abab1b042c00fd74f872a8df9e9014a3ab1db28492b750e8ecc8150f6519c3190b7ef297837597b72b64f999a
|
||||
DIST pyo3-macros-0.24.0.crate 8850 BLAKE2B 7470b3c8af49c3da5da979a08051d549255ed2bbf1e77e2e186ed43daa832ffe51c28c732e5d390effb8662f66c5c138a517a07cd0e90a73a4476e9d018eefdd SHA512 e949224b6ff3368f4594eb946859afd777efc43ca9fd436e176eef9d4549bd7428d04cee55ea8af02c8cb066dd9396a405de5ee6290a966ee52a0f1c64fd2749
|
||||
DIST pyo3-macros-backend-0.24.0.crate 71998 BLAKE2B d3cd57fdf2a8b0f750d8f00fa36f32b95f9f13adf9453e0823fec0791ae99af018db6e596205ff9f9f555489cec024e23eb19c53379c09381c0cb209d8a5a695 SHA512 58b06343fa03b2b7aacdafcf219865bbb5b80cc2b28fdf16133a7d43fb7723cd83718e067bf6e01f96b94738bb83cda87d4ac2703d8d59588708d938df8e66eb
|
||||
DIST pyo3-0.25.1.crate 1121993 BLAKE2B 79a982131fc4c4f9292e97bc8d938d236ee9cefb99bb90646a84703660ad506aee8ae1f1e626d985aa62c695722510f2697544581fa5c3a01f193be2bc2779fe SHA512 9c842c89d274dba0c8a3085a8524736245d65f07e5c05bc13fc89167cfdeb1a4ff2b4a9da9467eee918e45d01777473f39bda11efe0052859969d4fdeac1adc6
|
||||
DIST pyo3-build-config-0.25.1.crate 34126 BLAKE2B ca905f1f74e26f38ab63a4f5754055c9dff01f9396f81ece09b7ce067181b657e6746db3b373f7177805f6564d0df0db064b5fcab8160d5edc357e64dd32d0fc SHA512 d6fe4a46111188203a839c8c73b9835f98cd6bc5982868cbcc9f502c5a09b35c3e61117b50ef8372470051b5bc4959731907748ffca89f42f300a3081b7b0467
|
||||
DIST pyo3-ffi-0.25.1.crate 78058 BLAKE2B 351fe00c99008a34a003e50cd4f6d25e6dae5a446928358cd5146ac9924254614724a015ae77d8aade7bcb497cf5e5b5018021ff5d89a8efa6412f5ccb48744e SHA512 35ab63888f49df13fab8b96b87f6c705186173923fd5898abe8730675156426f020ee517019926ba5e06cdb4fc5f91a75f648ce9eba892e9eaf3ee17864a8ec7
|
||||
DIST pyo3-macros-0.25.1.crate 8886 BLAKE2B aad9c975c90ff93429be24287d76edd945578b546a927f54d82b6d4bf184f1f8d426ac112307205346e85999a1e89b097f68310de647f27474790bff01c3517a SHA512 08387f3d1ddb0cc253eed376e6e8ebe5722b31664ec742f16c0454b52f1fbcadbe7720ae9e2d3870fe0ca2690916cf6e3e032f5a3e65d767322c068432f6d470
|
||||
DIST pyo3-macros-backend-0.25.1.crate 76006 BLAKE2B 02225f8591585a6cbea7d6e53503bfbac395253cb0f45c588a2eb38908bf241034412832f2fcf4e9301318b5b9b82a888755d970f544f402a4f0cf9e4a6eefe9 SHA512 4c9006424630ab9bcd5dcdd45fe927a95a40a61757f0950396eb9f0c3f1794772092a19773c102220489cc621ad65d81dbbe459a1be472f6cd3211c50ef33cc2
|
||||
DIST quote-1.0.38.crate 31252 BLAKE2B a3836efbe5c21dec70c684002b47b8fc7cef643c82ee903b537a48bc0707a28106c4b33d98e60ff81e04c7520f7404b1dc4d49446e8d91dded517e476c36e1c2 SHA512 530c47c5e6372b508bf5b2b88a138408a7afa5ef52c47280ed20eccf39f8e97dfc1e0a18c1bd5472efcdc49a7a1e69566333a0a1b4c0b4f0e11e6a7a85bfe8af
|
||||
DIST rand_core-0.6.4.crate 22666 BLAKE2B 8b6b66d50aade877f2779c006f8038db450f808c66d73d79efa66c4178dc03db06f12201bf0e7930181c4b0f4030c49b20cce6eb7839763cf2217cad9710789a SHA512 36c67eb845aa2ccca49d6d680f28d418229bbc5a050729e487fe6b9f9f384fdd7b8d67fc6508b90b79ffb3c26688e72feceb3ecae57d3d7f59338aeb62296f79
|
||||
DIST rustc_version-0.4.1.crate 12245 BLAKE2B 0ed627c560d88e5ade830cc5f72c62f6ba88be3e30d0f8db34761fcd0b284e5b2fc063c240149aabdfb12c8410ecdbe50cb10a3544500b5a020f95a31cd6709c SHA512 7aa8a487ca7411b6d23cae62f7568fa3474a7b1fd1589621071be3428a550ed3b7c4ad68277a8f86849e5900397d7d0e9d678f5d423742a045dc7c660fa6c598
|
||||
DIST semver-1.0.24.crate 31267 BLAKE2B 934f55d953ca52f6c11696889182e1e4c660a6eae3917b15b411d91a18b22c6a1178708caf95da93e70e6ea97c0762ed9154333d60bf0a08b156ca7b50c4077e SHA512 751bb04fb50abfbb92b2612e1d1097f612a1ceee1861852681d6ad67fe459d77a72898903b14f2f01d8185fbbc022c7471913785610c2a8e9d6530e48094869a
|
||||
DIST sha2-0.10.8.crate 26357 BLAKE2B 1d01b381223a931dc631ad3a1191f5378b1d2f3f9f20474c5f020e366624c73b08330ce8dc4bdd3e63b15f647276f533de655b545b77f70fbedc1a1846f44f0a SHA512 3be73133a6b7690e14acaead47914dc92395dca4191fb657a2ea186fefd0ccd94d12a1121d63a26027d9a9c62b775c53202473edc461587b9dcd75472af77785
|
||||
DIST sha2-0.10.9.crate 29271 BLAKE2B 1d614e0efe085cdb40e05726578a9b4ca6bce93f6d3324f5dc0444cb37054912cdaf5d28d468eac2c0046030d920fced2ccd006953b80865ce8a2d43ef3daa81 SHA512 963adeeb4ed8b0e7fc19085e8721ea13e9b3aea5d115ca1b3dbca495ad14810c6450991dd3753807c293c415aaeb1054b8b4124c72e7090cd9e86f09fcbb4f80
|
||||
DIST signature-2.2.0.crate 15531 BLAKE2B c584d9ad52a1ab3cdc129c36cb2ed6dedc40a8d49f7294352a7df8121dc57de78268f15d9ff9ce076abf1dd3c56773daa26ed5ec39c83a600b6a377b51d4db37 SHA512 673a8f6229c795cc8f640fbfe02cd912b41c6359ca23c5ddeb1679f49784b84f109c6c45e6210201c9ca05e441c1be64ce6537e81ccd3589b37be6d0bf50dca7
|
||||
DIST ssh-cipher-0.2.0.crate 10843 BLAKE2B 72984af70ec6d814b688834dbac1337f9ecd0e00c5a2740f1d80464161589430382ed8960baaad98a41f37270395d5d87d1ac7b65630211104c887662786dd2b SHA512 b78e35365fd503418edb9e061c5338f94445b8465fef396ce2c0ce2a18ccf8203f81fb2890eb851798f9cbac0003948a0edead9b2df03a57135d6caae106c6bb
|
||||
DIST ssh-encoding-0.2.0.crate 13600 BLAKE2B d90150f5cc2399d0beb08742280a147e22e8dde23eafb4c36e1054bc156109e273926186f862c79b965c45239d5a7f71bc03f597817be7feeee143b56e50da79 SHA512 bdf0ea0691c140d0ba04db4e465dc2fac0ead483dfde6b998d87563e2dc3eff1b4553689df3bac1811b13c3866bfadc162d8bd807752f56d499690145a2a9662
|
||||
@@ -40,7 +40,7 @@ DIST subtle-2.6.1.crate 14562 BLAKE2B 3cf4940b7a01f04715da1057f6a92b1043a6b86ab2
|
||||
DIST syn-2.0.96.crate 297497 BLAKE2B 68b62de28ad670572096a1d92ff8ed6fb55fee441f2d429edfeffcc48fa1d4f1cd39327540a4216d94a9763b84831956cb7e5c8ce89b81f1dc5767ea5734620d SHA512 ec2e352a5b0b2aa619774c01d7a7767674a44ffe91dea45d3379bf172d13039c3d37f264e98e26b20fe1d86db6d5190f220831c842f3316469d4ae73c2bfddec
|
||||
DIST target-lexicon-0.13.2.crate 27923 BLAKE2B 0761f0ffdc23b9c9df86b384d59611c7b8b5e29ff068f03367ad2fe84cfb6d11e1af149b9338236978e9566fedc51387db9f239d2a602db41045ac3db907faec SHA512 d25e3cc3d679cb6b6f24c03e0c24db9d6ca31b8ed42ac9531bd7637557fbba225a6c8ac4f68a8eaf3569195814d599e668a968afbc73b940a77cbc27552cc90a
|
||||
DIST typenum-1.17.0.crate 42849 BLAKE2B a6d1162050679e2c4ab2467f3a77d301f6861882eb7c9749f31d047f383dd5bd2ed5846ad63eed99ccc04d6ac36cc697a305861e1d65880b4d2ef04ee0a79b94 SHA512 99773d5d9f850c0602db4bb67dd062b0ade6f086e155216f1bb2fb6569461ba7e1b7c2f2af81ea8833bc3bfcf3fe5033edecb7c438adae63f59d3e30cf63a508
|
||||
DIST umu-launcher-1.2.6.tar.gz 168032 BLAKE2B e78a4df435ea99646a71b970adbda64f2533d20da682ceba35b32e175d405df0f78780123c4ad2d02240d887861b3fdc7844df7887a9bdbc41a0e3b01fa42c9c SHA512 f3d2990ce8f45ef1046faf8534bf8059a278909cc5a4fdc8e554182743e73500cffc1a19b3938fcdaeea7c936f167929e25ab7d11c14e7b055e864a5e50954a4
|
||||
DIST umu-launcher-1.2.9.tar.gz 168550 BLAKE2B 24edc5d07d331f5a44faad85490479adbf0bec9c5f790d287dfd3b5d4063df4196f5c3265adf71c19c60ad0ffe6d7cd93e749e2e6547c91096eda15cb3f8b5a9 SHA512 19ea398265353c39d94d236756846f62f339d0cfb3cc7b0e04ecc7d7c47f287aee98a740e1a86a40af324de9cc041e7627accc3205c875109994000f36f0c358
|
||||
DIST unicode-ident-1.0.14.crate 47547 BLAKE2B 30e0b6d7f3a967aaf5b9d91237008a60c3a8ded53bda901696e23cea3931dd71b01ddab866dca9e31e17c395d5f5a68f2a938655b693e894962568c2cff5ca15 SHA512 7c6dcd1724e8cfedc37546d1abd49088b633dad228097acc73d7b6cab255b223e830c541144e05a00388fd8ca8066f27c18792419cfa58ee9da4460a38d0bc0a
|
||||
DIST unindent-0.2.3.crate 7306 BLAKE2B a57407b117e99c230750c7d4a2a0899586c8271e4ba88ecb409c976905c014f42885372c234a75fbfbedf71dbed779f95f735975d150adacdcb61152a49db4c2 SHA512 2f1eb420ea3653b00d3e5fa0c2c105da8fd8a37cb3e699373c168604b799fccd5f0faf0cddce4212d119c2afb0c86b41efc3a50752b83ff7beda2bd84d360505
|
||||
DIST version_check-0.9.5.crate 15554 BLAKE2B 131e75cc287518831e142430e2a39b48e4275874f4473780d47a27552294097aa1cddb65c385583e1022478f940b495eb43c24a8b1617b8ac5a24af3340c0d72 SHA512 d11d5a2240ab0c67ea69db56561ce202201edeef9a8e5eda3d9ae7ab7bb5752d8f343fe7f6536d8383de8d55f9024efa84f66a0c21e69563b7a38c4a628014db
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
Make umu_delta optional.
|
||||
--- a/umu/umu_proton.py
|
||||
+++ b/umu/umu_proton.py
|
||||
@@ -517,7 +517,10 @@ def _get_delta(
|
||||
|
||||
from cbor2 import CBORDecodeError, dumps, loads
|
||||
|
||||
- from .umu_delta import valid_key, valid_signature
|
||||
+ try:
|
||||
+ from .umu_delta import valid_key, valid_signature
|
||||
+ except ImportError:
|
||||
+ return None
|
||||
|
||||
try:
|
||||
cbor = loads(patch)
|
||||
@@ -0,0 +1,15 @@
|
||||
Make umu_delta optional.
|
||||
--- a/umu/umu_proton.py
|
||||
+++ b/umu/umu_proton.py
|
||||
@@ -524,7 +524,10 @@ def _get_delta(
|
||||
from cbor2 import CBORDecodeError, dumps, loads # noqa: PLC0415
|
||||
|
||||
# Ignore. umu_delta is relevant for sys packages when using *-Latest tokens
|
||||
- from .umu_delta import valid_key, valid_signature # noqa: PLC0415
|
||||
+ try:
|
||||
+ from .umu_delta import valid_key, valid_signature # noqa: PLC0415
|
||||
+ except ImportError:
|
||||
+ return None
|
||||
|
||||
try:
|
||||
cbor = loads(patch)
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
CARGO_OPTIONAL=1
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
CRATES="
|
||||
autocfg@1.4.0
|
||||
@@ -33,16 +33,16 @@ CRATES="
|
||||
pem-rfc7468@0.7.0
|
||||
portable-atomic@1.10.0
|
||||
proc-macro2@1.0.92
|
||||
pyo3-build-config@0.24.0
|
||||
pyo3-ffi@0.24.0
|
||||
pyo3-macros-backend@0.24.0
|
||||
pyo3-macros@0.24.0
|
||||
pyo3@0.24.0
|
||||
pyo3-build-config@0.25.1
|
||||
pyo3-ffi@0.25.1
|
||||
pyo3-macros-backend@0.25.1
|
||||
pyo3-macros@0.25.1
|
||||
pyo3@0.25.1
|
||||
quote@1.0.38
|
||||
rand_core@0.6.4
|
||||
rustc_version@0.4.1
|
||||
semver@1.0.24
|
||||
sha2@0.10.8
|
||||
sha2@0.10.9
|
||||
signature@2.2.0
|
||||
ssh-cipher@0.2.0
|
||||
ssh-encoding@0.2.0
|
||||
@@ -1,90 +0,0 @@
|
||||
ACUERDO DE LICENCIA DE USUARIO FINAL
|
||||
|
||||
APLICACIÓN FNMT-RCM DE GENERACIÓN DE CLAVES FUERA DEL NAVEGADOR
|
||||
|
||||
CONFIGURADOR FNMT
|
||||
|
||||
© Copyright 2019 FNMT-RCM. Todos los derechos reservados.
|
||||
|
||||
Acuerdo de Licencia de Usuario Final y Condiciones de Uso (el Acuerdo) de la aplicación informática Configurador FNMT (la Aplicación) titularidad de la Fábrica Nacional de Moneda y Timbre-Real Casa de la Moneda, Entidad Pública Empresarial, Medio Propio (FNMT-RCM), con domicilio institucional en Madrid, calle Jorge Juan, 106. NIF: Q2826004J, ceres@fnmt.es.
|
||||
Lea los términos y condiciones de este Acuerdo detenidamente antes de utilizar la Aplicación. Este es un contrato legalmente vinculante. Al aceptar electrónicamente la descarga y/o instalación de la Aplicación, tanto si se utiliza como si no, usted acepta todos los términos y condiciones de este Acuerdo en nombre suyo y de cualquier entidad o persona que represente o para cuyo dispositivo descargue la Aplicación. Si no está de acuerdo con los términos y condiciones de este Acuerdo, no continúe con el proceso de instalación, no use la Aplicación y elimine todas las descargas/copias en su poder o control.
|
||||
|
||||
OBJETO
|
||||
FNMT-RCM otorga una licencia de uso, no exclusiva, de ámbito mundial y sin derecho a sublicencia de ningún tipo, sobre la aplicación informática Configurador FNMT (la Aplicación) y para los usos definidos en este Acuerdo. La Licencia se otorga a la persona física, jurídica o entidad (Usuario o licenciatario) que descargan y/o instalan y utilizan la Aplicación para la generación de claves criptográficas en el equipo del usuario final. Este es el único propósito de la Aplicación.
|
||||
El usuario final (el Usuario), por el hecho de la descarga y/o instalación de la Aplicación, acepta el presente Acuerdo en toda su extensión, incluyendo la cláusula de responsabilidad y sus exclusiones. No se otorga ningún otro derecho de propiedad industrial o intelectual sobre la Aplicación o la documentación puesta a su disposición.
|
||||
El Usuario debe cumplir con todos los términos y condiciones de este contrato para la descarga, instalación y uso de la Aplicación objeto de este Acuerdo de Licencia.
|
||||
La FNMT-RCM, se reserva el derecho de modificar y evolucionar su Aplicación, así como otros servicios y sistemas de gestión, administración, etc. para su adecuado desarrollo. La FNMT-RCM podrá realizar las modificaciones que sean necesarias en la Aplicación y ofrecer una descarga que actualice la versión anterior de la Aplicación (ya sea con una nueva versión o nueva aplicación o incluir parches, evoluciones o cualesquiera otros elementos técnicos). En estos casos, FNMT-RCM pondrá a disposición del Usuario esta actualización o nueva versión quien podrá decidir si la descarga, o no. Si el Usuario no estuviera de acuerdo con los cambios, tanto de la Aplicación como del Acuerdo, podrá dar por resuelto el contrato y no descargar e instalar la modificación o nueva versión, no pudiendo acceder a las nuevas versiones o aplicaciones, respetando en todo caso lo dispuesto en la cláusula relativa a “Duración y finalización del acuerdo”.
|
||||
|
||||
CONDICIONES DE USO
|
||||
La Aplicación tiene la funcionalidad de generación de claves RSA para la solicitud de los certificados emitidos por la FNMT-RCM y la descarga e instalación del certificado en los navegadores web que el usuario tenga instalados en su equipo, pudiendo el usuario seleccionar si tal generación se realiza en el equipo o en una tarjeta criptográfica que cumpla el estándar PKCS#11. Los usos permitidos se han de referir, únicamente, a su utilización para el propósito definido en este Acuerdo, quedando prohibida su utilización para cualquier otro propósito.
|
||||
El incumplimiento por parte del Usuario de las condiciones de uso de la licencia y en el resto de obligaciones contenidas en este Acuerdo, dará lugar a la inmediata resolución del contrato y a la reclamación de una indemnización por los daños y perjuicios efectivamente causados por el incumplimiento del Acuerdo y, en su caso, por el uso indebido de los derechos de propiedad intelectual e industrial sobre la Aplicación, sus marcas o secretos empresariales.
|
||||
Usos permitidos y no permitidos. Durante la vigencia del presente Acuerdo y posteriormente, el Usuario de la Aplicación (licenciatario) se obliga a no utilizar la Aplicación para otros usos y específicamente y sin que esta descripción tenga carácter limitativo ni exhaustivo, se obliga a:
|
||||
a) No realizar modificación alguna sobre la Aplicación.
|
||||
b) No utilizar técnicas de ingeniería inversa, descompilar, desensamblar, traducir, reconstruir, transformar, cambiar, modificar, alterar de otra manera o extraer la Aplicación o cualquier parte de la Aplicación.
|
||||
c) Descargar, instalar y utilizar la Aplicación en los equipos donde se utilicen los certificados para los propósitos definidos en este Acuerdo.
|
||||
d) No comercializar la Aplicación, tanto con ánimo de lucro como sin él, y tanto de forma aislada como formando parte de un paquete de oferta de servicios para terceros que pudiera competir con la Aplicación.
|
||||
e) No utilizar la Aplicación de forma que resulte contraria a las leyes españolas o que infrinja los derechos de terceros.
|
||||
f) No realizar cracks, copia o vulneración de números de serie de programas o cualquier otra manipulación del contenido de la Aplicación, de este Acuerdo y de cualquier otra documentación técnica puesta a disposición de los Usuarios y del público en general, incluyendo los documentos contractuales que afectaren al desarrollo de la Aplicación, que vulnere derechos de la propiedad intelectual, industrial, secretos comerciales, know-how o cualesquiera otros derechos sobre la Aplicación o que pertenezcan a terceros.
|
||||
g) La recogida y/o utilización de datos personales de otros usuarios sin su consentimiento expreso o contraviniendo lo dispuesto en el Reglamento (UE) 2016/679 del Parlamento Europeo y del Consejo, de 27 de abril de 2016, relativo a la protección de las personas físicas en lo que respecta al tratamiento de sus datos personales y a la libre circulación de estos datos y por el que se deroga la Directiva 95/46/CE (Reglamento general de protección de datos) y la Ley Orgánica 3/2018, de 5 diciembre, de Protección de Datos Personales y Garantía de los Derechos Digitales y resto de normativa comunitaria y española de aplicación.
|
||||
|
||||
PRECIO
|
||||
La licencia, sobre la presente versión de la Aplicación, no tiene coste para el Usuario.
|
||||
|
||||
DURACIÓN Y FINALIZACIÓN DEL ACUERDO
|
||||
Este Acuerdo tiene una duración de un año y se renovará por idénticos períodos de tiempo, siempre que la Aplicación se encuentre instalada en el equipo del Usuario. Se producirá la extinción del presente Acuerdo si el Usuario lo notificara a la FNMT-RCM, o si se produjera la desinstalación de la Aplicación, o cuando se ponga a disposición de los Usuarios una nueva versión de la Aplicación, u otra que la sustituya, y sea descargada en el equipo y aceptados los términos del nuevo Acuerdo.
|
||||
En caso de desinstalación, resolución, rescisión y, en definitiva, extinción de este Acuerdo, por las causas establecidas en el mismo o cualesquiera otras admitidas en Derecho, el Usuario deberá cumplir las obligaciones asumidas con anterioridad a la finalización de este Acuerdo frente a FNMT-RCM y frente a terceros.
|
||||
|
||||
DESCARGA, INSTALACIÓN y DESINSTALACIÓN
|
||||
La descarga del fichero instalable de la Aplicación se realizará desde el enlace “Descarga de Software” de la sede electrónica de la FNMT-RCM: https://www.sede.fnmt.gob.es/descargas/descarga-software, debiendo el usuario seleccionar el sistema operativo del equipo en el que quiera hacer uso de la Aplicación. Una vez descargado el fichero instalable, el usuario deberá ejecutar el mismo con el fin de instalar la Aplicación.
|
||||
En caso de que su navegador web no soporte la generación de claves, esta Aplicación será invocada por las aplicaciones web de la FNMT-RCM durante los procesos de solicitud y descarga de certificados.
|
||||
Si realiza la desinstalación de la Aplicación y su navegador web no soporta la generación de claves, no podrá solicitar y descargar certificados de la FNMT-RCM.
|
||||
Si ha solicitado un certificado con la aplicación instalada y, antes de realizar la descarga e instalación del certificado, desinstala la Aplicación, formatea el disco duro de su ordenador o cambia de equipo, perderá las claves generadas y no podrá realizar la descarga e instalación del certificado solicitado, teniendo que solicitar un nuevo certificado.
|
||||
|
||||
REQUERIMIENTOS MÍNIMOS DEL EQUIPO
|
||||
Los requerimientos mínimos del equipo para la descarga, instalación y uso de la Aplicación son:
|
||||
• Sistema operativo Microsoft Windows 7, 8, 8.1, 10 (en 32 o en 64 bits) y, al menos, uno de los siguientes navegadores: Edge, Internet Explorer 11, Mozilla Firefox 58 o superior y Chrome.
|
||||
• Sistema operativo Apple MacOS (10.13 o superior) y, al menos, uno de los siguientes navegadores: Mozilla Firefox 58 o superior, Chrome y Safari.
|
||||
• Sistema operativo Linux (Debian, Ubuntu, CentOS, RedHat y SuSe) y, al menos, uno de los siguientes navegadores: Mozilla Firefox 58 o superior y Chrome.
|
||||
|
||||
COPIA
|
||||
Siendo, actualmente, la descarga, instalación y uso de carácter gratuito, no se limita al Usuario la realización de copias o descargas de la Aplicación, siempre que estén referidas, exclusivamente, al uso para los fines expresados en este Acuerdo.
|
||||
Recuerde que, según la modalidad de instalación que utilice, una copia de la Aplicación puede quedar en su carpeta de “Descargas” de su equipo (o ubicación similar, según los sistemas operativos), aunque recomendamos que la Aplicación sea siempre descargada desde su ubicación original.
|
||||
|
||||
CESIÓN
|
||||
No se permite la cesión del presente Acuerdo, ni la de la Aplicación, en todo o en parte, ni de ninguno de los derechos que la FNMT-RCM ostenta sobre la mismo, por lo que el usuario final no podrá revenderlo ni transferirlo a terceros, ni podrá arrendar, alquilar o prestar el producto cedido.
|
||||
Cada usuario final ha de aceptar el presente Acuerdo de manera originaria por el hecho de la descarga y/o instalación y posterior uso de la Aplicación.
|
||||
|
||||
PROPIEDAD INTELECTUAL
|
||||
La FNMT-RCM, es la titular en pleno dominio de los derechos de explotación de la Aplicación, desarrollada por su personal y, en su caso, personal contratado a estos efectos y cuenta con todos los derechos de propiedad intelectual e industrial, incluyendo los secretos comerciales, que pueden transferirse.
|
||||
Los derechos de propiedad intelectual e industrial protegen tanto la Aplicación desarrollada por la FNMT-RCM, el código fuente y el código máquina, así como todos los datos, listados, diagramas y esquemas elaborados en la fase de análisis, el manual de instrucciones o los restantes materiales de apoyo, los símbolos de identificación o cualquier copia parcial o total realizada por la propia Entidad o por cualquier otra persona (bajo su encargo), los derechos de copia, las patentes, las marcas, los secretos comerciales y cualquier otro que pudiera surgir en cumplimiento del presente contrato, incluida toda información o documentación que la FNMT-RCM pueda proporcionar al usuario.
|
||||
Para el desarrollo de una parte de la Aplicación, y para la adecuada funcionalidad con otras aplicaciones de las Administraciones, la FNMT-RCM reutiliza código del “Cliente @firma” del Ministerio de Política Territorial y Función Pública, con licencia dual GPLv2 y EUPLv1.1.
|
||||
|
||||
GARANTÍA Y SOPORTE
|
||||
La FNMT-RCM garantiza el buen funcionamiento de la Aplicación tal y como se presenta y para el objeto definido en este Acuerdo. FNMT-RCM, se responsabiliza de que la Aplicación que se descargue desde una ubicación controlada por esta Entidad, está libre de virus y de que ha realizado las pruebas y controles para su buen funcionamiento de conformidad con este Acuerdo. No obstante, lo anterior, no se considerará cubierta por la garantía los supuestos de culpa o negligencia en el manejo o conservación de los equipos donde se instale la Aplicación.
|
||||
Para cualquier duda o problema, puede consultar el apartado “Atención a usuarios” de la sede electrónica de la FNMT-RCM https://www.sede.fnmt.gob.es/soporte-tecnico/atencion-a-usuarios.
|
||||
|
||||
RESPONSABILIDAD
|
||||
FNMT-RCM solo será responsable por los daños y perjuicios efectivamente causados por los actos realizados por esta Entidad cuando su actuación se deba a su culpa o negligencia grave, limitando su responsabilidad hasta un máximo de 2.000€ por persona y reclamación, siempre que queden debidamente acreditados. FNMT-RCM no será, en ningún caso, responsable de las pérdidas o daños, directos o indirectos, emergentes o lucros cesantes sufridos por el Usuario, o por sus empleados o colaboradores, que sean consecuencia del mal funcionamiento del programa, ni del resto de actos u omisiones que se puedan producir por:
|
||||
|
||||
• la pérdida, deterioro o borrado de los certificados de firma electrónica instalados en el equipo del Usuario y los daños o perjuicios derivados de esta circunstancia,
|
||||
• la posible contaminación por virus en los equipos donde se descargue la Aplicación,
|
||||
• las intrusiones de terceros en el equipo y resto de elementos del Usuario,
|
||||
• la configuración defectuosa del equipo o no respetar las condiciones mínimas establecidas en este Acuerdo,
|
||||
• el deterioro o mal uso de los equipos.
|
||||
• cualquier otra consecuencia no definida anteriormente y que cause un daño o perjuicio al Usuario, de la que no deba responder la FNMT-RCM según este Acuerdo.
|
||||
|
||||
FNMT-RCM no responde que la disponibilidad de la Aplicación para su descarga sea continua e ininterrumpida durante el periodo de vigencia del contrato, debido a problemas ajenos a la Entidad como problemas en la red Internet, en las comunicaciones, averías en los equipos servidores y otras posibles contingencias imprevisibles. El Usuario acepta soportar riesgos e imperfecciones o indisponibilidad de los servidores o de las redes y comunicaciones.
|
||||
Por tanto, el Usuario renuncia expresamente a reclamar cualquier responsabilidad, contractual o extracontractual, daños y perjuicios a FNMT-RCM por posibles fallos, lentitud o errores en el acceso y uso de la Aplicación, (con las excepciones antes expresadas).
|
||||
|
||||
PRIVACIDAD
|
||||
En la descarga y uso de la Aplicación, no se recogen, ni tratan, datos de carácter personal de los Usuarios o sus representantes, por ser un software de descarga gratuita sin registro previo. Pueden consultar la Política de Privacidad y el Registro de Actividades de Tratamiento de datos de la FNMT-RCM en http://www.fnmt.es/rgpd y consultar con nuestro Delegado de Protección de Datos: dpd@fnmt.es
|
||||
La FNMT-RCM ha obtenido la certificación ISO/IEC 27001 sobre el Sistema de Gestión de Seguridad de la Información para sistemas de información que dan soporte a la fabricación de documentos de identificación y tarjetas y la prestación de servicios de certificación confiable en relación con la declaración de aplicabilidad vigente a la fecha de emisión del certificado (28/09/2018).
|
||||
|
||||
GENERALIDADES
|
||||
El presente Acuerdo y reemplaza cualquier contrato o acuerdo anterior entre las partes con el mismo objeto y sólo podrá ser modificado por un nuevo Acuerdo aceptado por ambas partes.
|
||||
Si alguna de las cláusulas del presente Acuerdo fuera declarada nula o inaplicable, dicha cláusula se considerará excluida del mismo, sin que implique la completa nulidad del Acuerdo. En este caso las partes harán cuanto esté a su alcance para encontrar una solución equivalente que sea válida y que refleje debidamente sus intenciones.
|
||||
Los encabezamientos de las distintas cláusulas lo son sólo a efectos informativos, y no afectarán, calificarán o ampliarán la interpretación de este Acuerdo.
|
||||
|
||||
LEY APLICABLE Y JURISDICCIÓN
|
||||
El presente Acuerdo se regirá por sus propias cláusulas, y en lo en ellas no dispuesto, por lo previsto en la legislación española.
|
||||
Para cuantas cuestiones o divergencias pudieran suscitarse en relación con el presente Acuerdo, serán competentes, como lugar de cumplimiento de la obligación, los Juzgados y Tribunales de la ciudad de Madrid (España), renunciando las partes al fuero que pudiera corresponderles.
|
||||
57
licenses/Prosperity-3.0.0
Normal file
57
licenses/Prosperity-3.0.0
Normal file
@@ -0,0 +1,57 @@
|
||||
# The Prosperity Public License 3.0.0
|
||||
|
||||
Contributor: $name
|
||||
|
||||
Source Code: $address
|
||||
|
||||
## Purpose
|
||||
|
||||
This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.
|
||||
|
||||
## Agreement
|
||||
|
||||
In order to receive this license, you have to agree to its rules. Those rules are both obligations under that agreement and conditions to your license. Don't do anything with this software that triggers a rule you can't or won't follow.
|
||||
|
||||
## Notices
|
||||
|
||||
Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
|
||||
|
||||
## Commercial Trial
|
||||
|
||||
Limit your use of this software for commercial purposes to a thirty-day trial period. If you use this software for work, your company gets one trial period for all personnel, not one trial per person.
|
||||
|
||||
## Contributions Back
|
||||
|
||||
Developing feedback, changes, or additions that you contribute back to the contributor on the terms of a standardized public software license such as [the Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0), [the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html), [the MIT license](https://spdx.org/licenses/MIT.html), or [the two-clause BSD license](https://spdx.org/licenses/BSD-2-Clause.html) doesn't count as use for a commercial purpose.
|
||||
|
||||
## Personal Uses
|
||||
|
||||
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, doesn't count as use for a commercial purpose.
|
||||
|
||||
## Noncommercial Organizations
|
||||
|
||||
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution doesn't count as use for a commercial purpose regardless of the source of funding or obligations resulting from the funding.
|
||||
|
||||
## Defense
|
||||
|
||||
Don't make any legal claim against anyone accusing this software, with or without changes, alone or with other technology, of infringing any patent.
|
||||
|
||||
## Copyright
|
||||
|
||||
The contributor licenses you to do everything with this software that would otherwise infringe their copyright in it.
|
||||
|
||||
## Patent
|
||||
|
||||
The contributor licenses you to do everything with this software that would otherwise infringe any patents they can license or become able to license.
|
||||
|
||||
## Reliability
|
||||
|
||||
The contributor can't revoke this license.
|
||||
|
||||
## Excuse
|
||||
|
||||
You're excused for unknowingly breaking [Notices](#notices) if you take all practical steps to comply within thirty days of learning you broke the rule.
|
||||
|
||||
## No Liability
|
||||
|
||||
***As far as the law allows, this software comes as is, without any warranty or condition, and the contributor won't be liable to anyone for any damages related to this software or this license, under any kind of legal claim.***
|
||||
1
media-gfx/glslViewer/Manifest
Normal file
1
media-gfx/glslViewer/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST glslViewer-3.2.4.tar.gz 108258877 BLAKE2B 552beedeafed97372f36a307c2ce3f742d4437ae3357cf3fa30c091953bac834aedde5270313f267657317c433b3e5eb2378427a66b5687de3956e99ae65f21b SHA512 20766ad1fe288d4e193849809b5633635b2d3a551cd46c9378f80c8817aeb90180847f2e9540e02f6c5729e0fa7fd51c45b4a1fa5f7e4ed6e397c58ef3e32c47
|
||||
319
media-gfx/glslViewer/files/0001-Fix-CMakelists.patch
Normal file
319
media-gfx/glslViewer/files/0001-Fix-CMakelists.patch
Normal file
@@ -0,0 +1,319 @@
|
||||
From e692a65ee828896d6d08f9b8b6e8cb0cb04ee2eb Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 23:00:42 +0700
|
||||
Subject: [PATCH 1/2] Fix CMakelists
|
||||
|
||||
---
|
||||
CMakeLists.txt | 226 +++++++++++++++++++++++--------------------------
|
||||
1 file changed, 104 insertions(+), 122 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0a90b18..672e9b9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -13,12 +13,8 @@ set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
-# The compiled vera
|
||||
-add_subdirectory(deps)
|
||||
-
|
||||
-if(MSVC)
|
||||
- add_definitions( -DPLATFORM_WINDOWS )
|
||||
-endif()
|
||||
+find_package(PkgConfig REQUIRED)
|
||||
+include_directories(${PROJECT_SOURCE_DIR}/deps)
|
||||
|
||||
if (NO_X11 OR FORCE_GBM)
|
||||
add_compile_options(-std=c++14 -DGLM_FORCE_CXX14 -fpermissive -Wno-psabi -lpthread)
|
||||
@@ -38,7 +34,7 @@ set(CORE_HEADERS
|
||||
"${PROJECT_SOURCE_DIR}/src/core/tools/tracker.h"
|
||||
)
|
||||
|
||||
-set(CORE_SOURCES
|
||||
+set(CORE_SOURCES
|
||||
"${PROJECT_SOURCE_DIR}/src/core/sandbox.cpp"
|
||||
"${PROJECT_SOURCE_DIR}/src/core/sceneRender.cpp"
|
||||
"${PROJECT_SOURCE_DIR}/src/core/uniforms.cpp"
|
||||
@@ -48,22 +44,24 @@ set(CORE_SOURCES
|
||||
"${PROJECT_SOURCE_DIR}/src/core/tools/tracker.cpp"
|
||||
)
|
||||
|
||||
-add_executable(glslViewer
|
||||
+add_executable(glslViewer
|
||||
"${PROJECT_SOURCE_DIR}/src/main.cpp"
|
||||
${CORE_SOURCES}
|
||||
)
|
||||
|
||||
-
|
||||
-include_directories(deps/liblo)
|
||||
-target_include_directories(glslViewer PRIVATE deps)
|
||||
+# Vera
|
||||
+pkg_check_modules(VERA REQUIRED vera)
|
||||
+include_directories(${VERA_INCLUDE_DIRS})
|
||||
+link_libraries(${VERA_LIBRARIES})
|
||||
target_link_libraries(glslViewer PRIVATE vera)
|
||||
+
|
||||
# target_compile_definitions(vera PUBLIC SUPPORT_PLY_BINARY)
|
||||
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_MAJOR=${VERSION_MAJOR})
|
||||
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_MINOR=${VERSION_MINOR})
|
||||
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_PATCH=${VERSION_PATCH})
|
||||
|
||||
-if (EMSCRIPTEN)
|
||||
-
|
||||
+if (EMSCRIPTEN)
|
||||
+
|
||||
set(LFLAGS "${LFLAGS} -s USE_GLFW=3")
|
||||
# set(LFLAGS "${LFLAGS} -s FULL_ES2=1")
|
||||
# set(LFLAGS "${LFLAGS} -s FULL_ES3=1")
|
||||
@@ -78,17 +76,18 @@ if (EMSCRIPTEN)
|
||||
set(LFLAGS "${LFLAGS} -s NO_DYNAMIC_EXECUTION=1")
|
||||
# set(LFLAGS "${LFLAGS} -s NO_DISABLE_EXCEPTION_CATCHING")
|
||||
|
||||
- # Copy the default index.html
|
||||
+ # Copy the default index.html
|
||||
file(COPY assets/index.html DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
- # Add examples folder to the .data file system
|
||||
+ # Add examples folder to the .data file system
|
||||
file(COPY examples DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
set(LFLAGS "${LFLAGS} --preload-file examples")
|
||||
|
||||
set_target_properties(glslViewer PROPERTIES LINK_FLAGS "${LFLAGS}")
|
||||
target_link_libraries(glslViewer PRIVATE glfw webxr)
|
||||
-
|
||||
+
|
||||
else()
|
||||
+ # Curses
|
||||
find_package(Curses)
|
||||
if (CURSES_FOUND)
|
||||
target_compile_definitions(glslViewer PUBLIC SUPPORT_NCURSES)
|
||||
@@ -96,8 +95,28 @@ else()
|
||||
target_link_libraries(glslViewer PRIVATE ${CURSES_LIBRARY})
|
||||
endif()
|
||||
|
||||
- target_compile_definitions(glslViewer PUBLIC
|
||||
- SUPPORT_MULTITHREAD_RECORDING
|
||||
+ find_library(TINFO_LIB tinfo)
|
||||
+ if (TINFO_LIB)
|
||||
+ target_link_libraries(glslViewer PRIVATE ${TINFO_LIB})
|
||||
+ endif()
|
||||
+
|
||||
+ # OpenGL
|
||||
+ set(OpenGL_GL_PREFERENCE GLVND)
|
||||
+ find_package(OpenGL REQUIRED)
|
||||
+ target_include_directories(glslViewer PRIVATE ${OPENGL_INCLUDE_DIR})
|
||||
+ target_link_libraries(glslViewer PRIVATE OpenGL::GL)
|
||||
+
|
||||
+ # Liblo
|
||||
+ pkg_check_modules(LIBLO REQUIRED liblo)
|
||||
+ target_include_directories(glslViewer PRIVATE ${LIBLO_INCLUDE_DIRS})
|
||||
+ target_link_libraries(glslViewer PRIVATE ${LIBLO_LIBRARIES})
|
||||
+
|
||||
+ # Glm
|
||||
+ find_package(glm REQUIRED)
|
||||
+ target_include_directories(glslViewer PRIVATE ${GLM_INCLUDE_DIRS})
|
||||
+
|
||||
+ target_compile_definitions(glslViewer PUBLIC
|
||||
+ SUPPORT_MULTITHREAD_RECORDING
|
||||
SUPPORT_OSC
|
||||
)
|
||||
|
||||
@@ -127,105 +146,73 @@ else()
|
||||
# set a default system name - use CMake setting (Linux|Windows|...)
|
||||
set(SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
|
||||
|
||||
- # for msvc the SYSTEM_NAME is set win32/64 instead of "Windows"
|
||||
- if(MSVC)
|
||||
- if(CMAKE_CL_64)
|
||||
- set(SYSTEM_NAME "win64")
|
||||
- else()
|
||||
- set(SYSTEM_NAME "win32")
|
||||
- endif()
|
||||
- endif()
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-${SYSTEM_NAME}-${SYSTEM_ARCH}")
|
||||
|
||||
- if (MSVC)
|
||||
- target_link_libraries(glslViewer PRIVATE
|
||||
- lo_static
|
||||
- Ws2_32.lib
|
||||
- Iphlpapi.lib
|
||||
+ target_link_libraries(glslViewer PRIVATE pthread dl)
|
||||
+ install(TARGETS glslViewer DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
+
|
||||
+ if (NOT APPLE)
|
||||
+ target_link_libraries(glslViewer PRIVATE atomic)
|
||||
+
|
||||
+ # Install glslViewer Icon
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.png" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.desktop" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
+
|
||||
+ # Install supported MIME file types by GlslViewer
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer-types.xml" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
|
||||
+
|
||||
+ # Add a thumbnailer for 3D Models
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.thumbnailer" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/thumbnailers)
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslThumbnailer.sh"
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
+ RENAME "glslThumbnailer")
|
||||
+
|
||||
+ # Add ScreenSaver script
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.py"
|
||||
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
+ RENAME "glslScreenSaver")
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.frag" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glslViewer")
|
||||
+ install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.yaml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glslViewer")
|
||||
+
|
||||
+ find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu)
|
||||
+ execute_process(COMMAND ${XDG-DESKTOP-MENU_EXECUTABLE} install --novendor ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop)
|
||||
+
|
||||
+ # set(CPACK_GENERATOR "DEB")
|
||||
+ set(DEBSRC_BUILD_DEPENDS debhelper git cmake xorg-dev libgbm-dev libglu1-mesa-dev libavcodec-dev libavfilter-dev libavdevice-dev libavformat-dev libavutil-dev libswscale-dev libv4l-dev libjpeg-dev libpng-dev libtiff-dev)
|
||||
+ set(DEBSRC_PACKAGE_DEPENDS ffmpeg libavcodec-extra libavfilter-extra xorg-x11-server-Xvfb )
|
||||
+
|
||||
+ set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||
+
|
||||
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS)
|
||||
+ foreach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
+ set(CPACK_DEBIAN_PACKAGE_DEPEND "${CPACK_DEBIAN_PACKAGE_DEPENDS}, ${DEP}")
|
||||
+ endforeach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
+
|
||||
+ set(CPACK_DEBIAN_BUILD_DEPENDS)
|
||||
+ foreach(DEP ${DEBSRC_BUILD_DEPENDS})
|
||||
+ set(CPACK_DEBIAN_BUILD_DEPENDS "${CPACK_DEBIAN_BUILD_DEPENDS}, ${DEP}")
|
||||
+ endforeach(DEP ${DEBSRC_BUILD_DEPENDS})
|
||||
+
|
||||
+ # find out and set DEB_ARCHITECTURE
|
||||
+ execute_process(
|
||||
+ COMMAND dpkg --print-architecture
|
||||
+ OUTPUT_VARIABLE DEB_ARCHITECTURE
|
||||
+ OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
-
|
||||
- install(TARGETS glslViewer)
|
||||
- set(CPACK_GENERATOR "ZIP")
|
||||
-
|
||||
- else()
|
||||
- target_link_libraries(glslViewer PRIVATE pthread dl lo_static)
|
||||
- install(TARGETS glslViewer DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
-
|
||||
- if (NOT APPLE)
|
||||
- target_link_libraries(glslViewer PRIVATE atomic)
|
||||
-
|
||||
- # Install glslViewer Icon
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.png" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.desktop" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
-
|
||||
- # Install supported MIME file types by GlslViewer
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer-types.xml" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
|
||||
- find_program(XDG-MIME_EXECUTABLE xdg-mime)
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} install --novendor ${CMAKE_INSTALL_FULL_DATAROOTDIR}/mime/packages/glslViewer-types.xml)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/lst)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/ply)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/obj)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/gltf-binary)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/gltf+json)")
|
||||
- find_program(UPDATE_MIME_DATABASE update-mime-database)
|
||||
- install(CODE "execute_process(COMMAND ${UPDATE_MIME_DATABASE} ${CMAKE_INSTALL_FULL_DATAROOTDIR}/mime )")
|
||||
- find_program(UPDATE_DESKTOP_DATABASE update-desktop-database)
|
||||
- install(CODE "execute_process(COMMAND ${UPDATE_DESKTOP_DATABASE} ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)")
|
||||
-
|
||||
- # Add a thumbnailer for 3D Models
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.thumbnailer" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/thumbnailers)
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslThumbnailer.sh"
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
- RENAME "glslThumbnailer")
|
||||
-
|
||||
- # Add ScreenSaver script
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.py"
|
||||
- PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
- RENAME "glslScreenSaver")
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.frag" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glslViewer")
|
||||
- install(FILES "${PROJECT_SOURCE_DIR}/assets/glslScreenSaver.yaml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glslViewer")
|
||||
-
|
||||
- find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu)
|
||||
- execute_process(COMMAND ${XDG-DESKTOP-MENU_EXECUTABLE} install --novendor ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop)
|
||||
-
|
||||
- # set(CPACK_GENERATOR "DEB")
|
||||
- set(DEBSRC_BUILD_DEPENDS debhelper git cmake xorg-dev libgbm-dev libglu1-mesa-dev libavcodec-dev libavfilter-dev libavdevice-dev libavformat-dev libavutil-dev libswscale-dev libv4l-dev libjpeg-dev libpng-dev libtiff-dev)
|
||||
- set(DEBSRC_PACKAGE_DEPENDS ffmpeg libavcodec-extra libavfilter-extra xorg-x11-server-Xvfb )
|
||||
-
|
||||
- set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||
-
|
||||
- set(CPACK_DEBIAN_PACKAGE_DEPENDS)
|
||||
- foreach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
- set(CPACK_DEBIAN_PACKAGE_DEPEND "${CPACK_DEBIAN_PACKAGE_DEPENDS}, ${DEP}")
|
||||
- endforeach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
-
|
||||
- set(CPACK_DEBIAN_BUILD_DEPENDS)
|
||||
- foreach(DEP ${DEBSRC_BUILD_DEPENDS})
|
||||
- set(CPACK_DEBIAN_BUILD_DEPENDS "${CPACK_DEBIAN_BUILD_DEPENDS}, ${DEP}")
|
||||
- endforeach(DEP ${DEBSRC_BUILD_DEPENDS})
|
||||
-
|
||||
- # find out and set DEB_ARCHITECTURE
|
||||
- execute_process(
|
||||
- COMMAND dpkg --print-architecture
|
||||
- OUTPUT_VARIABLE DEB_ARCHITECTURE
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
- )
|
||||
- message(STATUS "package_details.cmake: your architecture is ${DEB_ARCHITECTURE}")
|
||||
-
|
||||
- set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})
|
||||
- set(CPACK_DEBIAN_PACKAGE_SECTION graphics)
|
||||
- set(CPACK_DEBIAN_PACKAGE_PRIORITY extra )
|
||||
- set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Patricio Gonzalez Vivo <patriciogonzalezvivo@gmail.com>")
|
||||
- set(CPACK_DEBIAN_DISTRIBUTION_NAME ubuntu )
|
||||
- set(CPACK_DEBIAN_DISTRIBUTION_RELEASES bionic focal )
|
||||
- set(CPACK_DEBIAN_CHANGELOG " * Latest development version.")
|
||||
- # set(CPACK_DEBIAN_RESOURCE_FILE_CHANGELOG ${PROJECT_SOURCE_DIR}/changelog)
|
||||
- # set(CPACK_DEBIAN_UPDATE_CHANGELOG ON)
|
||||
- set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-${DEB_ARCHITECTURE}")
|
||||
- endif()
|
||||
-
|
||||
+ message(STATUS "package_details.cmake: your architecture is ${DEB_ARCHITECTURE}")
|
||||
+
|
||||
+ set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})
|
||||
+ set(CPACK_DEBIAN_PACKAGE_SECTION graphics)
|
||||
+ set(CPACK_DEBIAN_PACKAGE_PRIORITY extra )
|
||||
+ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Patricio Gonzalez Vivo <patriciogonzalezvivo@gmail.com>")
|
||||
+ set(CPACK_DEBIAN_DISTRIBUTION_NAME ubuntu )
|
||||
+ set(CPACK_DEBIAN_DISTRIBUTION_RELEASES bionic focal )
|
||||
+ set(CPACK_DEBIAN_CHANGELOG " * Latest development version.")
|
||||
+ # set(CPACK_DEBIAN_RESOURCE_FILE_CHANGELOG ${PROJECT_SOURCE_DIR}/changelog)
|
||||
+ # set(CPACK_DEBIAN_UPDATE_CHANGELOG ON)
|
||||
+ set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-${DEB_ARCHITECTURE}")
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
@@ -233,12 +220,8 @@ else()
|
||||
endif()
|
||||
|
||||
if (PYTHON_BINDINGS)
|
||||
- find_package(Python3 3.10 REQUIRED COMPONENTS Interpreter Development)
|
||||
-
|
||||
- # pybind11
|
||||
- set(DEPS_FOLDER "${PROJECT_SOURCE_DIR}/deps")
|
||||
- add_subdirectory("${DEPS_FOLDER}/pybind11")
|
||||
- include_directories(${pybind11_INCLUDE_DIRS})
|
||||
+ find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
|
||||
+ find_package(pybind11 REQUIRED)
|
||||
|
||||
set(PYBIND_INCLUDES
|
||||
"${PROJECT_SOURCE_DIR}/src/python/engine.h"
|
||||
@@ -255,7 +238,6 @@ if (PYTHON_BINDINGS)
|
||||
target_compile_definitions(PyGlslViewer PRIVATE GLSLVIEWER_VERSION_MAJOR=${VERSION_MAJOR})
|
||||
target_compile_definitions(PyGlslViewer PRIVATE GLSLVIEWER_VERSION_MINOR=${VERSION_MINOR})
|
||||
target_compile_definitions(PyGlslViewer PRIVATE GLSLVIEWER_VERSION_PATCH=${VERSION_PATCH})
|
||||
- target_include_directories(PyGlslViewer PUBLIC ${DEPS_FOLDER})
|
||||
target_link_libraries(PyGlslViewer PRIVATE vera pybind11::module)
|
||||
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+endif()
|
||||
--
|
||||
2.50.0
|
||||
|
||||
@@ -1,182 +0,0 @@
|
||||
From 5fe84056dceee18e99cfcc490330475ac2fd7b6c Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Sat, 28 Jun 2025 04:31:30 +0700
|
||||
Subject: [PATCH 1/2] Removed unsafe post-install MIME and desktop database
|
||||
updates to avoid sandbox violations
|
||||
|
||||
Signed-off-by: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 55 ++++++++++++++++++++------------------------------
|
||||
1 file changed, 22 insertions(+), 33 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6df0206..a7b041c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -5,7 +5,7 @@ set(VERSION_MINOR 3)
|
||||
set(VERSION_PATCH 0)
|
||||
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||
|
||||
-project(glslViewer
|
||||
+project(glslViewer
|
||||
VERSION ${VERSION}
|
||||
LANGUAGES C CXX )
|
||||
|
||||
@@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
-# The compiled vera
|
||||
+# The compiled vera
|
||||
add_subdirectory(deps)
|
||||
|
||||
if(MSVC)
|
||||
@@ -38,7 +38,7 @@ set(CORE_HEADERS
|
||||
"${PROJECT_SOURCE_DIR}/src/core/tools/tracker.h"
|
||||
)
|
||||
|
||||
-set(CORE_SOURCES
|
||||
+set(CORE_SOURCES
|
||||
"${PROJECT_SOURCE_DIR}/src/core/sandbox.cpp"
|
||||
"${PROJECT_SOURCE_DIR}/src/core/sceneRender.cpp"
|
||||
"${PROJECT_SOURCE_DIR}/src/core/uniforms.cpp"
|
||||
@@ -48,7 +48,7 @@ set(CORE_SOURCES
|
||||
"${PROJECT_SOURCE_DIR}/src/core/tools/tracker.cpp"
|
||||
)
|
||||
|
||||
-add_executable(glslViewer
|
||||
+add_executable(glslViewer
|
||||
"${PROJECT_SOURCE_DIR}/src/main.cpp"
|
||||
${CORE_SOURCES}
|
||||
)
|
||||
@@ -63,8 +63,8 @@ target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_MAJOR=${VERSION
|
||||
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_MINOR=${VERSION_MINOR})
|
||||
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_PATCH=${VERSION_PATCH})
|
||||
|
||||
-if (EMSCRIPTEN)
|
||||
-
|
||||
+if (EMSCRIPTEN)
|
||||
+
|
||||
set(LFLAGS "${LFLAGS} -s USE_GLFW=3")
|
||||
# set(LFLAGS "${LFLAGS} -s FULL_ES2=1")
|
||||
# set(LFLAGS "${LFLAGS} -s FULL_ES3=1")
|
||||
@@ -79,16 +79,16 @@ if (EMSCRIPTEN)
|
||||
set(LFLAGS "${LFLAGS} -s NO_DYNAMIC_EXECUTION=1")
|
||||
# set(LFLAGS "${LFLAGS} -s NO_DISABLE_EXCEPTION_CATCHING")
|
||||
|
||||
- # Copy the default index.html
|
||||
+ # Copy the default index.html
|
||||
file(COPY assets/index.html DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
|
||||
- # Add examples folder to the .data file system
|
||||
+ # Add examples folder to the .data file system
|
||||
file(COPY examples DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
set(LFLAGS "${LFLAGS} --preload-file examples")
|
||||
|
||||
set_target_properties(glslViewer PROPERTIES LINK_FLAGS "${LFLAGS}")
|
||||
target_link_libraries(glslViewer PRIVATE glfw webxr)
|
||||
-
|
||||
+
|
||||
else()
|
||||
find_package(Curses)
|
||||
if (CURSES_FOUND)
|
||||
@@ -97,8 +97,8 @@ else()
|
||||
target_link_libraries(glslViewer PRIVATE ${CURSES_LIBRARY})
|
||||
endif()
|
||||
|
||||
- target_compile_definitions(glslViewer PUBLIC
|
||||
- SUPPORT_MULTITHREAD_RECORDING
|
||||
+ target_compile_definitions(glslViewer PUBLIC
|
||||
+ SUPPORT_MULTITHREAD_RECORDING
|
||||
SUPPORT_OSC
|
||||
)
|
||||
|
||||
@@ -139,9 +139,9 @@ else()
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-${SYSTEM_NAME}-${SYSTEM_ARCH}")
|
||||
|
||||
if (MSVC)
|
||||
- target_link_libraries(glslViewer PRIVATE
|
||||
- lo_static
|
||||
- Ws2_32.lib
|
||||
+ target_link_libraries(glslViewer PRIVATE
|
||||
+ lo_static
|
||||
+ Ws2_32.lib
|
||||
Iphlpapi.lib
|
||||
)
|
||||
|
||||
@@ -151,28 +151,17 @@ else()
|
||||
else()
|
||||
target_link_libraries(glslViewer PRIVATE pthread dl lo_static)
|
||||
install(TARGETS glslViewer DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
-
|
||||
+
|
||||
if (NOT APPLE)
|
||||
target_link_libraries(glslViewer PRIVATE atomic)
|
||||
|
||||
# Install glslViewer Icon
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.png" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps)
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.desktop" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
-
|
||||
+
|
||||
# Install supported MIME file types by GlslViewer
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer-types.xml" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/mime/packages)
|
||||
- find_program(XDG-MIME_EXECUTABLE xdg-mime)
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} install --novendor ${CMAKE_INSTALL_FULL_DATAROOTDIR}/mime/packages/glslViewer-types.xml)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/lst)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/ply)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/obj)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/gltf-binary)")
|
||||
- install(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} default ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/glslViewer.desktop model/gltf+json)")
|
||||
- find_program(UPDATE_MIME_DATABASE update-mime-database)
|
||||
- install(CODE "execute_process(COMMAND ${UPDATE_MIME_DATABASE} ${CMAKE_INSTALL_FULL_DATAROOTDIR}/mime )")
|
||||
- find_program(UPDATE_DESKTOP_DATABASE update-desktop-database)
|
||||
- install(CODE "execute_process(COMMAND ${UPDATE_DESKTOP_DATABASE} ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)")
|
||||
-
|
||||
+
|
||||
# Add a thumbnailer for 3D Models
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/assets/glslViewer.thumbnailer" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/thumbnailers)
|
||||
install(FILES "${PROJECT_SOURCE_DIR}/assets/glslThumbnailer.sh"
|
||||
@@ -200,7 +189,7 @@ else()
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS)
|
||||
foreach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPEND "${CPACK_DEBIAN_PACKAGE_DEPENDS}, ${DEP}")
|
||||
- endforeach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
+ endforeach(DEP ${DEBSRC_PACKAGE_DEPENDS})
|
||||
|
||||
set(CPACK_DEBIAN_BUILD_DEPENDS)
|
||||
foreach(DEP ${DEBSRC_BUILD_DEPENDS})
|
||||
@@ -211,7 +200,7 @@ else()
|
||||
execute_process(
|
||||
COMMAND dpkg --print-architecture
|
||||
OUTPUT_VARIABLE DEB_ARCHITECTURE
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
+ OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
message(STATUS "package_details.cmake: your architecture is ${DEB_ARCHITECTURE}")
|
||||
|
||||
@@ -220,13 +209,13 @@ else()
|
||||
set(CPACK_DEBIAN_PACKAGE_PRIORITY extra )
|
||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Patricio Gonzalez Vivo <patriciogonzalezvivo@gmail.com>")
|
||||
set(CPACK_DEBIAN_DISTRIBUTION_NAME ubuntu )
|
||||
- set(CPACK_DEBIAN_DISTRIBUTION_RELEASES bionic focal )
|
||||
+ set(CPACK_DEBIAN_DISTRIBUTION_RELEASES bionic focal )
|
||||
set(CPACK_DEBIAN_CHANGELOG " * Latest development version.")
|
||||
# set(CPACK_DEBIAN_RESOURCE_FILE_CHANGELOG ${PROJECT_SOURCE_DIR}/changelog)
|
||||
# set(CPACK_DEBIAN_UPDATE_CHANGELOG ON)
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}-${DEB_ARCHITECTURE}")
|
||||
endif()
|
||||
-
|
||||
+
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
@@ -259,4 +248,4 @@ if (PYTHON_BINDINGS)
|
||||
target_include_directories(PyGlslViewer PUBLIC ${DEPS_FOLDER})
|
||||
target_link_libraries(PyGlslViewer PRIVATE vera pybind11::module)
|
||||
|
||||
-endif()
|
||||
\ No newline at end of file
|
||||
+endif()
|
||||
--
|
||||
2.50.0
|
||||
|
||||
@@ -0,0 +1,281 @@
|
||||
From 9e2959b03e256ec9a3d43e1bcaa4c5ddd595c69c Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Thu, 10 Jul 2025 23:25:00 +0700
|
||||
Subject: [PATCH 2/2] Cast getExposure() result to float to setUniform
|
||||
|
||||
---
|
||||
src/core/uniforms.cpp | 70 +++++++++++++++++++++----------------------
|
||||
1 file changed, 35 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/src/core/uniforms.cpp b/src/core/uniforms.cpp
|
||||
index 4182977..3b76f23 100644
|
||||
--- a/src/core/uniforms.cpp
|
||||
+++ b/src/core/uniforms.cpp
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
std::string UniformData::getType() {
|
||||
if (size == 1) return (bInt ? "int" : "float");
|
||||
- else return (bInt ? "ivec" : "vec") + vera::toString(size);
|
||||
+ else return (bInt ? "ivec" : "vec") + vera::toString(size);
|
||||
}
|
||||
|
||||
void UniformData::set(const UniformValue &_value, size_t _size, bool _int, bool _queue) {
|
||||
@@ -27,13 +27,13 @@ void UniformData::set(const UniformValue &_value, size_t _size, bool _int, bool
|
||||
queue.push( _value );
|
||||
else
|
||||
value = _value;
|
||||
-
|
||||
+
|
||||
change = true;
|
||||
}
|
||||
|
||||
void UniformData::parse(const std::vector<std::string>& _command, size_t _start, bool _queue) {;
|
||||
UniformValue candidate;
|
||||
- for (size_t i = _start; i < _command.size() && i < 5; i++)
|
||||
+ for (size_t i = _start; i < _command.size() && i < 5; i++)
|
||||
candidate[i-_start] = vera::toFloat(_command[i]);
|
||||
|
||||
set(candidate, _command.size() - _start, false, _queue);
|
||||
@@ -88,14 +88,14 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
//
|
||||
functions["u_iblLuminance"] = UniformFunction("float", [this](vera::Shader& _shader) {
|
||||
if (activeCamera)
|
||||
- _shader.setUniform("u_iblLuminance", 30000.0f * activeCamera->getExposure());
|
||||
+ _shader.setUniform("u_iblLuminance", 30000.0f * static_cast<float>(activeCamera->getExposure()));
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(30000.0f * activeCamera->getExposure());
|
||||
return std::string("");
|
||||
});
|
||||
-
|
||||
+
|
||||
// CAMERA UNIFORMS
|
||||
//
|
||||
functions["u_camera"] = UniformFunction("vec3", [this](vera::Shader& _shader) {
|
||||
@@ -112,7 +112,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraDistance", activeCamera->getDistance());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getDistance());
|
||||
return std::string("");
|
||||
@@ -122,7 +122,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraNearClip", activeCamera->getNearClip());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getNearClip());
|
||||
return std::string("");
|
||||
@@ -132,9 +132,9 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraFarClip", activeCamera->getFarClip());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
- return vera::toString(activeCamera->getFarClip());
|
||||
+ return vera::toString(activeCamera->getFarClip());
|
||||
return std::string("");
|
||||
});
|
||||
|
||||
@@ -150,9 +150,9 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
|
||||
functions["u_cameraExposure"] = UniformFunction("float", [this](vera::Shader& _shader) {
|
||||
if (activeCamera)
|
||||
- _shader.setUniform("u_cameraExposure", activeCamera->getExposure());
|
||||
+ _shader.setUniform("u_cameraExposure", static_cast<float>(activeCamera->getExposure()));
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getExposure());
|
||||
return std::string("");
|
||||
@@ -162,7 +162,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraAperture", activeCamera->getAperture());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getAperture());
|
||||
return std::string("");
|
||||
@@ -172,7 +172,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraShutterSpeed", activeCamera->getShutterSpeed());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getShutterSpeed());
|
||||
return std::string("");
|
||||
@@ -182,7 +182,7 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraSensitivity", activeCamera->getSensitivity());
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->getSensitivity());
|
||||
return std::string("");
|
||||
@@ -192,12 +192,12 @@ Uniforms::Uniforms() : m_frame(0), m_play(true), m_change(false) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_cameraChange", activeCamera->bChange);
|
||||
},
|
||||
- [this]() {
|
||||
+ [this]() {
|
||||
if (activeCamera)
|
||||
return vera::toString(activeCamera->bChange);
|
||||
return std::string("");
|
||||
});
|
||||
-
|
||||
+
|
||||
functions["u_normalMatrix"] = UniformFunction("mat3", [this](vera::Shader& _shader) {
|
||||
if (activeCamera)
|
||||
_shader.setUniform("u_normalMatrix", activeCamera->getNormalMatrix());
|
||||
@@ -248,7 +248,7 @@ bool Uniforms::feedTo(vera::Shader *_shader, bool _lights, bool _buffers ) {
|
||||
}
|
||||
|
||||
// Pass user defined uniforms (only if the shader code or scene had changed)
|
||||
- // if (m_change)
|
||||
+ // if (m_change)
|
||||
{
|
||||
for (UniformDataMap::iterator it = data.begin(); it != data.end(); ++it) {
|
||||
_shader->setUniform(it->first, it->second.value.data(), it->second.size);
|
||||
@@ -291,7 +291,7 @@ bool Uniforms::feedTo(vera::Shader *_shader, bool _lights, bool _buffers ) {
|
||||
|
||||
for (size_t i = 0; i < doubleBuffers.size(); i++)
|
||||
_shader->setUniformTexture("u_doubleBuffer" + vera::toString(i), doubleBuffers[i]->src, _shader->textureIndex++ );
|
||||
-
|
||||
+
|
||||
for (size_t i = 0; i < floods.size(); i++)
|
||||
_shader->setUniformTexture("u_flood" + vera::toString(i), floods[i].dst, _shader->textureIndex++ );
|
||||
}
|
||||
@@ -300,7 +300,7 @@ bool Uniforms::feedTo(vera::Shader *_shader, bool _lights, bool _buffers ) {
|
||||
for (size_t i = 0; i < pyramids.size(); i++)
|
||||
_shader->setUniformTexture("u_pyramid" + vera::toString(i), pyramids[i].getResult(), _shader->textureIndex++ );
|
||||
|
||||
-
|
||||
+
|
||||
if (_lights) {
|
||||
// Pass Light Uniforms
|
||||
if (lights.size() == 1) {
|
||||
@@ -318,7 +318,7 @@ bool Uniforms::feedTo(vera::Shader *_shader, bool _lights, bool _buffers ) {
|
||||
}
|
||||
else {
|
||||
// TODO:
|
||||
- // - Lights should be pass as structs??
|
||||
+ // - Lights should be pass as structs??
|
||||
|
||||
for (vera::LightsMap::iterator it = lights.begin(); it != lights.end(); ++it) {
|
||||
std::string name = "u_" + it->first;
|
||||
@@ -336,7 +336,7 @@ bool Uniforms::feedTo(vera::Shader *_shader, bool _lights, bool _buffers ) {
|
||||
_shader->setUniformDepthTexture(name + "ShadowMap", it->second->getShadowMap(), _shader->textureIndex++ );
|
||||
}
|
||||
}
|
||||
-
|
||||
+
|
||||
if (activeCubemap) {
|
||||
_shader->setUniformTextureCube("u_cubeMap", (vera::TextureCube*)activeCubemap);
|
||||
_shader->setUniform("u_SH", activeCubemap->SH, 9);
|
||||
@@ -372,12 +372,12 @@ void Uniforms::unflagChange() {
|
||||
activeCamera->bChange = false;
|
||||
}
|
||||
|
||||
-bool Uniforms::haveChange() {
|
||||
+bool Uniforms::haveChange() {
|
||||
if (activeCamera)
|
||||
if (activeCamera->bChange)
|
||||
return true;
|
||||
-
|
||||
- if (functions["u_time"].present ||
|
||||
+
|
||||
+ if (functions["u_time"].present ||
|
||||
functions["u_date"].present ||
|
||||
functions["u_delta"].present ||
|
||||
functions["u_mouse"].present)
|
||||
@@ -402,7 +402,7 @@ void Uniforms::checkUniforms( const std::string &_vert_src, const std::string &_
|
||||
if ( it->second.present != present ) {
|
||||
it->second.present = present;
|
||||
m_change = true;
|
||||
- }
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -515,16 +515,16 @@ void Uniforms::setStreamsRestart() {
|
||||
void Uniforms::printAvailableUniforms(bool _non_active) {
|
||||
if (_non_active) {
|
||||
// Print all Native Uniforms (they carry functions)
|
||||
- for (UniformFunctionsMap::iterator it= functions.begin(); it != functions.end(); ++it) {
|
||||
+ for (UniformFunctionsMap::iterator it= functions.begin(); it != functions.end(); ++it) {
|
||||
std::cout << "uniform " << it->second.type << ' ' << it->first << ";";
|
||||
- if (it->second.print)
|
||||
+ if (it->second.print)
|
||||
std::cout << " // " << it->second.print();
|
||||
std::cout << std::endl;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Print Native Uniforms (they carry functions) that are present on the shader
|
||||
- for (UniformFunctionsMap::iterator it= functions.begin(); it != functions.end(); ++it) {
|
||||
+ for (UniformFunctionsMap::iterator it= functions.begin(); it != functions.end(); ++it) {
|
||||
if (it->second.present) {
|
||||
std::cout<< "uniform " << it->second.type << ' ' << it->first << ";";
|
||||
if (it->second.print)
|
||||
@@ -567,7 +567,7 @@ void Uniforms::printDefinedUniforms(bool _csv){
|
||||
std::cout << "uniform " << it->second[frame].getType() << " " << it->first << "; // " << it->second[frame].print() << std::endl;
|
||||
}
|
||||
}
|
||||
- }
|
||||
+ }
|
||||
}
|
||||
|
||||
void Uniforms::addDefine(const std::string& _define, const std::string& _value) {
|
||||
@@ -597,7 +597,7 @@ void Uniforms::printBuffers() {
|
||||
std::cout << "uniform sampler2D u_doubleBuffer" << i << ";" << std::endl;
|
||||
|
||||
for (size_t i = 0; i < pyramids.size(); i++)
|
||||
- std::cout << "uniform sampler2D u_pyramid" << i << ";" << std::endl;
|
||||
+ std::cout << "uniform sampler2D u_pyramid" << i << ";" << std::endl;
|
||||
|
||||
if (functions["u_scene"].present)
|
||||
std::cout << "uniform sampler2D u_scene;" << std::endl;
|
||||
@@ -642,7 +642,7 @@ bool Uniforms::addCameraPath( const std::string& _filename ) {
|
||||
// );
|
||||
|
||||
while (std::getline(is, line)) {
|
||||
- // If line not commented
|
||||
+ // If line not commented
|
||||
if (line[0] == '#')
|
||||
continue;
|
||||
|
||||
@@ -669,9 +669,9 @@ bool Uniforms::addCameraPath( const std::string& _filename ) {
|
||||
// glm::mat4 projection = glm::ortho(0.0f, w, h, 0.0f, near, far);
|
||||
// glm::mat4 ndc = glm::mat4(
|
||||
// fL, 0.0f, 0.0f, 0.0f,
|
||||
- // 0.0f, fL, 0.0f, 0.0f,
|
||||
+ // 0.0f, fL, 0.0f, 0.0f,
|
||||
// cx, cy, 1.0f, 0.0f,
|
||||
- // 0.0f, 0.0f, 0.0f, 1.0f
|
||||
+ // 0.0f, 0.0f, 0.0f, 1.0f
|
||||
// );
|
||||
// frame.projection = projection * ndc;
|
||||
|
||||
@@ -681,7 +681,7 @@ bool Uniforms::addCameraPath( const std::string& _filename ) {
|
||||
(w - 2.0f*cx)/w, (h-2.0f*cy)/h, (-far-near)/delta, -1.0f,
|
||||
0.0f, 0.0f, -2.0f*far*near/delta, 0.0f
|
||||
);
|
||||
-
|
||||
+
|
||||
// frame.projection = glm::mat4(
|
||||
// fL/cx, 0.0f, 0.0f, 0.0f,
|
||||
// 0.0f, fL/cy, 0.0f, 0.0f,
|
||||
--
|
||||
2.50.0
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
From d813c82384ebd642376e09d73d6254a244f2b40a Mon Sep 17 00:00:00 2001
|
||||
From: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
|
||||
Date: Sat, 28 Jun 2025 04:49:46 +0700
|
||||
Subject: [PATCH 2/2] Install libvera.so to machine
|
||||
|
||||
`
|
||||
---
|
||||
CMakeLists.txt | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a7b041c..03cf64d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -16,6 +16,11 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
# The compiled vera
|
||||
add_subdirectory(deps)
|
||||
|
||||
+install(TARGETS vera
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
+
|
||||
if(MSVC)
|
||||
add_definitions( -DPLATFORM_WINDOWS )
|
||||
endif()
|
||||
--
|
||||
2.50.0
|
||||
|
||||
@@ -3,51 +3,101 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake git-r3
|
||||
# pybind11 has not bump python to 3.14 yet
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
inherit cmake flag-o-matic python-r1
|
||||
|
||||
DESCRIPTION="Console-based GLSL live-coding viewer"
|
||||
HOMEPAGE="https://github.com/patriciogonzalezvivo/glslViewer"
|
||||
EGIT_REPO_URI="https://github.com/patriciogonzalezvivo/glslViewer.git"
|
||||
EGIT_COMMIT="7eb6254cb4cedf03f1c78653f90905fe0c3b48fb"
|
||||
SRC_URI="https://codeload.github.com/patriciogonzalezvivo/glslViewer/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
LICENSE="BSD MIT"
|
||||
SLOT="0"
|
||||
IUSE="ffmpeg xvfb"
|
||||
|
||||
IUSE="X ffmpeg xvfb python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
DEPEND="
|
||||
media-libs/glu
|
||||
sys-libs/ncurses
|
||||
x11-misc/shared-mime-info
|
||||
dev-libs/lygia
|
||||
media-libs/liblo
|
||||
dev-libs/vera
|
||||
media-libs/glm
|
||||
ffmpeg? (
|
||||
media-video/ffmpeg
|
||||
)
|
||||
xvfb? (
|
||||
x11-base/xorg-server[xvfb]
|
||||
)
|
||||
x11-misc/shared-mime-info
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pybind11[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
dev-build/cmake
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-Removed-unsafe-post-install-MIME-and-desktop-databas.patch"
|
||||
"${FILESDIR}/0002-Install-libvera.so-to-machine.patch"
|
||||
"${FILESDIR}/0001-Fix-CMakelists.patch"
|
||||
"${FILESDIR}/0002-Cast-getExposure-result-to-float-to-setUniform.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-ltinfo"
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
|
||||
-DNO_X11="$(usex X OFF ON)"
|
||||
)
|
||||
append-cxxflags "-DGL_OPENGL -DDRIVER_GLFW"
|
||||
cmake_src_configure
|
||||
if use python; then
|
||||
python_foreach_impl python_configure
|
||||
fi
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
mkdir -p "${BUILD_DIR}" || die "mkdir failed"
|
||||
pushd "${BUILD_DIR}" > /dev/null || die "pushd failed"
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
|
||||
-DNO_X11="$(usex X OFF ON)"
|
||||
-DPYTHON_BINDINGS=ON
|
||||
-DPython3_EXECUTABLE="${PYTHON}"
|
||||
)
|
||||
append-cxxflags "-DGL_OPENGL -DDRIVER_GLFW"
|
||||
cmake_src_configure
|
||||
popd >/dev/null || die "popd failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
if use python; then
|
||||
python_foreach_impl python_compile
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die "pushd failed"
|
||||
cmake_src_compile
|
||||
popd >/dev/null || die "popd failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
if use python; then
|
||||
python_foreach_impl python_install
|
||||
fi
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
python_install() {
|
||||
python_domodule "${BUILD_DIR}"/PyGlslViewer*.so || die "failed to install PyGlslViewer module"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg-icon-resource forceupdate || die
|
||||
update-mime-database /usr/share/mime || die
|
||||
|
||||
@@ -5,12 +5,13 @@
|
||||
<email>hilobakho@gmail.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/artemsen/swayimg/issues</bugs-to>
|
||||
<changelog>https://github.com/artemsen/swayimg/releases</changelog>
|
||||
<remote-id type="github">artemsen/swayimg</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="drm">Enable DRM renderig support (DRM UI)</flag>
|
||||
<flag name="exr">Enable support for EXR image format</flag>
|
||||
<flag name="jpegxl">Enable support for JPEG XL image format</flag>
|
||||
<flag name="sixel">Enable support for Sixel image format</flag>
|
||||
<flag name="wayland">Enable Wayland UI and some compositors (Sway and Hyprland only)</flag>
|
||||
</use>
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
inherit meson xdg
|
||||
|
||||
DESCRIPTION="A lightweight image viewer for Wayland display servers"
|
||||
DESCRIPTION="Lightweight image viewer for Wayland display servers"
|
||||
HOMEPAGE="https://github.com/artemsen/swayimg"
|
||||
SRC_URI="https://github.com/artemsen/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
|
||||
1
media-libs/VulkanMemoryAllocator/Manifest
Normal file
1
media-libs/VulkanMemoryAllocator/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST VulkanMemoryAllocator-3.3.0.tar.gz 962176 BLAKE2B 671f73f7e11b6a2ae57d5228cfb7a8f65db12b937cb55dd3c4075247a7f3061cbb2111f2f4b3f5937e374960f76f7abdd10697567af1ba49e42d0ea314b1000b SHA512 deb5902ef8db0e329fbd5f3f4385eb0e26bdd9f14f3a2334823fb3fe18f36bc5d235d620d6e5f6fe3551ec3ea7038638899db8778c09f6d5c278f5ff95c3344b
|
||||
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Easy to integrate Vulkan memory allocation library"
|
||||
HOMEPAGE="https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator"
|
||||
SRC_URI="https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND="
|
||||
doc? ( app-text/doxygen )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DVMA_BUILD_DOCUMENTATION=$(usex doc)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
12
media-libs/VulkanMemoryAllocator/metadata.xml
Normal file
12
media-libs/VulkanMemoryAllocator/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@paveloom.dev</email>
|
||||
<name>Pavel Sobolev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/issues</bugs-to>
|
||||
<remote-id type="github">GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Cross-platform drum plugin and stand-alone application"
|
||||
HOMEPAGE="https://www.drumgizmo.org/wiki"
|
||||
SRC_URI="https://www.drumgizmo.org/releases/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+alsa jack lv2 vst cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3"
|
||||
|
||||
DEPEND="
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
lv2? ( media-libs/lv2 )
|
||||
media-libs/libsmf
|
||||
media-libs/libsndfile
|
||||
media-libs/zita-resampler
|
||||
x11-libs/libX11
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="|| ( alsa jack )"
|
||||
|
||||
src_configure() {
|
||||
local sse=0
|
||||
use cpu_flags_x86_sse && sse=1
|
||||
use cpu_flags_x86_sse2 && sse=2
|
||||
use cpu_flags_x86_sse3 && sse=3
|
||||
|
||||
econf --enable-cli=yes \
|
||||
--enable-static=no \
|
||||
$(usex alsa '' '--disable-output-alsa') \
|
||||
$(usex jack '' '--disable-input-jackmidi') \
|
||||
$(usex jack '' '--disable-output-jackaudio') \
|
||||
--enable-gui=x11 \
|
||||
--enable-lv2=$(usex lv2) \
|
||||
--enable-sse=${sse} \
|
||||
--enable-vst=$(usex vst) \
|
||||
--with-debug=no \
|
||||
--with-test=no
|
||||
}
|
||||
@@ -14,6 +14,5 @@
|
||||
<flag name="jack">Enable jack output and jackmidi input (CLI only)</flag>
|
||||
<flag name="lv2">Build LV2 plugin</flag>
|
||||
<flag name="midi">Enable midifile input via <pkg>media-libs/libsmf</pkg> (CLI only)</flag>
|
||||
<flag name="vst">Build VST plugin</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
2
media-sound/shortwave/Manifest
Normal file
2
media-sound/shortwave/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST Shortwave-5.0.0-crates.tar.xz 44879168 BLAKE2B f773ce84d130eb784ebf4be22ba493433c3b88133202345c7f8f11f58baa825d02dedb2b9cef2a423264a2fab82f6cd00a3bcbeeae0fadb55ae9284c4f52c30e SHA512 0a14840250ffcff22a6af2008f49a3596c6f8f8ecc2b5137119c772d42288b168eb82d1a88540250b9f3afff8f2731898e19cffdd75657596a21c6cdb7497e4e
|
||||
DIST Shortwave-5.0.0.tar.bz2 831354 BLAKE2B 6781e826cf9b00069e4041a272d63e752d22799d2838fb04702d6f398a42308e10183d4d4648be300e097c3afe39e3ce14a0c88b82cbd39354ba8924389e3146 SHA512 7049e8ff3eb8f7273c8d721f620954c90bb428a06c2baee270d04e43eee5f4c9c06d405e6391f86b0a13dbd3c261fab1b86669012e62903702eaa7b497fafccd
|
||||
15
media-sound/shortwave/metadata.xml
Normal file
15
media-sound/shortwave/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alexander@tsoy.me</email>
|
||||
<name>Alexander Tsoy</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Shortwave is an internet radio player that provides access to a station database with over 50,000 stations.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://gitlab.gnome.org/World/Shortwave/-/issues</bugs-to>
|
||||
<remote-id type="gnome-gitlab">World/Shortwave</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
79
media-sound/shortwave/shortwave-5.0.0.ebuild
Normal file
79
media-sound/shortwave/shortwave-5.0.0.ebuild
Normal file
@@ -0,0 +1,79 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.15.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=""
|
||||
|
||||
inherit cargo gnome2-utils meson optfeature
|
||||
|
||||
DESCRIPTION="An internet radio player"
|
||||
HOMEPAGE="https://apps.gnome.org/Shortwave/"
|
||||
SRC_URI="
|
||||
https://gitlab.gnome.org/World/Shortwave/-/archive/${PV}/Shortwave-${PV}.tar.bz2
|
||||
https://github.com/puleglot/Shortwave/releases/download/${PV}/Shortwave-${PV}-crates.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/Shortwave-${PV}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0 ISC
|
||||
MIT MPL-2.0 Unicode-3.0
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-libs/glib
|
||||
dev-libs/gobject-introspection
|
||||
dev-libs/openssl:0=
|
||||
>=gui-libs/gtk-4.16
|
||||
>=gui-libs/libadwaita-1.6
|
||||
media-libs/gst-plugins-bad
|
||||
media-libs/gst-plugins-base
|
||||
media-libs/gstreamer
|
||||
media-libs/lcms:2
|
||||
>=media-libs/libshumate-1.3
|
||||
sys-libs/libseccomp
|
||||
"
|
||||
# Runtime deps:
|
||||
# - media-libs/glycin-loaders - required for displaying station covers.
|
||||
# - media-plugins/gst-plugins-meta[http] - required to successfully build a gsreamer
|
||||
# pipeline, since most (all?) stations have http/https URLs.
|
||||
# - media-plugins/gst-plugins-meta[pulseaudio] - preferred audiosink. Volume control
|
||||
# is supported only with pulsesink.
|
||||
# - media-plugins/gst-plugins-meta[vorbis] - needed for recording feature.
|
||||
# Shortwave will crash after each played track if vorbisenc is unavailable.
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
media-libs/glycin-loaders
|
||||
media-plugins/gst-plugins-meta[http]
|
||||
media-plugins/gst-plugins-meta[pulseaudio]
|
||||
media-plugins/gst-plugins-meta[vorbis]
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${P}-build"
|
||||
ECARGO_HOME=${BUILD_DIR}/cargo-home
|
||||
|
||||
pkg_postinst() {
|
||||
# Popular codecs used by radio stations
|
||||
optfeature "AAC playback support" "media-plugins/gst-plugins-meta[aac]"
|
||||
optfeature "MP3 playback support" "media-plugins/gst-plugins-meta[mp3]"
|
||||
optfeature "Opus playback support" "media-plugins/gst-plugins-meta[opus]"
|
||||
|
||||
gnome2_schemas_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_schemas_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
DIST spct-1.1.3.tar.gz 652776 BLAKE2B 7bd4da790c3afbc7bbc31b7f9c457b07a83034518375626265fe6da0fd13441bdf96fbb14b8b5b28ca92d78d993a1eaff8dc23bbe2f2ad7234c1c34369333d68 SHA512 58df651f0613d4cc61bb70236a97d711b9f99024ccbc8db7d89dc8459cdf0fc256491ff41abb87935e7cf808c5933933683fc69d59a181fc8bd684824cbfac1d
|
||||
DIST spct-1.1.7.tar.gz 653891 BLAKE2B 500347fa1c0738dc2b2440e7d212b6558bf82ca6a83275b4c76b6ead3a623805337fbde66a2c1ca6829f1c6f9a25331ee5c0cdb418a142f692fad624bec5d1db SHA512 d26fb611da309325aec3d7d5d2c64105b0f441249d796fc255a7f07b04bc479cd115cf579be682b4d54238a45d3aa619524d2c2afd07c5b35292f66137786358
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user