blob: 6c9d4fdc34fbb689ec0a70aa3e21e354c3d696b4 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id: 688f948c5f3067e775bfab5057e8047f467a9ca9 $
EAPI=7
inherit cmake
DESCRIPTION="zlib data compression library"
HOMEPAGE="https://github.com/zlib-ng/zlib-ng"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
#KEYWORDS="~amd64 ~x86"
IUSE="compat test"
RESTRICT="!test? ( test )"
src_prepare() {
cmake_src_prepare
sed "/LIB_INSTALL_DIR/s@/lib\"@/$(get_libdir)\"@" \
-i CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DZLIB_COMPAT="$(usex compat)"
-DZLIB_ENABLE_TESTS="$(usex test)"
)
cmake_src_configure
}
|