summaryrefslogtreecommitdiff
blob: 797dafa1bf987902a6588c2e65ee36348e332ecd (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
52
53
54
55
56
57
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit autotools pam toolchain-funcs

DESCRIPTION="WINGs Display Manager"
HOMEPAGE="https://github.com/voins/wdm"
SRC_URI="http://voins.program.ru/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="pam selinux truetype"

COMMON_DEPEND="
	>=x11-wm/windowmaker-0.70.0
	x11-libs/libXmu
	x11-libs/libXpm
	x11-libs/libXt
	pam? ( sys-libs/pam )
	truetype? ( x11-libs/libXft )
"
DEPEND="
	${COMMON_DEPEND}
	sys-devel/gettext
	virtual/pkgconfig
"
RDEPEND="
	${COMMON_DEPEND}
	pam? ( >=sys-auth/pambase-20080219.1 )
"
PATCHES=(
	"${FILESDIR}"/${P}-terminateServer.patch
	"${FILESDIR}"/${P}-remove-fakehome.patch
	"${FILESDIR}"/${P}-pkg_config.patch
	"${FILESDIR}"/${P}-ar.patch
)

src_prepare() {
	default
	eautoreconf
}
src_configure() {
	tc-export AR
	econf \
		--with-wdmdir="${EPREFIX}"/etc/X11/wdm \
		$(use_enable pam) \
		$(use_enable selinux)
}

src_install() {
	default

	rm -f "${ED}"/etc/pam.d/wdm || die
	pamd_mimic system-local-login wdm auth account password session
}