Compare commits

..

4 Commits

Author SHA1 Message Date
Shin'ya Minazuki
5cad985ff3 net-im/deltachat-desktop-bin: do not make me banish you to your own overlay
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-04-18 20:50:42 -03:00
Shin'ya Minazuki
14889f54f5 Add www-apps/yarnd
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-04-17 20:45:58 -03:00
Shin'ya Minazuki
870cd4c854 Add app-crypt/salty
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-04-17 19:48:32 -03:00
Shin'ya Minazuki
a1280f545e www-misc/yomi: they just _are_ handled differently
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-04-17 19:47:45 -03:00
9 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>shinyoukai@laidback.moe</email>
<name>Shin'ya Minazuki</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,35 @@
# Copyright 2026 Shin'ya Minazuki
EAPI=8
inherit git-r3 go-module
DESCRIPTION="A command-line tool using the saltpack messaging format"
HOMEPAGE="https://git.mills.io/prologic/salty"
EGIT_REPO_URI="https://git.mills.io/prologic/salty.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
DOCS=( README.md )
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
export CGO_ENABLED=0
ego build -tags "netgo static_build" -installsuffix netgo ./cmd/salty/...
ego build -tags "netgo static_build" -installsuffix netgo ./cmd/salty-keygen/...
}
src_test() {
export CGO_ENABLED=1
ego test -v -cover -race -coverprofile=coverage.out ./...
}
src_install() {
dobin salty
dobin salty-keygen
}

View File

@@ -2,3 +2,5 @@ DIST deltachat-desktop-2.48.0-arm64.tar.gz 145067886 BLAKE2B 216229f5213e32870c0
DIST deltachat-desktop-2.48.0.tar.gz 145311040 BLAKE2B 07c4f85bb61312d5c0905b910492fe8fc412ca570884e7b7f02a24dbdea70efcae25f856c517319fc08faddff61d72ffdb26516c97fc061e782727943eb65174 SHA512 cf2d46f7ef008810a9be24c3dcf4c53d1e55ab7d4e4ddf1d7514e02a335236a67f255bdbbba6be72e7692bcdd797e991078f4a2ea38be6c1329c69641c25accb DIST deltachat-desktop-2.48.0.tar.gz 145311040 BLAKE2B 07c4f85bb61312d5c0905b910492fe8fc412ca570884e7b7f02a24dbdea70efcae25f856c517319fc08faddff61d72ffdb26516c97fc061e782727943eb65174 SHA512 cf2d46f7ef008810a9be24c3dcf4c53d1e55ab7d4e4ddf1d7514e02a335236a67f255bdbbba6be72e7692bcdd797e991078f4a2ea38be6c1329c69641c25accb
DIST deltachat-desktop-2.49.0-arm64.tar.gz 145090262 BLAKE2B a0d69ccb18051484512b53ba8eff9cd46215c743bb1f3ebfe84bb2392702094354df528ed3bc25a7103251a98354d30c701b62b642d069002471ff3b06af73e7 SHA512 a953a371ef4ad98d4cacee7ab9b5447cd06d00c3f198545b571ebbc180fe59ae548ef2f9b8996eb448275d13dd3923d2affe6554cc85eb7555c18077a39b2650 DIST deltachat-desktop-2.49.0-arm64.tar.gz 145090262 BLAKE2B a0d69ccb18051484512b53ba8eff9cd46215c743bb1f3ebfe84bb2392702094354df528ed3bc25a7103251a98354d30c701b62b642d069002471ff3b06af73e7 SHA512 a953a371ef4ad98d4cacee7ab9b5447cd06d00c3f198545b571ebbc180fe59ae548ef2f9b8996eb448275d13dd3923d2affe6554cc85eb7555c18077a39b2650
DIST deltachat-desktop-2.49.0.tar.gz 145340382 BLAKE2B 63247cea6ca9c6d39504800a420da80f10b1c3a5e1046fff35830d67e52a0a786e715d0bfe5072af9fed56f14cb1d9d7f82246a65a67595c1c48664bf2967e70 SHA512 77399848fd9bc506641d6790a2e3afafee2d3840d3d79af513667d1e274fa0691b4482d6e16760fdfad85319131fe0a4f3f59005c3b2bcf0584fdd3656359606 DIST deltachat-desktop-2.49.0.tar.gz 145340382 BLAKE2B 63247cea6ca9c6d39504800a420da80f10b1c3a5e1046fff35830d67e52a0a786e715d0bfe5072af9fed56f14cb1d9d7f82246a65a67595c1c48664bf2967e70 SHA512 77399848fd9bc506641d6790a2e3afafee2d3840d3d79af513667d1e274fa0691b4482d6e16760fdfad85319131fe0a4f3f59005c3b2bcf0584fdd3656359606
DIST deltachat-desktop-2.49.1-arm64.tar.gz 145090250 BLAKE2B 8f3d882049eac578f14b7897824b85dd242a1565f2e65eb88178333e8d187fd638d0604b7b78b0167a205ce977f69ac485cd69ea1ab3cd62259e4c5a649c14e9 SHA512 2abc961db8a6a03e60441912886d7b8123083fcb6c7ab0b85af4d0f115f3f9766ef36e3de9bbb70f8ced270b94266d1bb41a9d891188af7bbbbb8457d3dcc9aa
DIST deltachat-desktop-2.49.1.tar.gz 145340563 BLAKE2B febe72721e91dbc26bd29d290ae85f8ca93f659acb3d19efc9accc5ee6b0a54f631ce259466cfca73ad4d7fff2386c284650988efa234069524cf5f926f6dfb3 SHA512 d66564f1ab9f23af3e187d7973bbe36269e00dc2ad06176801ffc61aa8fff25c9a92e1dfd4aa1fdd4ae7241c7500fc0a21bb2b39c0d5610ba7bbda11c91b5efa

