From 09a9c36ff920030509b172c1d28b181e45b63718 Mon Sep 17 00:00:00 2001 From: ingenarel Date: Wed, 19 Nov 2025 16:39:32 +0600 Subject: [PATCH] www-servers/quark: add 0_pre20220817; use an ebuild template Closes: https://bugs.gentoo.org/955535 Signed-off-by: ingenarel --- www-servers/quark/quark-0_pre20220817.ebuild | 26 ++++++++++++++++++++ www-servers/quark/quark-9999.ebuild | 4 +++ 2 files changed, 30 insertions(+) create mode 100644 www-servers/quark/quark-0_pre20220817.ebuild diff --git a/www-servers/quark/quark-0_pre20220817.ebuild b/www-servers/quark/quark-0_pre20220817.ebuild new file mode 100644 index 0000000000..4ea5486d2b --- /dev/null +++ b/www-servers/quark/quark-0_pre20220817.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit git-r3 toolchain-funcs + +DESCRIPTION="A small, GET-only static HTTP server" +HOMEPAGE="https://tools.suckless.org/quark/" +EGIT_REPO_URI="https://git.suckless.org/quark/" + +if [[ ${PV} != *9999* ]]; then + EGIT_COMMIT="5ad0df91757fbc577ffceeca633725e962da345d" +fi + +LICENSE="ISC" +SLOT="0" + +PATCHES=( + "${FILESDIR}"/quark-9999-configure.patch +) + +src_configure() { + export CC=$(tc-getCC) + export PREFIX="${EPREFIX}"/usr +} diff --git a/www-servers/quark/quark-9999.ebuild b/www-servers/quark/quark-9999.ebuild index 88e885d238..7da530d9b0 100644 --- a/www-servers/quark/quark-9999.ebuild +++ b/www-servers/quark/quark-9999.ebuild @@ -9,6 +9,10 @@ DESCRIPTION="A small, GET-only static HTTP server" HOMEPAGE="https://tools.suckless.org/quark/" EGIT_REPO_URI="https://git.suckless.org/quark/" +if [[ ${PV} != *9999* ]]; then + EGIT_COMMIT="" +fi + LICENSE="ISC" SLOT="0"