summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-10-29 04:32:45 +0000
committerJeroen Roovers <jer@gentoo.org>2012-10-29 04:32:45 +0000
commit075592394da323c33fb973276e02ac7c32a71ace (patch)
treedcb06ca017615b41130a9e199f6dcb9207ad89c0 /x11-misc
parentVersion bump. Add IUSE=nftrack by Vadim Kuznetsov (bug #406637). (diff)
downloadgentoo-2-075592394da323c33fb973276e02ac7c32a71ace.tar.gz
gentoo-2-075592394da323c33fb973276e02ac7c32a71ace.tar.bz2
gentoo-2-075592394da323c33fb973276e02ac7c32a71ace.zip
Version bump. Verbose build output.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/slock/ChangeLog7
-rw-r--r--x11-misc/slock/slock-1.1.ebuild41
2 files changed, 47 insertions, 1 deletions
diff --git a/x11-misc/slock/ChangeLog b/x11-misc/slock/ChangeLog
index 4de3eab5da0b..fdc2196d0693 100644
--- a/x11-misc/slock/ChangeLog
+++ b/x11-misc/slock/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-misc/slock
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/slock/ChangeLog,v 1.36 2012/10/09 11:41:22 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/slock/ChangeLog,v 1.37 2012/10/29 04:32:45 jer Exp $
+
+*slock-1.1 (29 Oct 2012)
+
+ 29 Oct 2012; Jeroen Roovers <jer@gentoo.org> +slock-1.1.ebuild:
+ Version bump. Verbose build output.
09 Oct 2012; <naota@gentoo.org> slock-1.0.ebuild:
Drop -HHAVE_SHADOW_H on FreeBSD and keyword. #233717
diff --git a/x11-misc/slock/slock-1.1.ebuild b/x11-misc/slock/slock-1.1.ebuild
new file mode 100644
index 000000000000..71b9c2186a1c
--- /dev/null
+++ b/x11-misc/slock/slock-1.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/slock/slock-1.1.ebuild,v 1.1 2012/10/29 04:32:45 jer Exp $
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="simple X screen locker"
+HOMEPAGE="http://tools.suckless.org/slock"
+SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+src_prepare() {
+ 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|@${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() {
+ emake DESTDIR="${D}" PREFIX="/usr" install
+}