www-servers/quark: update EAPI 7 -> 8

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2025-06-07 09:53:53 +03:00
parent 631832d753
commit 764e9c7f33
2 changed files with 31 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
Do not overwrite *FLAGS
Use CC and PREFIX from the environment
--- a/config.mk
+++ b/config.mk
@@ -4,13 +4,8 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
# flags
-CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
-LDFLAGS = -lpthread -s
-
-# compiler and linker
-CC = cc
+CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+LDFLAGS += -lpthread

View File

@@ -1,19 +1,22 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
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/"
S="${WORKDIR}/${P}"
LICENSE="ISC"
SLOT="0"
PATCHES=(
"${FILESDIR}"/quark-9999-configure.patch
)
src_configure() {
sed -in 's/local//' config.mk
sed -in 's/d -s/d/' config.mk
sed -in 's/CF/#CF/' config.mk
sed -in 's/CPP/#CPP/' config.mk
export CC=$(tc-getCC)
export PREFIX="${EPREFIX}"/usr
}