commit: 9a1e950a695230c82b4b7bf1117f553b233b3671
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 09:58:23 2021 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 12:26:14 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a1e950a
media-libs/libsfml: EAPI-7 bump, switch to cmake.eclass
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-libs/libsfml/libsfml-2.5.1.ebuild | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/media-libs/libsfml/libsfml-2.5.1.ebuild
b/media-libs/libsfml/libsfml-2.5.1.ebuild
index 159102d0049..2b975f17c8f 100644
--- a/media-libs/libsfml/libsfml-2.5.1.ebuild
+++ b/media-libs/libsfml/libsfml-2.5.1.ebuild
@@ -1,10 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit cmake-utils eapi7-ver
+EAPI=7
-MY_P="SFML-${PV}"
+inherit cmake
DESCRIPTION="Simple and Fast Multimedia Library (SFML)"
HOMEPAGE="https://www.sfml-dev.org/ https://github.com/SFML/SFML"
@@ -33,21 +32,21 @@ RDEPEND="
x11-libs/xcb-util-image
)
"
-DEPEND="
- ${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
doc? ( app-doc/doxygen )
"
DOCS=( changelog.md readme.md )
-S="${WORKDIR}/${MY_P}"
+S="${WORKDIR}/SFML-${PV}"
src_prepare() {
sed -i "s:DESTINATION .*:DESTINATION /usr/share/doc/${PF}:" \
doc/CMakeLists.txt || die
find examples -name CMakeLists.txt -delete || die
- cmake-utils_src_prepare
+ cmake_src_prepare
}
src_configure() {
@@ -59,11 +58,11 @@ src_configure() {
if use kernel_Winnt; then
mycmakeargs+=( -DSFML_USE_SYSTEM_DEPS=TRUE )
fi
- cmake-utils_src_configure
+ cmake_src_configure
}
src_install() {
- cmake-utils_src_install
+ cmake_src_install
insinto /usr/share/cmake/Modules
doins cmake/SFMLConfig.cmake.in