mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
Upgrade minimum cmake version. Closes: https://bugs.gentoo.org/975976 Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
68 lines
1.2 KiB
Bash
68 lines
1.2 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="HTTP Framework for REST Applications in C"
|
|
HOMEPAGE="https://github.com/babelouest/ulfius/"
|
|
SRC_URI="https://github.com/babelouest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="curl doc jansson ssl websocket"
|
|
RESTRICT="test"
|
|
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
"
|
|
DEPEND="
|
|
curl? ( net-misc/curl )
|
|
doc? (
|
|
app-text/doxygen
|
|
media-gfx/graphviz
|
|
)
|
|
jansson? ( dev-libs/jansson:= )
|
|
ssl? ( net-libs/gnutls:= )
|
|
net-libs/libmicrohttpd:=
|
|
net-libs/orcania
|
|
net-libs/yder
|
|
virtual/zlib:=
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-cmake.patch"
|
|
"${FILESDIR}/${P}-cmake-ex.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUILD_ULFIUS_DOCUMENTATION=$(usex doc)
|
|
-DWITH_CURL=$(usex curl)
|
|
-DWITH_GNUTLS=$(usex ssl)
|
|
-DWITH_JANSSON=$(usex jansson)
|
|
-DWITH_WEBSOCKET=$(usex websocket)
|
|
-DWITH_YDER=OFF
|
|
)
|
|
|
|
# bug 917149
|
|
sed -i -e "s/-Werror//g" CMakeLists.txt || die
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_compile() {
|
|
cmake_src_compile
|
|
use doc && cmake_build doc
|
|
}
|
|
|
|
src_install() {
|
|
use doc && local HTML_DOCS=( doc/html/* )
|
|
cmake_src_install
|
|
}
|