From a85770c31d1f59fb397f1f9d97fcbaab7beb9b4f Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 21 Aug 2016 01:43:24 -0400 Subject: [PATCH] Added slock-9999 with dpms support --- x11-misc/slock/Manifest | 1 + x11-misc/slock/slock-9999.ebuild | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 x11-misc/slock/Manifest create mode 100644 x11-misc/slock/slock-9999.ebuild diff --git a/x11-misc/slock/Manifest b/x11-misc/slock/Manifest new file mode 100644 index 0000000..09e2916 --- /dev/null +++ b/x11-misc/slock/Manifest @@ -0,0 +1 @@ +EBUILD slock-9999.ebuild 1081 SHA256 47e2ea1be161fefb3e1f75c6b7209c2ac7a8d739c399d0417c22b39ce2652c23 SHA512 b76bd9b191dd166ed4a227bccc9eecfe109b7c1c0fd87aff126ed4e870f359374f54415418e4d01f3ed67730f7bb28c3e5d538e2b86fcb885bbc7642f1bb7b48 WHIRLPOOL 4d28d4e0729ddeb1894ec05c7feef8cfb0f6740fcf3edab75d257978a41d989af27dab25f54dbc77fd4c0eb32cd4a19f3da4dc97a0eb7aa51278a48f82ff2b0b diff --git a/x11-misc/slock/slock-9999.ebuild b/x11-misc/slock/slock-9999.ebuild new file mode 100644 index 0000000..13b449c --- /dev/null +++ b/x11-misc/slock/slock-9999.ebuild @@ -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 +}