View File

@@ -0,0 +1,120 @@
# Copyright 2026 Shin'ya Minazuki
EAPI=8
inherit desktop xdg
DESCRIPTION="Decentralized and secure messenger app (binary)"
HOMEPAGE="https://delta.chat"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
DC_PN="${PN%-bin}"
SRC_URI="
amd64? ( https://download.delta.chat/desktop/v${PV}/${DC_PN}-${PV}.tar.gz )
arm64? ( https://download.delta.chat/desktop/v${PV}/${DC_PN}-${PV}-arm64.tar.gz )
"
S="${WORKDIR}"
IUSE="suid"
QA_PREBUILT="
opt/deltachat-desktop/deltachat-desktop
opt/deltachat-desktop/libEGL.so
opt/deltachat-desktop/libffmpeg.so
opt/deltachat-desktop/libGLESv2.so
opt/deltachat-desktop/libvk_swiftshader.so
opt/deltachat-desktop/libvulkan.so.1
opt/deltachat-desktop/resources/*
"
RDEPEND="
app-accessibility/at-spi2-core:2[X]
dev-libs/expat
dev-libs/fribidi
dev-libs/glib:2
dev-libs/libpcre2
dev-libs/libunistring
dev-libs/nettle
dev-libs/nspr
dev-libs/nss
dev-libs/wayland
media-gfx/graphite2
media-libs/alsa-lib
media-libs/fontconfig
media-libs/freetype
media-libs/harfbuzz
media-libs/libpng
net-dns/libidn2
net-libs/gnutls
net-print/cups
sys-apps/dbus
sys-libs/glibc
virtual/jpeg
virtual/libudev
virtual/zlib
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3[X]
x11-libs/libX11
x11-libs/libXau
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libdrm
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
x11-libs/pixman
"
RESTRICT="mirror strip"
src_install() {
if use amd64; then
cd deltachat-desktop-${PV} || die
elif use arm64; then
cd deltachat-desktop-${PV}-arm64 || die
fi
newicon "${FILESDIR}/delta-chat.svg" "${DC_PN}.svg"
insinto "/opt/${DC_PN}/locales"
doins locales/*.pak
insinto "/opt/${DC_PN}/resources"
doins resources/app.asar
insinto "/opt/${DC_PN}/resources/app.asar.unpacked"
doins -r resources/app.asar.unpacked/html-dist/
if use amd64; then
insinto "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@deltachat"
doins -r resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-linux-x64/
insinto "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@parcel"
doins -r resources/app.asar.unpacked/node_modules/@parcel/watcher-linux-x64-glibc/
fperms 0755 "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-linux-x64/deltachat-rpc-server"
elif use arm64; then
insinto "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@deltachat"
doins -r resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-linux-arm64/
insinto "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@parcel"
doins -r resources/app.asar.unpacked/node_modules/@parcel/watcher-linux-arm64-glibc/
fperms 0755 "/opt/${DC_PN}/resources/app.asar.unpacked/node_modules/@deltachat/stdio-rpc-server-linux-arm64/deltachat-rpc-server"
fi
insinto "/opt/${DC_PN}"
doins *.pak *.bin *.dat
exeinto "/opt/${DC_PN}"
doexe *.so *.so.* "${DC_PN}"
dosym -r "/opt/${DC_PN}/${DC_PN}" "/usr/bin/${DC_PN}"
make_desktop_entry "${DC_PN} --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto %U" \
"Delta Chat" "${DC_PN}" "Network;InstantMessaging;" \
"StartupWMClass=DeltaChat"
}

View File

@@ -0,0 +1,18 @@
# Arguments to pass to the Yarn.social server
# Some common options are:
# -R to enable open registrations (this is required for admin account creation)
# -d path to data directory
# -O to enable open profiles
# Environment variables
# These will be exported by OpenRC for use with the daemon
# ADMIN_USER=""
# ADMIN_EMAIL=""
# These values are required for a production instance
# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1
#
# API_SIGNING_KEY=""
# COOKIE_SECRET=""
# MAGICLINK_SECRET=""

View File

@@ -0,0 +1,12 @@
#!/sbin/openrc-run
# Copyright 2026 Shin'ya Minazuki
supervisor="supervise-daemon"
command="/usr/sbin/${RC_SVCNAME}"
command_args="${yarnd_args}"
command_background="true"
command_user="yarnd:yarnd"
depend() {
need net
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>shinyoukai@laidback.moe</email>
<name>Shin'ya Minazuki</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,53 @@
# Copyright 2026 Shin'ya Minazuki
EAPI=8
inherit git-r3 go-module
DESCRIPTION="Self-hosted non-social social media (daemon)"
HOMEPAGE="https://yarn.social"
EGIT_REPO_URI="https://git.mills.io/yarnsocial/yarn.git"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
# There's also other two build dependencies,
# but they are not required for building, and no user
# I know gives a crap.
BDEPEND="dev-util/minify"
DOCS=( AUTHORS README.md )
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_configure() {
einfo "Bundling CSS files..."
minify -b -o ./internal/theme/static/css/yarn.min.css ./internal/theme/static/css/[0-9]*-*.css
minify -b -o ./internal/theme/static/css/noscript.min.css ./internal/theme/static/css/noscript.css
einfo "Bundiling JS files..."
minify -b -o ./internal/theme/static/js/yarn.min.js ./internal/theme/static/js/[0-9]*-*.js
}
src_compile() {
export VERSION="0.15.1-${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/yarnd/...
}
src_install() {
dosbin yarnd
newinitd "${FILESDIR}/yarnd.initd-r1" "${PN}"
newconfd "${FILESDIR}/yarnd.confd-r1" "${PN}"
einstalldocs
}

View File

@@ -11,6 +11,11 @@ LICENSE="ISC"
SLOT="0" SLOT="0"
KEYWORDS="-* amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 x86" KEYWORDS="-* amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 x86"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_compile() { src_compile() {
export CGO_ENABLED=0 export CGO_ENABLED=0