mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
Merge updates from master
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DIST chezmoi-2.47.3-vendor.tar.xz 5216784 BLAKE2B e366d255b7d25c01eb288dede779eb1b1767c5627bfb9869382e21f737b4449cfb10c6f32cc9a02fc0ae57343b9ce28d10adfeb25d2f6e63f552ba7fbd6c999c SHA512 e58f66ede06a01910bbb0692e97972f5f7eed627b9e502c584a2348558683550344229db937ab4a07d13042529062403d0917eaba0d8a58003baf32f08950801
|
||||
DIST chezmoi-2.47.3.tar.gz 2451368 BLAKE2B d2022eb49f7a4140a0b21df4ddd38c8c92c0b83a753608d28fcda2e0c0be6ebd1b555be088a7d7ae7cec14b6102ce6a711cec32e0fed62a6a86ee8d9574aa9bb SHA512 77b5e03ac4677b107ddd4fbcf9bb5eed00e3250b09f760624407304e8ce8edeb8f2fab88d359e7a53f20f0d36c3fdeb8bfd8a7cd8030d9d04524d527196cd6fa
|
||||
DIST chezmoi-2.49.0-vendor.tar.xz 5048236 BLAKE2B 3b28e8cc9fcc9bdb23575f1243579c776bb1da16888a7b2223ed8546cd5d57b948d0a04bdec96f8ced2be80b7c274a2407fa1766b95a3a1b8525a4724f2f4ea9 SHA512 5b9fc4d2efa26de96014ef0a5208610da82eaf22b5c6df042b3bcb31f5aa06ad0f3182f2de6d0f3265a2dca3c31ec9ff65195b53b1b4887d6ddadada1226c986
|
||||
DIST chezmoi-2.49.0.tar.gz 2457390 BLAKE2B 7419b794396584b3cfeca86abde10b29e77ef726a378561240fe47c199ff1157f00d70f115117829855e2854f6e75d76e7f48a5a5a32b3fb3743ae6056307a8f SHA512 aa0a3121e57541c1d5078f65cae0b04ebae0f2e1f4268c82644384d6cabc00925d7df9b5a34c24c4a2ed09788fc4a360636f7c4a9a0d1a7c11f1872384d80f5a
|
||||
|
||||
@@ -8,7 +8,7 @@ inherit go-module shell-completion
|
||||
DESCRIPTION="Manage your dotfiles across multiple machines, securely"
|
||||
HOMEPAGE="https://www.chezmoi.io/"
|
||||
SRC_URI="https://github.com/twpayne/chezmoi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/MHaukelid/ebuild-vendored/releases/download/${P}/${P}-vendor.tar.xz"
|
||||
SRC_URI+=" https://github.com/Hummer12007/distfiles/releases/download/${P}/${P}-vendor.tar.xz"
|
||||
|
||||
LICENSE="BSD BSD-2 MIT Apache-2.0 MPL-2.0"
|
||||
SLOT="0"
|
||||
@@ -1,2 +1 @@
|
||||
DIST certbot-2.10.0.gh.tar.gz 2322931 BLAKE2B cb84815ec2db2b4b365f2f2bdee1749263b540a1b67f9195280bdb122307337d294beb403bc05b236a94ed0782b0d093e2b8527a65cb69cac949fa627388e8bd SHA512 444981952140376808a9aa475a692df91e60fffc6d45902a3f809bc07311a7d6597ad56e712d3dae234450eb1c735db431182e784bc748511e68bf4f5f2d6cbd
|
||||
DIST certbot-2.9.0.gh.tar.gz 1346993 BLAKE2B cf7fb4676dc31442abe11ef50d18073480a46f4ab19cc328da599b1372509af683b4c6010b46f31bce5703949e88b4702d404bd8582a1361caad43ec8f02cb94 SHA512 27c15ce8e4450f432fbc271cd847d27c7f1bce552cc6e5f2a91f1fbfc09ebe331b54bab17639b86c19605de059767015665c26e872c3b0699edb1c85392a0546
|
||||
|
||||
@@ -31,8 +31,7 @@ RDEPEND="${CDEPEND}
|
||||
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/zope-interface[${PYTHON_USEDEP}]
|
||||
dev-python/dns-lexicon[${PYTHON_USEDEP}]
|
||||
!>=dev-python/cloudflare-2.21[${PYTHON_USEDEP}]
|
||||
dev-python/cloudflare[${PYTHON_USEDEP}]"
|
||||
=dev-python/cloudflare-2.19*[${PYTHON_USEDEP}]"
|
||||
BDEPEND="test? ( ${RDEPEND} )"
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=(python3_{10..12})
|
||||
#DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
MYPN="certbot"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
|
||||
inherit git-r3
|
||||
S=${WORKDIR}/${P}/${PN}
|
||||
else
|
||||
SRC_URI="https://github.com/certbot/${MYPN}/archive/v${PV}.tar.gz -> ${MYPN}-${PV}.gh.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
S=${WORKDIR}/certbot-${PV}/${PN}
|
||||
fi
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Cloudflare DNS Authenticator plugin for Certbot (Let's Encrypt Client)"
|
||||
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
>=app-crypt/certbot-${PV}[${PYTHON_USEDEP}]
|
||||
>=app-crypt/acme-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/zope-interface[${PYTHON_USEDEP}]
|
||||
dev-python/dns-lexicon[${PYTHON_USEDEP}]
|
||||
!>=dev-python/cloudflare-2.21[${PYTHON_USEDEP}]
|
||||
dev-python/cloudflare[${PYTHON_USEDEP}]"
|
||||
BDEPEND="test? ( ${RDEPEND} )"
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
|
||||
1
dev-embedded/bcm2-utils/Manifest
Normal file
1
dev-embedded/bcm2-utils/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST bcm2-utils-0.9.8.tar.gz 120559 BLAKE2B ae244bab2f3440a251d8453862d4431b3f6697f04584f93d4e737a3e9aaa0f3335cb2282957a998b740389779eedae319840a27d3c7663e4631275b7863cd0a2 SHA512 bc818a2233ff1d33b9bf36afb09d035512b565467384e6080ba405ebeabc33b7d22f537e8b88bf0d4db75bf2063f47a630bb5750cfea6dd7cf0a042ca49ac34a
|
||||
25
dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild
Normal file
25
dev-embedded/bcm2-utils/bcm2-utils-0.9.8.ebuild
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Utilities for Broadcom-based cable modems"
|
||||
HOMEPAGE="https://github.com/jclehner/bcm2-utils"
|
||||
SRC_URI="https://github.com/jclehner/bcm2-utils/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="dev-libs/boost"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
default
|
||||
sed -i 's@shell git describe --always@shell git describe --always 2>/dev/null@' "Makefile" || die
|
||||
}
|
||||
|
||||
src_install(){
|
||||
mkdir -p "${D}/usr/bin" || die
|
||||
emake PREFIX="${D}/usr" install
|
||||
}
|
||||
11
dev-embedded/bcm2-utils/metadata.xml
Normal file
11
dev-embedded/bcm2-utils/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>eli.burch@burchbytes.com</email>
|
||||
<name>Eli Burch</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jclehner/bcm2-utils</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -10,7 +10,7 @@ GDB_VER="14.2_20240403"
|
||||
|
||||
CROSSTOOL_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-${VER}"
|
||||
|
||||
inherit python-r1
|
||||
inherit estack python-r1
|
||||
|
||||
DESCRIPTION="Espressif IoT Development Framework"
|
||||
HOMEPAGE="https://www.espressif.com/"
|
||||
@@ -67,7 +67,7 @@ PATCHES=(
|
||||
)
|
||||
|
||||
install_tool() {
|
||||
shopt -s globstar
|
||||
eshopts_push -s globstar
|
||||
|
||||
into /opt/${1}
|
||||
|
||||
@@ -119,12 +119,17 @@ install_tool() {
|
||||
done
|
||||
)
|
||||
|
||||
shopt -u globstar
|
||||
eshopts_pop
|
||||
}
|
||||
|
||||
src_install() {
|
||||
echo -e "#!/bin/sh\npython /usr/share/${PN}/tools/idf.py \"\$@\"" > idf
|
||||
dobin idf
|
||||
newbin - idf <<-EOF
|
||||
#!/bin/sh
|
||||
|
||||
# Silence a warning by idf.py
|
||||
export IDF_PYTHON_ENV_PATH=
|
||||
exec python /usr/share/${PN}/tools/idf.py \$@
|
||||
EOF
|
||||
|
||||
install_tool xtensa-esp-elf
|
||||
install_tool xtensa-esp-elf/xtensa-esp-elf
|
||||
@@ -140,7 +145,6 @@ src_install() {
|
||||
rm "${WORKDIR}"/xtensa-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
|
||||
install_tool xtensa-esp-elf-gdb
|
||||
if use riscv32; then
|
||||
rm "${WORKDIR}"/riscv32-esp-elf-gdb/bin/xtensa-esp-elf-gdb-3.{8..10} || die
|
||||
install_tool riscv32-esp-elf-gdb
|
||||
fi
|
||||
|
||||
|
||||
33
dev-ml/ollama/files/ollama
Normal file
33
dev-ml/ollama/files/ollama
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Ollama Service"
|
||||
command="/usr/bin/ollama"
|
||||
command_args="serve"
|
||||
command_user="root"
|
||||
command_group="users"
|
||||
command_background="yes"
|
||||
pidfile="/run/ollama.pid"
|
||||
log="/var/log/ollama.log"
|
||||
|
||||
# Environment variable pointing to models location
|
||||
export OLLAMA_MODELS="/usr/share/ollama/models"
|
||||
|
||||
# Ollama allows cross-origin requests from 127.0.0.1 and 0.0.0.0 by default.
|
||||
# Additional origins can be configured with OLLAMA_ORIGINS.
|
||||
# export OLLAMA_ORIGINS="<ip>"
|
||||
|
||||
start() {
|
||||
ebegin "Starting $description"
|
||||
exec >> >(logger -t "$RC_SVCNAME Start daemon" -p daemon.info)
|
||||
start-stop-daemon --start --background --user "$command_user" --group "$command_group" \
|
||||
--pidfile "$pidfile" --make-pidfile --exec $command $command_args -1 $log -2 $log
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $description"
|
||||
exec >> >(logger -t "$RC_SVCNAME Stop daemon" -p daemon.info)
|
||||
start-stop-daemon --stop --pidfile "$pidfile"
|
||||
eend $?
|
||||
}
|
||||
|
||||
15
dev-ml/ollama/metadata.xml
Normal file
15
dev-ml/ollama/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" proxied="yes">
|
||||
<email>zdanevich.vitaly@ya.ru</email>
|
||||
<name>Vitaly Zdanevich</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="nvidia">Add support of nvidia</flag>
|
||||
<flag name="amd">Add support of amd</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">nulloy/nulloy</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
56
dev-ml/ollama/ollama-9999.ebuild
Normal file
56
dev-ml/ollama/ollama-9999.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit git-r3 go-module
|
||||
|
||||
DESCRIPTION="Get up and running with Llama 3, Mistral, Gemma, and other language models."
|
||||
HOMEPAGE="https://ollama.com"
|
||||
EGIT_REPO_URI="https://github.com/ollama/ollama.git"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="nvidia amd"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.21.0
|
||||
>=dev-build/cmake-3.24
|
||||
>=sys-devel/gcc-11.4.0
|
||||
nvidia? ( dev-util/nvidia-cuda-toolkit )
|
||||
amd? (
|
||||
sci-libs/clblast
|
||||
dev-libs/rocm-opencl-runtime
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${BDEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
if use amd; then
|
||||
ewarn "WARNING: AMD & Nvidia support in this ebuild are experimental"
|
||||
einfo "If you run into issues, especially compiling dev-libs/rocm-opencl-runtime"
|
||||
einfo "you may try the docker image here https://github.com/ROCm/ROCm-docker"
|
||||
einfo "and follow instructions here"
|
||||
einfo "https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html"
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ego generate ./...
|
||||
ego build .
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ollama
|
||||
doinitd "${FILESDIR}"/ollama
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
chmod 0755 /etc/init.d/ollama || die
|
||||
}
|
||||
@@ -1,2 +1,4 @@
|
||||
DIST cloudflare-2.19.2.gh.tar.gz 145051 BLAKE2B cd7c9d9352b055b115af443341dcc4d0a446aaf1ac7b7f8030dce0ff19da185b1effc9a679b8018920ade98cafaaf599af8aea8c57a924e59eb40670a3854b70 SHA512 eac9601f9cb9ea5dc140e48fb0f0e042396f6a7ec354f18b815d6c51094799dc3f25e1e69e78f87ec5c612f4304d15f779090962a8f96282d9b2fe8a9abfb690
|
||||
DIST cloudflare-2.19.4.gh.tar.gz 151397 BLAKE2B c91c95f52314c5177d823ef8f827ea2f76f6cc703260449aea12d54c1b77d061feca15d4bb845f84cfb4fd80789e5064e54d7530daf546d54d17054b9e0b4fda SHA512 8ae11e73760c57b610abfe5e2c8fdc83c2e0b9e07340884925ec9ac3bf5b40b4edf39b2b8ce7330538369d7573146a2ddac195efb0efb4ff657f75fdacb31aed
|
||||
DIST cloudflare-3.0.0_beta10.gh.tar.gz 1445435 BLAKE2B 1717f36194ce5e8a292f4026463d9b05b12808ee2c8fbbae7d4817523a4c37d13d2935eef58fe83cebe64c6e7684018154482ee3e51538e7a5724179a2b280c0 SHA512 c7150c0cc056869a600cb440f6cd68801d4032d401192e156101cdf82484ba9b3a03649a2c0569c42c396b653517ad19ec841c3baab067709b4736bcc15e9be6
|
||||
DIST cloudflare-python-v3.0.0_beta10-prism.tar.gz 10658021 BLAKE2B 930259e5e1b967ca056804ede3f40d40b57602640d8ae308cc466f38c10eacb95dfb639309ea0b3d2a79fb6c0da6f4cc9dedae08f9a356a4c52ff4bf458d193d SHA512 60c8cb768cb18099c2f9384fd80ff34e2e2511b56433ca0aae02f4be949c2ac9ab72ea879c53aa1e7aaae284afe5547abb909dc733274d50154179a174429b53
|
||||
|
||||
92
dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
Normal file
92
dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
Normal file
@@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_USE_PEP517="hatchling"
|
||||
inherit distutils-r1
|
||||
DESCRIPTION="Python wrapper for the Cloudflare v4 API"
|
||||
HOMEPAGE="https://pypi.org/project/cloudflare/"
|
||||
if [ "${PV}" == 9999 ]; then
|
||||
EGIT_REPO_URI="https://github.com/cloudflare/cloudflare-python"
|
||||
inherit git-r3
|
||||
else
|
||||
MYPV=$(ver_rs 3 -)
|
||||
MYPV=${MYPV/beta/beta.}
|
||||
MYPN="cloudflare-python"
|
||||
SRC_URI="https://github.com/cloudflare/cloudflare-python/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.gh.tar.gz
|
||||
test? ( https://github.com/Phoenix591/${MYPN}/releases/download/v${PV}/${MYPN}-v${PV}-prism.tar.gz )"
|
||||
#Prism archive generated by workflow
|
||||
# https://github.com/Phoenix591/cloudflare-python/blob/v3.0.0_beta10/.github/workflows/test-tar.yml
|
||||
S="${WORKDIR}/${MYPN}-${MYPV}"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )"
|
||||
# nodejs package and deps used to test
|
||||
SLOT="3"
|
||||
RDEPEND=" ${DEPEND}
|
||||
>=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-4.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/anyio-4.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/distro-1.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="test? (
|
||||
>=net-libs/nodejs-18.20.1
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/time-machine[${PYTHON_USEDEP}]
|
||||
dev-python/dirty-equals[${PYTHON_USEDEP}]
|
||||
dev-python/respx[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
RESTRICT="mirror" #mirror restricted only because overlay
|
||||
RESTRICT+=" !test? ( test )"
|
||||
|
||||
src_unpack() {
|
||||
unpack "${P}.gh.tar.gz"
|
||||
use test && cd "${S}" && unpack "cloudflare-python-v${PV}-prism.tar.gz"
|
||||
}
|
||||
|
||||
#python_prepare_all() {
|
||||
# # don't install tests or examples
|
||||
# sed -i -e "s/'cli4', 'examples'/'cli4'/" \
|
||||
# -e "s#'CloudFlare/tests',##" \
|
||||
# setup.py || die
|
||||
# sed -i -e "/def test_ips7_should_fail():/i@pytest.mark.xfail(reason='Now fails upstream')" \
|
||||
# -e "2s/^/import pytest/" \
|
||||
# CloudFlare/tests/test_cloudflare_calls.py || die
|
||||
# distutils-r1_python_prepare_all
|
||||
#}
|
||||
|
||||
python_test() {
|
||||
# these 2 tests fail in an ebuild environment for some reason
|
||||
# help appreciated
|
||||
local EPYTEST_DESELECT=(
|
||||
tests/test_client.py::TestCloudflare::test_validate_headers
|
||||
tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
|
||||
|
||||
epytest
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Run prism mock api server, this is what needs nodejs
|
||||
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
|
||||
"cloudflare-spec.yml" >prism.log &
|
||||
local MOCK_PID=$!
|
||||
# Wait for server to come online
|
||||
echo -n "Waiting for mockserver"
|
||||
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
|
||||
echo -n "."
|
||||
sleep 0.5
|
||||
done
|
||||
if grep -q "✖ fatal" prism.log; then
|
||||
die "Prism mock server failed"
|
||||
fi
|
||||
distutils-r1_src_test
|
||||
kill "${MOCK_PID}"
|
||||
}
|
||||
@@ -6,7 +6,7 @@ DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 linux-info pypi
|
||||
inherit distutils-r1 linux-info
|
||||
|
||||
DESCRIPTION="Helper tool for developing and building postmarketOS"
|
||||
HOMEPAGE="https://postmarketos.org/"
|
||||
|
||||
@@ -33,7 +33,7 @@ src_compile() {
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
|
||||
systemd_dounit ${PN}.service
|
||||
systemd_douserunit ${PN}.service
|
||||
doman ${PN}.1
|
||||
|
||||
use examples && DOCS+=( examples/. )
|
||||
10
net-wireless/sdrpp/files/sdrpp-1.2.0_pre20240607-lib64.patch
Normal file
10
net-wireless/sdrpp/files/sdrpp-1.2.0_pre20240607-lib64.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
# Patch lib directory
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -167,4 +167,4 @@ set(CORE_FILES ${RUNTIME_OUTPUT_DIRECTORY} PARENT_SCOPE)
|
||||
# cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||
|
||||
# Install directives
|
||||
-install(TARGETS sdrpp_core DESTINATION lib)
|
||||
\ No newline at end of file
|
||||
+install(TARGETS sdrpp_core DESTINATION lib64)
|
||||
@@ -0,0 +1,42 @@
|
||||
# Remove problem compiler flags
|
||||
# Bug: https://bugs.gentoo.org/934413
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -85,9 +85,9 @@ else()
|
||||
if (MSVC)
|
||||
set(SDRPP_COMPILER_FLAGS /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
- set(SDRPP_COMPILER_FLAGS -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
+ set(SDRPP_COMPILER_FLAGS -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
- set(SDRPP_COMPILER_FLAGS -O3 -std=c++17)
|
||||
+ set(SDRPP_COMPILER_FLAGS -std=c++17)
|
||||
endif ()
|
||||
endif()
|
||||
set(SDRPP_MODULE_COMPILER_FLAGS ${SDRPP_COMPILER_FLAGS})
|
||||
@@ -354,4 +354,4 @@ endif ()
|
||||
configure_file(${CMAKE_SOURCE_DIR}/cmake_uninstall.cmake ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake @ONLY)
|
||||
add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
||||
|
||||
-# Create headers target
|
||||
\ No newline at end of file
|
||||
+# Create headers target
|
||||
|
||||
--- a/core/libcorrect/CMakeLists.txt
|
||||
+++ b/core/libcorrect/CMakeLists.txt
|
||||
@@ -27,12 +27,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
endif()
|
||||
else()
|
||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||
else()
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Profiling")
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -g3")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3")
|
||||
endif()
|
||||
endif()
|
||||
endif(MSVC)
|
||||
@@ -61,6 +61,10 @@ DEPEND="sci-libs/fftw
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/sdrpp-1.2.0_pre20240607-remove-compiler-flags.patch"
|
||||
)
|
||||
|
||||
src_unpack(){
|
||||
default
|
||||
mv SDRPlusPlus* "${P}" || die
|
||||
@@ -69,7 +73,7 @@ src_unpack(){
|
||||
src_prepare(){
|
||||
if [ "${ARCH}" = "amd64" ];
|
||||
then
|
||||
eapply "${FILESDIR}/lib64.patch"
|
||||
eapply "${FILESDIR}/sdrpp-1.2.0_pre20240607-lib64.patch"
|
||||
fi
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user