blob: cfa4b8a6b1fc07696cf50d8ab740cb792d83ed78 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A library for mostly OS-independent handling of pty/tty/utmp/wtmp/lastlog"
HOMEPAGE="http://software.schmorp.de/pkg/libptytty.html"
SRC_URI="http://dist.schmorp.de/${PN}/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
PATCHES=(
"${FILESDIR}"/${PN}-2.0-rundir.patch
)
DOCS=( Changes README )
src_configure() {
# Bug #828923
local mycmakeargs=()
if use elibc_musl; then
mycmakeargs+=(
-DPT_LASTLOGX_FILE="\"/dev/null/lastlogx\""
-DPT_WTMPX_FILE="\"/dev/null/wtmpx\""
)
fi
cmake_src_configure
}
|