mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
Package-Manager: Portage-3.0.28, Repoman-3.0.3 RepoMan-Options: --include-arches="sparc" Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sam James <sam@gentoo.org>
35 lines
730 B
Bash
35 lines
730 B
Bash
# Copyright 1999-2021 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="amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
|
|
IUSE="elibc_musl"
|
|
|
|
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
|
|
}
|