Files
gentoo/dev-libs/jthread/jthread-1.3.3.ebuild
T
Sergey Popov 3925c99dae dev-libs/jthread: bump EAPI to 7
Switch from cmake-utils to cmake eclass

Reported-by: Andreas Sturmlechner <asturm@gentoo.org>
Closes: https://bugs.gentoo.org/770583
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
2021-02-17 11:24:15 +03:00

28 lines
722 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CMAKE_ECLASS=cmake
inherit cmake-multilib
DESCRIPTION="JThread provides some classes to make use of threads easy on different platforms"
HOMEPAGE="https://research.edm.uhasselt.be/jori/page/CS/Jthread.html"
SRC_URI="https://research.edm.uhasselt.be/jori/${PN}/${P}.tar.bz2"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="amd64 x86"
IUSE="static-libs"
DOCS=( ChangeLog README.md doc/manual.tex )
src_prepare() {
# do not build static library, if it is not requested
if ! use static-libs; then
sed -i -e '/jthread-static/d' src/CMakeLists.txt || die 'sed on src/CMakeLists.txt failed'
fi
cmake_src_prepare
}