blob: 6cd189e334627ac3a4a2162530075614c75bf9bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
DESCRIPTION="Computing information projections iteratively"
HOMEPAGE="https://github.com/tom111/cipi"
SRC_URI="https://github.com/tom111/cipi/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="
dev-libs/boost:=
doc? ( virtual/latex-base )"
RDEPEND="${DEPEND}"
DOCS="AUTHORS README"
CMAKE_IN_SOURCE_BUILD="yes"
PATCHES=(
"${FILESDIR}/${P}-boost.patch"
)
src_prepare() {
cmake_src_prepare
append-ldflags -Wl,--copy-dt-needed-entries
}
src_configure() {
mycmakeargs=(
-DENABLE_DOC=$(usex doc ON OFF)
)
cmake_src_configure
}
pkg_postinst() {
elog
elog "The sample PARAM file has been installed to /usr/share/${PN}-${PV}"
elog
if use doc; then
elog "A pdf manual has been installed to /usr/share/${PN}-${PV}"
fi
}
|