mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
www-apps/snac: new package, add 2.92, 9999
Signed-off-by: Rose Hellsing <rose@pinkro.se>
This commit is contained in:
1
www-apps/snac/Manifest
Normal file
1
www-apps/snac/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST snac-2.92.tar.gz 333579 BLAKE2B b33cd36154e03985b6e9a4d6214c85bfce6eb5d4effc2372729cf54435a9a841a870e6ba0db98e3c4bb6558653fffa08f27ca6aa235b58375b01c08ee28f7878 SHA512 3d3569b9b88f2846b9d0ad510b195835ec22f822b5e40da60c7f8181dfd4337943bb917f966cd5701d301a7e81c36822a69dcb2d683357f81914940d5a0b1666
|
||||||
15
www-apps/snac/metadata.xml
Normal file
15
www-apps/snac/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>rose@pinkro.se</email>
|
||||||
|
<name>Rose Hellsing</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="codeberg">grunfink/snac2</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="mastodon">Enable Mastodon API support</flag>
|
||||||
|
<flag name="sandbox">Enable experimental sandboxing through Linux Landlock</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
||||||
42
www-apps/snac/snac-2.92.ebuild
Normal file
42
www-apps/snac/snac-2.92.ebuild
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="A simple, minimalistic ActivityPub instance written in portable C"
|
||||||
|
|
||||||
|
HOMEPAGE="https://codeberg.org/grunfink/snac2"
|
||||||
|
|
||||||
|
if [[ "${PV}" = "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://codeberg.org/grunfink/snac2"
|
||||||
|
else
|
||||||
|
SRC_URI="https://codeberg.org/grunfink/snac2/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/snac2"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
IUSE="+mastodon sandbox"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/openssl
|
||||||
|
net-misc/curl[ssl]
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local feature_opts=(
|
||||||
|
$(usex mastodon '' '-DNO_MASTODON_API')
|
||||||
|
$(usex sandbox '-DWITH_LINUX_SANDBOX' '')
|
||||||
|
)
|
||||||
|
emake CFLAGS="${CFLAGS} ${feature_opts}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" PREFIX="${D}"/usr PREFIX_MAN="${D}"/usr/share/man install
|
||||||
|
}
|
||||||
42
www-apps/snac/snac-9999.ebuild
Normal file
42
www-apps/snac/snac-9999.ebuild
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2026 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="A simple, minimalistic ActivityPub instance written in portable C"
|
||||||
|
|
||||||
|
HOMEPAGE="https://codeberg.org/grunfink/snac2"
|
||||||
|
|
||||||
|
if [[ "${PV}" = "9999" ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://codeberg.org/grunfink/snac2"
|
||||||
|
else
|
||||||
|
SRC_URI="https://codeberg.org/grunfink/snac2/archive/${PV}.tar.gz"
|
||||||
|
S="${WORKDIR}/snac2"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
IUSE="+mastodon sandbox"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/openssl
|
||||||
|
net-misc/curl[ssl]
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local feature_opts=(
|
||||||
|
$(usex mastodon '' '-DNO_MASTODON_API')
|
||||||
|
$(usex sandbox '-DWITH_LINUX_SANDBOX' '')
|
||||||
|
)
|
||||||
|
emake CFLAGS="${CFLAGS} ${feature_opts}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" PREFIX="${D}"/usr PREFIX_MAN="${D}"/usr/share/man install
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user