mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-08 06:17:07 -08:00
27 lines
712 B
Bash
27 lines
712 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit cmake-multilib
|
|
|
|
DESCRIPTION="JThread provides some classes to make use of threads easy on different platforms"
|
|
HOMEPAGE="http://research.edm.uhasselt.be/jori/page/CS/Jthread.html"
|
|
SRC_URI="http://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-utils_src_prepare
|
|
}
|