mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
Merge updates from master
This commit is contained in:
@@ -16,10 +16,14 @@ SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
RESTRICT="strip test bindist"
|
||||
|
||||
DEPEND="acct-group/onepassword-cli"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/op"
|
||||
|
||||
src_install() {
|
||||
dobin op
|
||||
|
||||
chgrp onepassword-cli "${D}/usr/bin/op" || die "Failed to set group of 1password CLI"
|
||||
fperms g+s "/usr/bin/op"
|
||||
}
|
||||
@@ -1,2 +1,4 @@
|
||||
DIST 1password-cli-2.34.0-amd64.zip 14516956 BLAKE2B ead0afcd77672cfbb4c60996c542a7a1b41b85d0b7ce04434abdaeb369a8eeb85a2d09495f51bd49afbe9a988a8a68c86a3febbe2895d0227d0ddbf26014e3b6 SHA512 09846d5598f10d0ee027e7d4cf8097b1e78d29021c4a86d7ba2d1f652162d371fb79559c51b82c70e534b3be590e40b1f56df831ced9ceb554e1ec3a1edde332
|
||||
DIST 1password-cli-2.34.0-arm64.zip 13461687 BLAKE2B 85b804dee2f0a3b0da1e3f0d1070e9bb9f7b354b554dbb91db0f9676732c77f60db2c612de61b65eac18e3ac9d745d2bae4e9a4cb3c96d459dd57e8ba2e3c498 SHA512 ba7f73ecadb136b09d58220935523499fe78642a04484d3fa8e65bb03f0db281e54e66feab57e625aad54f232e8c4d809f0a7180dfb7ee9d2ae0cc36b97df482
|
||||
DIST 1password-cli-2.34.1-amd64.zip 14518739 BLAKE2B 59054633324b34b14106e0806372394bd008e2f442dfac03f3543e91fc86a781f96f40655f2c2902c3cf79d418a149b69b3539b98c0cbbd254f90732d3490ba1 SHA512 6702115bb8522e06f9aaaa13252b16cac9515ccaf5e3404bf74ada18ed4aee91e92e247188ed30028319a36cf51fc03ee80fcda9f031b4fd9b7a72eb6a3881ee
|
||||
DIST 1password-cli-2.34.1-arm64.zip 13461480 BLAKE2B 0ba4b31c9be051196bd34c563670e22b7ed1f8ca8a6737d147a27858204192dce4188eb7d1746d0eaa50ce681f64611df1873cec237829c9fe2436a7d6ee6d1a SHA512 cc7abe22908e0dceccc9722cdf9ba742d1d19c94625b4085200abcc28ddc3a4ddb9f9eba9818071c02b50aa8c14e68d4becaa2d5ddbcb1c20e57b46e9f58d42c
|
||||
|
||||
1
dev-python/mergedeep/Manifest
Normal file
1
dev-python/mergedeep/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST mergedeep-1.3.4.gh.tar.gz 26627 BLAKE2B 334f5ec6948185e3f7758e079e65d92fb04dd3ae3bb208cb8fc67d2fd2d90ce16fecb28562d42eea75db978d9d323983efb85abbf7e5ff18e40c95fb066c47e7 SHA512 24cb1dbae9be715045b66b6d3a3c3deb98a41176ff2fae405f254baeebf5f45b69c948f7780b67762e613e20b5df3c5987e730c5cd91fe7dd1fbda6408906559
|
||||
19
dev-python/mergedeep/mergedeep-1.3.4.ebuild
Normal file
19
dev-python/mergedeep/mergedeep-1.3.4.ebuild
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A deep merge function for Python"
|
||||
HOMEPAGE="https://github.com/clarketm/mergedeep https://pypi.org/project/mergedeep/"
|
||||
SRC_URI="https://github.com/clarketm/mergedeep/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
12
dev-python/mergedeep/metadata.xml
Normal file
12
dev-python/mergedeep/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>devrin@fastmail.com</email>
|
||||
<name>Devrin Talen</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">mergedeep</remote-id>
|
||||
<remote-id type="github">clarketm/mergedeep</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -36,5 +36,13 @@ RDEPEND="
|
||||
dev-python/websockets[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
# Tests broken
|
||||
EPYTEST_DESELECT=(
|
||||
tests/test_circup_install.py::test_with_deps_install
|
||||
tests/test_circup_install.py::test_no_deps_install
|
||||
tests/test_deploy.py::test_basic_deploy
|
||||
tests/test_sync.py::test_sync_command
|
||||
tests/test_circup_build.py::test_single_build
|
||||
tests/test_circup_build.py::test_build_matches_bundle
|
||||
)
|
||||
distutils_enable_tests pytest
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
DIST forgejo-runner-12.10.2-deps.tar.xz 41852292 BLAKE2B bac2447f40db70fba40c46424f6ac72f925c9f17efd7b3a999cd0fb63db209f640f765885947e2f71211ea81416dea3953f9f3998c8af1aae4e06433a7840bc3 SHA512 240651ec8029c252a3e1205d7a4a0a9652e78f1ac1b4fd64db0dd4d5fbee3cdee0a5027668cf5a7ffafca7b09eb72bbe9e52283e4727598a691228bd4a9853cc
|
||||
DIST forgejo-runner-12.10.2.tar.gz 3529492 BLAKE2B b405b21ba1f36d68a2a28d76294084543a10e2be658ce011e34f0a465d2a55e0704705951de090cec2446dd25cc3d11377adcbfbd2518b919d9cb958d4263008 SHA512 b121611069f5bfdb709f5b61e739c9c94ed3950c96cf8fee29ebe735a302cbac152c39062ec37739db68efa4421da51909f0a7aa64b2032f4c559a300935e6ec
|
||||
DIST forgejo-runner-12.11.1-deps.tar.xz 41852968 BLAKE2B cc96d61ae38866b06ef0928cb533b03b283462deb2468e13a672df84d3bb2680e73b8a0817411af20a37678eba2b8cbf7112109a2c8c7bff35912cac06c40f93 SHA512 77e52efb6460dba07cd8381c3b39e73c54f5f3e008aa09b8b25db743b5e938c607649da631e03e063c870fa9047a0316f56462b02f8f526e13328c00ad551fed
|
||||
DIST forgejo-runner-12.11.1.tar.gz 3535351 BLAKE2B 887c9eb5dd85b30287f7211e175cda99ab01a9678632c2394498cf5ca2e55a5ab8e5b4b391299ef5a90c31fed625275e9ce310acf9349efada25fbd01b670e99 SHA512 dd70fc0509ca819b9027155788e35b80a810d54d78831e1d6ebfaa6bde6e1d171290e184ec53ca0e260df4f9f39447b02ee4e8391900f88c248866c6cee7343a
|
||||
|
||||
95
dev-util/forgejo-runner/forgejo-runner-12.11.1.ebuild
Normal file
95
dev-util/forgejo-runner/forgejo-runner-12.11.1.ebuild
Normal file
@@ -0,0 +1,95 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module systemd
|
||||
|
||||
DESCRIPTION="A daemon that connects to a Forgejo instance and runs jobs for CI"
|
||||
HOMEPAGE="https://code.forgejo.org/forgejo/runner https://forgejo.org/docs/next/admin/actions/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://code.forgejo.org/forgejo/runner.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://code.forgejo.org/forgejo/runner/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/runner"
|
||||
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="examples +docker podman lxc"
|
||||
RESTRICT="mirror test"
|
||||
REQUIRED_USE="|| ( docker podman lxc )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/go-1.25.11
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/${PN}[docker=,podman=,lxc=]
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
go-module_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed \
|
||||
-e "/ExecStart=/s#=.*#=${EPREFIX}/usr/bin/forgejo-runner daemon -c %h/runner-config.yml#g" \
|
||||
-e "/ExecReload=/s#=#=${EPREFIX}#g" \
|
||||
-e "/User=/s#=.*#=${PN}#g" \
|
||||
-e '/WorkingDirectory=/s#=.*#=~#g' \
|
||||
-i contrib/forgejo-runner.service || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# export version information
|
||||
# https://github.com/gentoo/guru/pull/205
|
||||
# https://forums.gentoo.org/viewtopic-p-8831646.html
|
||||
local VERSION
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
VERSION="$(
|
||||
git describe --tags --first-parent --abbrev=7 --long --dirty --always \
|
||||
| sed -e "s/^v//g"
|
||||
)"
|
||||
else
|
||||
VERSION="${PVR}"
|
||||
fi
|
||||
|
||||
local EXTRA_GOFLAGS_LD=(
|
||||
# "-w" # disable DWARF generation
|
||||
# "-s" # disable symbol table
|
||||
"-X=code.forgejo.org/forgejo/runner/v11/internal/pkg/ver.version=v${VERSION}"
|
||||
)
|
||||
|
||||
GOFLAGS+=" '-ldflags=${EXTRA_GOFLAGS_LD[*]}'"
|
||||
|
||||
ego build -tags 'netgo osusergo' -o forgejo-runner
|
||||
|
||||
# Makefile does this
|
||||
# emake forgejo-runner
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin forgejo-runner
|
||||
|
||||
systemd_dounit "contrib/forgejo-runner.service"
|
||||
|
||||
dodoc "README.md"
|
||||
if use examples; then
|
||||
dodoc -r "examples"
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
fi
|
||||
}
|
||||
@@ -1,2 +1,2 @@
|
||||
DIST nuclear-bin-1.38.0.deb 19941718 BLAKE2B ff47204376cc48341673b9c2609351319fbc17f51f3096e9a71eecb4882d49063839cdd3339db5d6436fe8c634d65afc0f5dc9536db05c6fa4c370cea7529be8 SHA512 3f2253c7ad171c87782e461f7b729ac8ebd6f364c785b8ba7d3fcb066f8644888568fb97a0419fd6413723edc544ad02c02dcb34aca4ed027290a20ffdd1a74a
|
||||
DIST nuclear-bin-1.39.0.deb 19995516 BLAKE2B e5d24ef798831c794ba5fdf94406553c79309726fa4c5ff7b84d0c5cb746ddf2fb103e1d34a43a945ed8241db4dbaddd780650aa7f4a53a3ac29b33a257e5763 SHA512 65b247985c156fc4aa4e44042e446101ee620648cdc186413998eb4665bb1ba19c432ec5c05d8889b3ebc8d51f4067edd560bad4e472ed113f59e570640bc3aa
|
||||
DIST nuclear-bin-1.40.0.deb 19997052 BLAKE2B 60dde1d559c269bb65218ffa9007d4f31aafcebbff0d464a7f349167ffb712c24cc56ebeb96fe8c5f9bb6e60ce992752af02030e7916455857744e83ae68033d SHA512 c90a10fc8244adeda7848433528bc56f4c67a0dcb1fa4a6a08981ceb650037332dc2eded00b483251aa5614d49c4c0b675a9e58bea0d2d3d9c9f5a5472abfacd
|
||||
|
||||
@@ -69,7 +69,6 @@ src_configure() {
|
||||
-D Python3_EXECUTABLE="${PYTHON}"
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_SKIP_RPATH=ON
|
||||
-D LLVM_BINUTILS_INCDIR=/usr/include
|
||||
-D LLVM_ENABLE_PROJECTS=mlir
|
||||
-D BUILD_SHARED_LIBS=OFF
|
||||
-D LLVM_STATIC_LINK_CXX_STDLIB=ON
|
||||
|
||||
@@ -38,19 +38,13 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fix execute permissions and add shebang for Python scripts
|
||||
local script
|
||||
while IFS= read -r -d '' script; do
|
||||
chmod +x "${script}" || die
|
||||
# Add shebang if missing
|
||||
if ! head -n 1 "${script}" | grep -q '^#!'; then
|
||||
sed -i '1i#!/usr/bin/env python3' "${script}" || die
|
||||
fi
|
||||
done < <(find . -name "*.py" -print0)
|
||||
|
||||
pkg_setup() {
|
||||
# llvm-r2 and python-any-r1 both export pkg_setup and llvm-r2 wins,
|
||||
# leaving PYTHON unset, so call python_setup ourselves. An empty
|
||||
# PYTHON_EXECUTABLE makes the Makefile run helper scripts via their env
|
||||
# python3 shebang, which breaks with python-exec[-native-symlinks].
|
||||
llvm-r2_pkg_setup
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
@@ -64,3 +58,11 @@ src_configure() {
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# yosys-smtbmc and yosys-witness keep an env python3 shebang that also
|
||||
# breaks under python-exec[-native-symlinks]; retarget them at EPYTHON.
|
||||
python_fix_shebang "${ED}"/usr/bin/yosys-smtbmc "${ED}"/usr/bin/yosys-witness
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
DIST forgejo-11.0.14.tar.gz 55026283 BLAKE2B 71d8ad26cc78bb3e65be6a53b3993be4103d60cc2fdbd9f09485855b91f1a73d0200414831010e683b861180fcff7330984bafe62da85c7fa7a626a3974b7f22 SHA512 bd83f8ffccadf82d8974eed3a8250b33f93018709c2a49960a13219dc59687d441ee1f7d86bb1176a6fd44a4202132c2a5aa1e67b7e1fd35fec4b1b03f9bbdbd
|
||||
DIST forgejo-11.0.15.tar.gz 54796184 BLAKE2B a47b6b148639260a59ca803bcbfd25504501dad824ff95ef56538d7b1003bb8e6ff5de7a64a9076f0225e3590ed07357301b71eae5035c9402713f868c6de7f4 SHA512 a683a2de7aba56594926440998230c2807c4ff83f7a4b230d1658263d14651c6afcbf8b10b750d3e0f752f1bd18dc671200bf3dcc6fb9feeec01370d325f247f
|
||||
DIST forgejo-14.0.5.tar.gz 48132807 BLAKE2B a196e49c7e6094195a2041d40abc816a0a097bbb5cc820b60b7319a78a60c319cd4af7c5e2945146907dd82ca0567509a609590843329217386bb256ed112652 SHA512 6227d0d09c87aad21baf44dccda1b84487ba3f5796c1fa5218c09c932e846cb577eff170c327089669771350722a2c838a5e1ad49ef8020e1564bd04cddb3834
|
||||
DIST forgejo-15.0.2.tar.gz 49711959 BLAKE2B cba95e4ff5adb79a0f8d3b1627517398f3c2effb677a7d041699b6fcb982cf12bf245fcd0b4de79d8bb421c2b39a01486ddd6654abe139d0614ace4531db2a39 SHA512 a2da0998679651191dda5d1541b63840534a82d6fdc9dc4c6963f814b76b802452d28a1ec2592fd8bc8a97657c60252ba343f0f7680b42ab4c18ab744fc05e36
|
||||
DIST forgejo-15.0.3.tar.gz 49513691 BLAKE2B 10d016e9c23a5892e1936a807393d469200d7d33d7bf8fdee68a01229d5e0655cc36f412674a42ba4bdef4861accb31d32b4c3260953f1b43a6ce801eb56c037 SHA512 5c5b067cb6e9ec62b2014b1561a080ad3e7be151420c687adf9c50564d2b69dee287f9bcba735610d1211566a6118d7cc55fdc4b4888f6871b513eed012061fe
|
||||
|
||||
127
www-apps/forgejo/forgejo-11.0.15.ebuild
Normal file
127
www-apps/forgejo/forgejo-11.0.15.ebuild
Normal file
@@ -0,0 +1,127 @@
|
||||
# Copyright 2016-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit fcaps go-module tmpfiles systemd flag-o-matic
|
||||
|
||||
DESCRIPTION="A self-hosted lightweight software forge"
|
||||
HOMEPAGE="https://forgejo.org/ https://codeberg.org/forgejo/forgejo"
|
||||
|
||||
SRC_URI="https://codeberg.org/forgejo/forgejo/releases/download/v${PV}/forgejo-src-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-src-${PV}"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
|
||||
IUSE="+acct pam sqlite pie"
|
||||
|
||||
DEPEND="
|
||||
acct? (
|
||||
acct-group/git
|
||||
acct-user/git[gitea] )
|
||||
pam? ( sys-libs/pam )"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-vcs/git
|
||||
!www-apps/gitea" # until acct-user/git[forgejo]
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.25.11"
|
||||
|
||||
DOCS=(
|
||||
custom/conf/app.example.ini CONTRIBUTING.md README.md
|
||||
)
|
||||
FILECAPS=(
|
||||
-m 711 cap_net_bind_service+ep usr/bin/forgejo
|
||||
)
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local sedcmds=(
|
||||
-e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
|
||||
-e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/forgejo#"
|
||||
-e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
|
||||
-e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
|
||||
-e "s#^MODE = console#MODE = file#"
|
||||
-e "s#^LEVEL = Trace#LEVEL = Info#"
|
||||
-e "s#^LOG_SQL = true#LOG_SQL = false#"
|
||||
-e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
|
||||
)
|
||||
|
||||
sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
|
||||
if use sqlite ; then
|
||||
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bug 832756 - PIE build issues
|
||||
filter-flags -fPIE
|
||||
filter-ldflags -fPIE -pie
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local forgejo_tags=(
|
||||
bindata
|
||||
$(usev pam)
|
||||
$(usex sqlite 'sqlite sqlite_unlock_notify' '')
|
||||
)
|
||||
local forgejo_settings=(
|
||||
"-X forgejo.org/modules/setting.CustomConf=${EPREFIX}/etc/forgejo/app.ini"
|
||||
"-X forgejo.org/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
|
||||
"-X forgejo.org/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
|
||||
)
|
||||
local makeenv=(
|
||||
DRONE_TAG="${PV}"
|
||||
LDFLAGS="-extldflags \"${LDFLAGS}\" ${forgejo_settings[*]}"
|
||||
TAGS="${forgejo_tags[*]}"
|
||||
)
|
||||
|
||||
GOFLAGS=""
|
||||
if use pie ; then
|
||||
GOFLAGS+="-buildmode=pie"
|
||||
fi
|
||||
|
||||
# need to set -j1 or build fails due to a race condition between MAKE jobs.
|
||||
# this does not actually impact build parallelism, because the go compiler
|
||||
# will still build everything in parallel when it's invoked.
|
||||
env "${makeenv[@]}" emake -j1 EXTRA_GOFLAGS="${GOFLAGS}" backend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp gitea forgejo
|
||||
dobin forgejo
|
||||
|
||||
einstalldocs
|
||||
|
||||
newconfd "${FILESDIR}/forgejo.confd-r1" forgejo
|
||||
newinitd "${FILESDIR}/forgejo.initd-r3" forgejo
|
||||
newtmpfiles - forgejo.conf <<-EOF
|
||||
d /run/forgejo 0755 git git
|
||||
EOF
|
||||
systemd_newunit "${FILESDIR}"/forgejo.service-r3 forgejo.service
|
||||
|
||||
insinto /etc/forgejo
|
||||
newins custom/conf/app.example.ini app.ini
|
||||
if use acct; then
|
||||
fowners root:git /etc/forgejo/{,app.ini}
|
||||
fperms g+w,o-rwx /etc/forgejo/{,app.ini}
|
||||
|
||||
diropts -m0750 -o git -g git
|
||||
keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
|
||||
keepdir /var/log/forgejo
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fcaps_pkg_postinst
|
||||
tmpfiles_process forgejo.conf
|
||||
|
||||
ewarn "${PN} ${PV} will continue to use /var/lib/gitea as the default home,"
|
||||
ewarn "as acct-user/git[gitea] depends on it, and acct-user[forgejo] does not"
|
||||
ewarn "exist yet."
|
||||
}
|
||||
155
www-apps/forgejo/forgejo-15.0.3.ebuild
Normal file
155
www-apps/forgejo/forgejo-15.0.3.ebuild
Normal file
@@ -0,0 +1,155 @@
|
||||
# Copyright 2016-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit fcaps go-module tmpfiles systemd flag-o-matic eapi9-ver
|
||||
|
||||
DESCRIPTION="A self-hosted lightweight software forge"
|
||||
HOMEPAGE="https://forgejo.org/ https://codeberg.org/forgejo/forgejo"
|
||||
|
||||
SRC_URI="https://codeberg.org/forgejo/forgejo/releases/download/v${PV}/forgejo-src-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-src-${PV}"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
|
||||
IUSE="+acct pam sqlite pie"
|
||||
|
||||
DEPEND="
|
||||
acct? (
|
||||
acct-group/git
|
||||
acct-user/git[gitea] )
|
||||
pam? ( sys-libs/pam )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
>=dev-vcs/git-2.34.1
|
||||
!www-apps/gitea" # until acct-user/git[forgejo]
|
||||
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.26.4
|
||||
"
|
||||
|
||||
DOCS=(
|
||||
custom/conf/app.example.ini CONTRIBUTING.md README.md
|
||||
)
|
||||
FILECAPS=(
|
||||
-m 711 cap_net_bind_service+ep usr/bin/forgejo
|
||||
)
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local sedcmds=(
|
||||
-e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#"
|
||||
-e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/forgejo#"
|
||||
-e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#"
|
||||
-e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#"
|
||||
-e "s#^MODE = console#MODE = file#"
|
||||
-e "s#^LEVEL = Trace#LEVEL = Info#"
|
||||
-e "s#^LOG_SQL = true#LOG_SQL = false#"
|
||||
-e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#"
|
||||
)
|
||||
|
||||
sed -i "${sedcmds[@]}" custom/conf/app.example.ini || die
|
||||
if use sqlite ; then
|
||||
sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.example.ini || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# bug 832756 - PIE build issues
|
||||
filter-flags -fPIE
|
||||
filter-ldflags -fPIE -pie
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local forgejo_tags=(
|
||||
bindata
|
||||
$(usev pam)
|
||||
$(usex sqlite 'sqlite sqlite_unlock_notify' '')
|
||||
)
|
||||
local forgejo_settings=(
|
||||
"-X forgejo.org/modules/setting.CustomConf=${EPREFIX}/etc/forgejo/app.ini"
|
||||
"-X forgejo.org/modules/setting.CustomPath=${EPREFIX}/var/lib/gitea/custom"
|
||||
"-X forgejo.org/modules/setting.AppWorkPath=${EPREFIX}/var/lib/gitea"
|
||||
)
|
||||
local makeenv=(
|
||||
DRONE_TAG="${PV}"
|
||||
LDFLAGS="-extldflags \"${LDFLAGS}\" ${forgejo_settings[*]}"
|
||||
TAGS="${forgejo_tags[*]}"
|
||||
)
|
||||
|
||||
GOFLAGS=""
|
||||
if use pie ; then
|
||||
GOFLAGS+="-buildmode=pie"
|
||||
fi
|
||||
|
||||
# need to set -j1 or build fails due to a race condition between MAKE jobs.
|
||||
# this does not actually impact build parallelism, because the go compiler
|
||||
# will still build everything in parallel when it's invoked.
|
||||
env "${makeenv[@]}" emake -j1 EXTRA_GOFLAGS="${GOFLAGS}" backend
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp gitea forgejo
|
||||
dobin forgejo
|
||||
|
||||
einstalldocs
|
||||
|
||||
newconfd "${FILESDIR}/forgejo.confd-r1" forgejo
|
||||
newinitd "${FILESDIR}/forgejo.initd-r3" forgejo
|
||||
newtmpfiles - forgejo.conf <<-EOF
|
||||
d /run/forgejo 0755 git git
|
||||
EOF
|
||||
systemd_newunit "${FILESDIR}"/forgejo.service-r3 forgejo.service
|
||||
|
||||
insinto /etc/forgejo
|
||||
newins custom/conf/app.example.ini app.ini
|
||||
if use acct; then
|
||||
fowners root:git /etc/forgejo/{,app.ini}
|
||||
fperms g+w,o-rwx /etc/forgejo/{,app.ini}
|
||||
|
||||
diropts -m0750 -o git -g git
|
||||
keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
|
||||
keepdir /var/log/forgejo
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fcaps_pkg_postinst
|
||||
tmpfiles_process forgejo.conf
|
||||
|
||||
ewarn "${PN} ${PV} will continue to use /var/lib/gitea as the default home,"
|
||||
ewarn "as acct-user/git[gitea] depends on it, and acct-user[forgejo] does not"
|
||||
ewarn "exist yet."
|
||||
|
||||
if ver_replacing -lt 15.0.0; then
|
||||
ewarn "Forgejo 15 has removed admin-level permissions from repo-specific and public-only access tokens"
|
||||
ewarn "To see other breaking changes, as well as all relese notes,"
|
||||
ewarn "see https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/15.0.0.md"
|
||||
fi
|
||||
|
||||
if ver_replacing -lt 14.0.0; then
|
||||
ewarn "If SSH is enabled and Forgejo manages an authorized_keys file, the server may fail to start"
|
||||
ewarn "Fixes can be found at https://codeberg.org/forgejo/forgejo/milestone/27583"
|
||||
ewarn "Users of the Forgejo CLI should also check the release notes, as there are changes to flag formatting"
|
||||
fi
|
||||
|
||||
if ver_replacing -lt 13.0.0; then
|
||||
ewarn "Make sure your runners are verified before migrating to Forgejo 13"
|
||||
ewarn "More information at: https://code.forgejo.org/forgejo/runner/releases/tag/v9.0.0"
|
||||
ewarn "Warning: the migration will invalidate existing actions artifacts"
|
||||
ewarn "More information at: https://codeberg.org/forgejo/forgejo/pulls/9023"
|
||||
fi
|
||||
|
||||
if ver_replacing -lt 12.0.0; then
|
||||
ewarn "Warning: upgrade from 11.0.x LTS detected, carefully consider this nontrivial migration!"
|
||||
ewarn "Once upgraded a database cannot be downgraded!"
|
||||
ewarn "11.0.x to 12.0.0 release notes can be found at"
|
||||
ewarn "https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/12.0.0.md"
|
||||
fi
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
DIST zen-bin-1.19.13b-amd64.tar.xz 90004576 BLAKE2B 9556fe6848293f6836c769ba86ea92a57802152a5801f537f9a7d40a93a8f955bf4beb9e1acd57cfe508a9785b50061f2be55ccbbc41bf5f415607dd370e3b26 SHA512 8f54290679efbf9e3c17a09df267474959cbebcb5f55d864e48023a86753fd32774f5577ffafbdcad7f465b5ee4eb7ffcebddff783721f356c27bfe75ef58cfe
|
||||
DIST zen-bin-1.19.13b-arm64.tar.xz 76901072 BLAKE2B 48e709b258620b6af32968a43118b55087fde557b60c4adbfbc5ef8eab69320114258841553f1cae2501be6b090858251863800c1eb0865c25381725c723d66b SHA512 80962604c1236bdc79987ea97edfe9c4bcdc2349bde3c3843b81ef740f5d11cd0b14607f5f2d03754fac62b3c6b8f3ea68116775c2c85b29705c37e6a2bc8431
|
||||
DIST zen-bin-1.20.2b-amd64.tar.xz 90456156 BLAKE2B a78e422f0badea5f71ba23ae81fed7000167ff4da11a80dbfb539fef65dee872faa4ef4a963dc21d2449c41982457bc7fceb5343966c997d13591400831aebb3 SHA512 8ed759f45e226052357f58be9b98d8e9adbd59683c40ecb8a7a526cc641990b923b6eb0d7636e7b82bf5f2c7cd4fb72922aeecbb6e40971d1f1ce5f192d0afec
|
||||
DIST zen-bin-1.20.2b-arm64.tar.xz 77566552 BLAKE2B 12050813fac9de21ee35ecd7e2ed4c89af07c727963e802edf6df76aa45ff55c6fe8e894914a7b04f748d638271e92dd9ca32353412a5080482b5abd5dcf9d28 SHA512 4f9843507b09864a7b39022094b62f52b5f35e85b70bc5963c97a3efc1e747da976e98174acd987cfb2f5b6e4e6cd9b6c8f9ec5babff0b786e4cd131b0399317
|
||||
DIST zen-bin-1.21.1b-amd64.tar.xz 90416696 BLAKE2B 168153aa1516a9a8d05592e1043d610b2d77af28af88e9573590514250a24338c1ef2b565976cda8c75b3160ca8137092847d4457083325005ae3d32761e2fef SHA512 4283129f932ddae5b01f9bd549a1832083ead38bae2e4b05b88db032f4dc148156e11835c1d65fe10908f9cb24291bac2f707dc6c3c81416111141031e7f2e11
|
||||
DIST zen-bin-1.21.1b-arm64.tar.xz 77572924 BLAKE2B 8017abceb0b871b5c6e5a5067d33b589f739151e4f623a6c71c859ade902f848315beb515e05fef01b0a94a1503b876f79d2af100d75c39138b68a75d50154ef SHA512 2c0e1f9947797fe10052aaabfb16049857c3e0febfe83faa510ae2eca84427c59197a1244348c11777c8371ff8b1051c1c7e59ff49105e7c084ffa7ff6a7d87c
|
||||
|
||||
@@ -63,7 +63,7 @@ src_install() {
|
||||
newicon -s ${size} "browser/chrome/icons/default/default${size}.png" zen.png
|
||||
done
|
||||
#create desktop file
|
||||
make_desktop_entry "/usr/bin/zen" "Zen" zen "Network;WebBrowser" "$(cat "${FILESDIR}"/desktop_options)"
|
||||
make_desktop_entry "/usr/bin/zen %u" "Zen" zen "Network;WebBrowser" "$(cat "${FILESDIR}"/desktop_options)"
|
||||
#handle permissions of destdir files
|
||||
fperms 0755 "${destdir}"/{zen-bin,updater,glxtest,vaapitest}
|
||||
fperms 0750 "${destdir}"/pingsender
|
||||
1
x11-apps/variety/Manifest
Normal file
1
x11-apps/variety/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST variety-0.9.0.tar.gz 738943 BLAKE2B 4992e1709bc631a8dd969ecc279dd38e0ee936f853e31ef1a05ca9ecff7bab052e6ad7a9a388e1264b432eb7851238d1ecd460d0eb8643d037cb481c09016f9e SHA512 ccb76b7d5c378b1e38373e5072a669b065a08f573070b464ac6bf5e47fae048a31a58d0b4fd8647d0dcd9321935b91931605a2ee2c3b6629118450a0bf37d4ed
|
||||
15
x11-apps/variety/metadata.xml
Normal file
15
x11-apps/variety/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>yt+gentoo@sysv.in</email>
|
||||
<name>tooknox</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Variety is a wallpaper downloader and manager for Linux systems.
|
||||
It supports out-of-the-box most Linux desktop environments, and can be configured to work on more esoteric ones.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">varietywalls/variety</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
189
x11-apps/variety/variety-0.9.0.ebuild
Normal file
189
x11-apps/variety/variety-0.9.0.ebuild
Normal file
@@ -0,0 +1,189 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit distutils-r1 xdg desktop
|
||||
|
||||
MY_PV="0.9.0"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="Wallpaper downloader and manager for Linux systems"
|
||||
HOMEPAGE="https://github.com/varietywalls/variety"
|
||||
SRC_URI="https://github.com/varietywalls/variety/archive/refs/tags/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/libnotify[introspection]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
media-libs/gexiv2[introspection]
|
||||
dev-python/pycurl[${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
x11-libs/pango[introspection]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
net-libs/webkit-gtk[introspection]
|
||||
media-gfx/imagemagick
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/packaging[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
test? (
|
||||
dev-python/pylint[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove upstream documentation to avoid incorrect installation paths
|
||||
rm -f README.md CONTRIBUTING.md AUTHORS || die
|
||||
rm -f data/ui/changes.txt || die
|
||||
|
||||
# Variety requires this file; distutils-r1 does not generate it
|
||||
cat > variety_lib/variety_build_settings.py <<-EOF || die
|
||||
__variety_data_directory__ = '/usr/share/variety'
|
||||
EOF
|
||||
|
||||
# Patch setup.py robustly so setuptools does not try to package
|
||||
# variety/data and trigger namespace/package QA warnings.
|
||||
python3 - <<'PY' || die
|
||||
from pathlib import Path
|
||||
p = Path("setup.py")
|
||||
text = p.read_text()
|
||||
|
||||
replacements = {
|
||||
"package_data={'variety': ['data/**', 'locale/**']},":
|
||||
"package_data={},",
|
||||
'package_data={"variety": ["data/**", "locale/**"]},':
|
||||
'package_data={},',
|
||||
"include_package_data=True,":
|
||||
"include_package_data=False,",
|
||||
}
|
||||
|
||||
for old, new in replacements.items():
|
||||
text = text.replace(old, new)
|
||||
|
||||
p.write_text(text)
|
||||
PY
|
||||
|
||||
# Silence deprecated PEP621 license table warning
|
||||
python3 - <<'PY' || die
|
||||
from pathlib import Path
|
||||
p = Path("pyproject.toml")
|
||||
text = p.read_text()
|
||||
text = text.replace(
|
||||
'license = { text = "GPL-3.0-only" }',
|
||||
'license = "GPL-3.0-only"'
|
||||
)
|
||||
p.write_text(text)
|
||||
PY
|
||||
|
||||
# Patch varietyconfig.py to make runtime data lookup use /usr/share/variety instead of package resources
|
||||
python3 - <<'PY' || die "Failed to patch varietyconfig.py"
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
p = Path("variety_lib/varietyconfig.py")
|
||||
text = p.read_text()
|
||||
|
||||
text = text.replace('import importlib.resources', 'import os')
|
||||
|
||||
pattern = r"def get_data_file.*?return str\(.*?\)\)"
|
||||
|
||||
new_function = '''def get_data_file(*path_segments):
|
||||
"""Get the full path to a data file."""
|
||||
return os.path.join("/usr/share/variety", *path_segments)'''
|
||||
|
||||
text, count = re.subn(pattern, new_function, text, flags=re.DOTALL)
|
||||
|
||||
if count == 0:
|
||||
sys.exit("Error: Could not locate get_data_file() function in varietyconfig.py")
|
||||
|
||||
p.write_text(text)
|
||||
PY
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd tests || die
|
||||
PYTHONPATH="${S}:${PYTHONPATH}" \
|
||||
"${EPYTHON}" -m unittest discover -p '[tT]est*.py' \
|
||||
|| die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
|
||||
# Install Variety shared data directory
|
||||
insinto /usr/share/variety
|
||||
doins -r data/config data/ui data/media data/scripts || die
|
||||
|
||||
# Install desktop templates
|
||||
doins \
|
||||
data/variety-autostart.desktop.template \
|
||||
data/variety-profile.desktop.template || die
|
||||
|
||||
# Compile and install translations from po/*.po
|
||||
local po lang
|
||||
for po in po/*.po; do
|
||||
[[ -f ${po} ]] || continue
|
||||
lang=${po##*/}
|
||||
lang=${lang%.po}
|
||||
|
||||
dodir /usr/share/locale/${lang}/LC_MESSAGES || die
|
||||
msgfmt "${po}" -o "${ED}/usr/share/locale/${lang}/LC_MESSAGES/variety.mo" \
|
||||
|| die "msgfmt failed for ${po}"
|
||||
done
|
||||
|
||||
# Install application icon
|
||||
insinto /usr/share/icons/hicolor/scalable/apps
|
||||
newins data/icons/scalable/apps/variety.svg variety.svg || die
|
||||
|
||||
# Install real desktop entry from upstream template
|
||||
sed \
|
||||
-e 's/^_Name=/Name=/' \
|
||||
-e 's/^_Comment=/Comment=/' \
|
||||
variety.desktop > "${T}/variety.desktop" || die
|
||||
|
||||
domenu "${T}/variety.desktop" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] && ! has_version dev-libs/libayatana-appindicator; then
|
||||
elog "Variety has an optional dependency on dev-libs/libayatana-appindicator."
|
||||
elog "Without it, a classic tray icon will be used."
|
||||
fi
|
||||
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
Reference in New Issue
Block a user