Added slock-9999 with dpms support
This commit is contained in:
parent
a7ebd784e6
commit
a85770c31d
1
x11-misc/slock/Manifest
Normal file
1
x11-misc/slock/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
EBUILD slock-9999.ebuild 1081 SHA256 47e2ea1be161fefb3e1f75c6b7209c2ac7a8d739c399d0417c22b39ce2652c23 SHA512 b76bd9b191dd166ed4a227bccc9eecfe109b7c1c0fd87aff126ed4e870f359374f54415418e4d01f3ed67730f7bb28c3e5d538e2b86fcb885bbc7642f1bb7b48 WHIRLPOOL 4d28d4e0729ddeb1894ec05c7feef8cfb0f6740fcf3edab75d257978a41d989af27dab25f54dbc77fd4c0eb32cd4a19f3da4dc97a0eb7aa51278a48f82ff2b0b
|
54
x11-misc/slock/slock-9999.ebuild
Normal file
54
x11-misc/slock/slock-9999.ebuild
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
inherit fcaps savedconfig toolchain-funcs
|
||||||
|
|
||||||
|
if [[ ${PV} = 9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
fi
|
||||||
|
DESCRIPTION="simple X screen locker with DPMS support"
|
||||||
|
HOMEPAGE="https://austenwares.com/gogs/applications/slock"
|
||||||
|
if [[ ${PV} = 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://austenwares.com/gogs/applications/${PN}"
|
||||||
|
EGIT_BOOTSTRAP=""
|
||||||
|
KEYWORDS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXrandr
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
x11-proto/randrproto
|
||||||
|
x11-proto/xproto
|
||||||
|
"
|
||||||
|
src_prepare() {
|
||||||
|
eapply_user
|
||||||
|
sed -i \
|
||||||
|
-e '/^CFLAGS/{s: -Os::g; s:= :+= :g}' \
|
||||||
|
-e '/^CC/d' \
|
||||||
|
-e '/^LDFLAGS/{s:-s::g; s:= :+= :g}' \
|
||||||
|
config.mk || die
|
||||||
|
sed -i \
|
||||||
|
-e 's|@s{CC}|$(CC)|g' \
|
||||||
|
Makefile || die
|
||||||
|
if use elibc_FreeBSD; then
|
||||||
|
sed -i -e 's/-DHAVE_SHADOW_H//' config.mk || die
|
||||||
|
fi
|
||||||
|
tc-export CC
|
||||||
|
}
|
||||||
|
src_compile() { emake slock; }
|
||||||
|
src_install() {
|
||||||
|
dobin slock
|
||||||
|
}
|
||||||
|
pkg_postinst() {
|
||||||
|
fcaps cap_dac_override,cap_sys_resource /usr/bin/slock
|
||||||
|
savedconfig_pkg_postinst
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user