www-apps/libravatarserv: Update eclass: cmake-utils → cmake.

This commit is contained in:
tastytea 2020-10-24 12:24:17 +02:00
parent f9bc810116
commit c7daa5fd16
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 10 additions and 19 deletions

View File

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit cmake-utils
inherit cmake
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
@ -45,7 +45,7 @@ if [[ "${PV}" != "9999" ]]; then
fi
src_prepare() {
cmake-utils_src_prepare
cmake_src_prepare
sed -i "s|\${CMAKE_INSTALL_DOCDIR}|\${CMAKE_INSTALL_DATAROOTDIR}/doc/${P}|" \
CMakeLists.txt || die "Build script modification failed"
}

View File

@ -1,15 +1,15 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit cmake-utils
inherit cmake
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
fi
DESCRIPTION="Simple libravatar server."
DESCRIPTION="Simple libravatar server"
HOMEPAGE="https://schlomp.space/tastytea/libravatarserv"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://schlomp.space/tastytea/libravatarserv.git"
@ -33,19 +33,10 @@ RDEPEND="
dev-libs/libxdg-basedir
dev-cpp/identiconpp
"
DEPEND="
dev-util/cmake
${RDEPEND}
"
DEPEND="${RDEPEND}"
DOCS="README.md doc/nginx-example.conf"
DOCS=("README.md" "doc/nginx-example.conf")
if [[ "${PV}" != "9999" ]]; then
S="${WORKDIR}/${PN}"
fi
src_prepare() {
cmake-utils_src_prepare
sed -i "s|\${CMAKE_INSTALL_DOCDIR}|\${CMAKE_INSTALL_DATAROOTDIR}/doc/${P}|" \
CMakeLists.txt || die "Build script modification failed"
}