commit: 5f3f724e674ddd0d21e24172853e5c4d64d6bad5 Author: Saveliy Boyarchuk <sav.boyar <AT> gmail <DOT> com> AuthorDate: Sat Feb 7 13:47:25 2026 +0000 Commit: Saveliy Boyarchuk <sav.boyar <AT> gmail <DOT> com> CommitDate: Sat Feb 7 13:47:25 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f3f724e
dev-util/ols: new package, add 2026.01, 9999 Signed-off-by: Saveliy Boyarchuk <sav.boyar <AT> gmail.com> dev-util/ols/Manifest | 1 + dev-util/ols/metadata.xml | 23 +++++++++++++++++++ dev-util/ols/ols-2026.01.ebuild | 45 ++++++++++++++++++++++++++++++++++++ dev-util/ols/ols-9999.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+) diff --git a/dev-util/ols/Manifest b/dev-util/ols/Manifest new file mode 100644 index 0000000000..3d788e0889 --- /dev/null +++ b/dev-util/ols/Manifest @@ -0,0 +1 @@ +DIST ols-2026-01.tar.gz 1287243 BLAKE2B 84169a34638f2f26fb352ecbfc8703c71305abf8b454a243f35184157dae8679b4f86ba00352547a955b30e9f1d07d6be7f6c45bf342c94a1a2ddfd21340146a SHA512 3a394652fc94562a316e67c1192219d6da002c06cbb74e161ec1de27eb8de21fb5b25aba862c5276739adb43239e92733c42fd53457ef7bd0135245ee7a006bb diff --git a/dev-util/ols/metadata.xml b/dev-util/ols/metadata.xml new file mode 100644 index 0000000000..794902628b --- /dev/null +++ b/dev-util/ols/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Saveliy Boyarchuk (Yappaholic)</name> + </maintainer> + <longdescription lang="en"> + OLS is a LSP(Language Server Protocol) implementation for + Odin Programming Language. + </longdescription> + <use> + <flag name="odinfmt">Install formatter</flag> + </use> + <upstream> + <remote-id type="github">DanielGavin/ols</remote-id> + <maintainer status="active"> + <name>DanielGavin</name> + </maintainer> + <bugs-to>https://github.com/DanielGavin/ols/issues</bugs-to> + <changelog>https://github.com/DanielGavin/ols/releases</changelog> + </upstream> +</pkgmetadata> diff --git a/dev-util/ols/ols-2026.01.ebuild b/dev-util/ols/ols-2026.01.ebuild new file mode 100644 index 0000000000..48af411801 --- /dev/null +++ b/dev-util/ols/ols-2026.01.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo + +DESCRIPTION="Language server for Odin Programming language" +HOMEPAGE="https://github.com/DanielGavin/ols" + +MY_PV="${PV/./-}" +SRC_URI="https://github.com/DanielGavin/ols/archive/refs/tags/dev-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz" +S="${WORKDIR}/ols-dev-${MY_PV}" + +LICENSE="MIT" +SLOT="0" + +KEYWORDS="~amd64" +IUSE="odinfmt" + +# Tracks the same version of Odin compiler +RDEPEND=" + ~dev-lang/odin-${PV} +" + +DEPEND="${RDEPEND}" + +# No need to configure +src_configure() { + default +} + +src_compile() { + edo "${S}/build.sh" + if use odinfmt; then + edo "${S}/odinfmt.sh" + fi +} + +src_install() { + dobin "${S}/ols" + if use odinfmt; then + dobin "${S}/odinfmt" + fi +} diff --git a/dev-util/ols/ols-9999.ebuild b/dev-util/ols/ols-9999.ebuild new file mode 100644 index 0000000000..6db86466c9 --- /dev/null +++ b/dev-util/ols/ols-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo git-r3 + +DESCRIPTION="Language server for Odin Programming language" +HOMEPAGE="https://github.com/DanielGavin/ols" + +EGIT_REPO_URI="${HOMEPAGE}.git" + +#SRC_URI="${HOMEPAGE}/archive/refs/tags/dev-2026-01.tar.gz -> ${P}.tar.gz" + +#S="${WORKDIR}/ols-dev-2026-01" + +LICENSE="MIT" +SLOT="0" + +#KEYWORDS="~amd64" +IUSE="odinfmt" + +# Needs head of odin compiler +RDEPEND=" + ~dev-lang/odin-9999 +" + +DEPEND="${RDEPEND}" + +# No need to configure +src_configure() { + default +} + +src_compile() { + edo "${S}/build.sh" + if use odinfmt; then + edo "${S}/odinfmt.sh" + fi +} + +src_install() { + dobin "${S}/ols" + if use odinfmt; then + dobin "${S}/odinfmt" + fi +} + +pkg_postinst() { + elog "For more info on configuration, see ${HOMEPAGE}#configuration" +}
