net-misc/kristall: Make it respect *FLAGS.

The project uses make which then calls qmake, so we can't use
qmake-utils unless we want to make ourselves a lot of work. Instead we
initialize the QMAKE_*FLAGS variables ourselves.

Closes: https://bugs.gentoo.org/781692

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2021-04-09 20:44:03 +02:00
parent 15931f3a10
commit e3696b0c6e
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From 9cec33fdbd7c7bb983d4562ccbb08adf5d7194ec Mon Sep 17 00:00:00 2001
From: tastytea <tastytea@tastytea.de>
Date: Fri, 9 Apr 2021 19:54:34 +0200
Subject: [PATCH] Add *FLAGS.
---
src/kristall.pro | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/kristall.pro b/src/kristall.pro
index 2a8b21e..4193c57 100644
--- a/src/kristall.pro
+++ b/src/kristall.pro
@@ -19,6 +19,10 @@ LIBS += -lcrypto
# We need iconv on non-linux platforms
!linux: LIBS += -liconv
+QMAKE_CFLAGS = $$(CFLAGS)
+QMAKE_CXXFLAGS = $$(CXXFLAGS)
+QMAKE_LFLAGS = $$(LDFLAGS)
+
QMAKE_CFLAGS += -Wno-unused-parameter -Werror=return-type
QMAKE_CXXFLAGS += -Wno-unused-parameter -Werror=return-type
--
2.26.3

View File

@@ -0,0 +1,35 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit xdg
DESCRIPTION="Visual cross-platform gemini browser"
HOMEPAGE="https://github.com/MasterQ32/kristall"
if [ "${PV}" == "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/MasterQ32/kristall.git"
else
SRC_URI="https://github.com/MasterQ32/${PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-3"
SLOT="0"
RDEPEND="
dev-qt/qtmultimedia:5[widgets]
dev-qt/qtsvg:5
dev-qt/qtnetwork:5[ssl]
"
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/qtcore" # qmake
PATCHES=( "${FILESDIR}/${PN}-0.3_add_flags.patch" )
src_install() {
emake DESTDIR="${D}" INSTALL="install -D" PREFIX="${EPREFIX}/usr" install
einstalldocs
}

View File

@@ -27,6 +27,8 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/qtcore" # qmake
PATCHES=( "${FILESDIR}/${PN}-0.3_add_flags.patch" )
src_install() {
emake DESTDIR="${D}" INSTALL="install -D" PREFIX="${EPREFIX}/usr" install
einstalldocs