mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
www-servers/quark: update EAPI 7 -> 8
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
21
www-servers/quark/files/quark-9999-configure.patch
Normal file
21
www-servers/quark/files/quark-9999-configure.patch
Normal 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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user