From 95ebc0cdffed324aea6dbe803c35ddf7c4cb8c6c Mon Sep 17 00:00:00 2001 From: Shin'ya Minazuki Date: Tue, 15 Sep 2026 11:36:59 -0400 Subject: [PATCH] Add www-apps/yarnc Signed-off-by: Shin'ya Minazuki --- www-apps/yarnc/metadata.xml | 8 ++++++ www-apps/yarnc/yarnc-0.16.0.ebuild | 42 ++++++++++++++++++++++++++++++ www-apps/yarnc/yarnc-9999.ebuild | 42 ++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 www-apps/yarnc/metadata.xml create mode 100644 www-apps/yarnc/yarnc-0.16.0.ebuild create mode 100644 www-apps/yarnc/yarnc-9999.ebuild diff --git a/www-apps/yarnc/metadata.xml b/www-apps/yarnc/metadata.xml new file mode 100644 index 0000000..a9ea785 --- /dev/null +++ b/www-apps/yarnc/metadata.xml @@ -0,0 +1,8 @@ + + + + + shinyoukai@laidback.moe + Shin'ya Minazuki + + diff --git a/www-apps/yarnc/yarnc-0.16.0.ebuild b/www-apps/yarnc/yarnc-0.16.0.ebuild new file mode 100644 index 0000000..400af55 --- /dev/null +++ b/www-apps/yarnc/yarnc-0.16.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2026 Shin'ya Minazuki +EAPI=8 + +inherit git-r3 go-module systemd + +DESCRIPTION="Self-hosted non-social social media (client)" +HOMEPAGE="https://yarn.social" +EGIT_REPO_URI="https://git.mills.io/yarnsocial/yarn.git" +EGIT_COMMIT="270a535202ee96f31457c69c6aec96581d97e5e9" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +BDEPEND=" + >=dev-lang/go-1.25.0 +" + +DOCS=( AUTHORS README.md ) + +src_unpack() { + git-r3_src_unpack + go-module_live_vendor +} + +src_compile() { + export VERSION="${PVR}" + export COMMIT="${EGIT_COMMIT}" + export BUILD="$(date +%Y-%m-%d)" + export CGO_ENABLED="0" + + ego build \ + -tags "netgo static_build" \ + -installsuffix netgo \ + -ldflags="-w -X git.mills.io/yarnsocial/yarn.Version=${VERSION} -X git.mills.io/yarnsocial/yarn.Commit=${COMMIT} -X git.mills.io/yarnsocial/yarn.Build=${BUILD}" \ + ./cmd/yarnc/... +} + +src_install() { + dobin yarnc + einstalldocs +} diff --git a/www-apps/yarnc/yarnc-9999.ebuild b/www-apps/yarnc/yarnc-9999.ebuild new file mode 100644 index 0000000..17c8716 --- /dev/null +++ b/www-apps/yarnc/yarnc-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 2026 Shin'ya Minazuki +EAPI=8 + +inherit git-r3 go-module systemd + +DESCRIPTION="Self-hosted non-social social media (client)" +HOMEPAGE="https://yarn.social" +EGIT_REPO_URI="https://git.mills.io/yarnsocial/yarn.git" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +BDEPEND=" + >=dev-lang/go-1.25.0 +" + +DOCS=( AUTHORS README.md ) + +src_unpack() { + git-r3_src_unpack + go-module_live_vendor +} + +src_compile() { + export VERSION="LIVE-${EGIT_COMMIT}" + export COMMIT="${EGIT_COMMIT}" + export BUILD="$(date +%Y-%m-%d)" + export CGO_ENABLED="0" + + ego build \ + -tags "netgo static_build" \ + -installsuffix netgo \ + -ldflags="-w -X git.mills.io/yarnsocial/yarn.Version=${VERSION} -X git.mills.io/yarnsocial/yarn.Commit=${COMMIT} -X git.mills.io/yarnsocial/yarn.Build=${BUILD}" \ + ./cmd/yarnc/... + +} + +src_install() { + dobin yarnc + einstalldocs +}