commit:     60fa560c150544729e1d3dd95f7fdc06d2565bf8
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sat Feb  7 12:31:33 2026 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sat Feb  7 12:31:33 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=60fa560c

net-proxy/xray-core: add 26.1.23

This is the latest "release" version

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>

 net-proxy/xray-core/Manifest                 |  2 +
 net-proxy/xray-core/xray-core-26.1.23.ebuild | 78 ++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/net-proxy/xray-core/Manifest b/net-proxy/xray-core/Manifest
index 7d25e68af6..47ea6aaffd 100644
--- a/net-proxy/xray-core/Manifest
+++ b/net-proxy/xray-core/Manifest
@@ -1,2 +1,4 @@
+DIST Xray-core-26.1.23-vendor.tar.xz 3474764 BLAKE2B 
701628efdd537311dfd24807df1a068ef4c2407a218417cbf95bd7689c51c030aa74a02cb3be185d0a0530e6cf32e2741c5de5fdbe9e4cd94f253f8c487cf24a
 SHA512 
c8e17975f3d4d2a7959ed674ac9cce5982acd0ef3f73ef34f27c4d06e5a343a451e8cb09d064c1a0da277cae1f37ea4b14e5a6b7e5a14d45d4f90b8f6a09adba
 DIST Xray-core-26.2.6-vendor.tar.xz 3480232 BLAKE2B 
dcee327a027d8f8f67e8ae48db4431897ad6dc71b2b1c5189b35e150bb545375cdc0112c36eee7dce6209fa5c005611be1b91a70a96737823e0d97ac872adc54
 SHA512 
c46f7dde7463e59279391e9786804b66a83a5910e262abe15218d222532ae196179b1d81aed2d871523f26d5c3dcc4d0ea0043778d40d724dadd8e06f4c5f51c
+DIST xray-core-26.1.23.tar.gz 772539 BLAKE2B 
63f65a696b64d4e9485377a47d148473ab7e66879a6427554d0997cf11e48d47ff2f427ef19cf90a47e2d02b025133332f54d362715a044aad665d7780dd74f6
 SHA512 
c3b2fc33f538b25251d90b3d7f0dafbf3148ad997204a29fbaf8c659144826665ccb9d6b5e1f036ea1deb3c4548fa0a2ae0caf13e1780706789bf6e3dc6aa880
 DIST xray-core-26.2.6.tar.gz 778461 BLAKE2B 
a274aed48fdd944d790922be504d1994decad00f5912649f9a6512ffdc1dc25b26f47b548201ee27a1110e5af0a713fb92ed12e36df6818ee17d777e0f68d2db
 SHA512 
11192582ad479045836c8d02b46040165b2acea653ace2a0694755783203836baa9fc3ea6804cb2326c94d81fa365a2a11c02d091ef0b1adfc680f511c66ad14

diff --git a/net-proxy/xray-core/xray-core-26.1.23.ebuild 
b/net-proxy/xray-core/xray-core-26.1.23.ebuild
new file mode 100644
index 0000000000..f78fff3c63
--- /dev/null
+++ b/net-proxy/xray-core/xray-core-26.1.23.ebuild
@@ -0,0 +1,78 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="A unified platform for anti-censorship"
+HOMEPAGE="https://github.com/XTLS/Xray-core/";
+
+if [[ "${PV}" == 9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/XTLS/Xray-core.git";
+else
+       SRC_URI="
+               https://github.com/XTLS/Xray-core/archive/v${PV}.tar.gz -> 
${P}.tar.gz
+               
https://github.com/puleglot/Xray-core/releases/download/v${PV}/Xray-core-${PV}-vendor.tar.xz
+"
+       KEYWORDS="~amd64 ~arm64"
+       S="${WORKDIR}/Xray-core-${PV}"
+fi
+
+# main
+LICENSE="MPL-2.0"
+# deps
+LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-3 MIT"
+SLOT="0"
+
+RESTRICT="test"
+
+RDEPEND="
+       acct-user/xray
+       acct-group/xray"
+DEPEND="${RDEPEND}"
+BDEPEND=">=dev-lang/go-1.25.5:="
+
+src_unpack() {
+       if [[ "${PV}" == 9999* ]]; then
+               git-r3_src_unpack
+               pushd "${S}" || die
+               # upstream bumped required go version to 1.25.6 for no 
particular reason
+               # gvisor.dev/gvisor requires 1.25.5
+               sed -E -i'' 's/^go 1\.25\..*/go 1.25.5/' go.mod || die
+               ego mod tidy
+               popd || die
+               go-module_live_vendor
+       else
+               default
+       fi
+}
+
+src_prepare() {
+       # upstream bumped required go version to 1.25.6 for no particular reason
+       # gvisor.dev/gvisor requires 1.25.5
+       sed -E -i'' 's/^go 1\.25\..*/go 1.25.5/' go.mod || die
+       default
+}
+
+src_compile() {
+       if [[ ${PV} == 9999* ]]; then
+               local CUSTOM_VER="$(git rev-parse --short HEAD)"
+       else
+               local CUSTOM_VER="${PV}"
+       fi
+
+       CGO_ENABLED=0 ego build -ldflags="-X 
github.com/xtls/xray-core/core.build=${CUSTOM_VER}" \
+               -trimpath -o xray -v ./main
+}
+
+src_install() {
+       default
+
+       dobin xray
+       systemd_dounit "${FILESDIR}"/xray.service
+       systemd_newunit "${FILESDIR}"/xray_at.service "[email protected]"
+
+       keepdir /etc/xray
+}

Reply via email to