Initial import. Ebuild written by me
authorKacper Kowalik <xarthisius@gentoo.org>
Fri, 22 Jul 2011 09:41:18 +0000 (09:41 +0000)
committerKacper Kowalik <xarthisius@gentoo.org>
Fri, 22 Jul 2011 09:41:18 +0000 (09:41 +0000)
Package-Manager: portage-2.2.0_alpha45/cvs/Linux x86_64

x11-misc/i3lock/ChangeLog [new file with mode: 0644]
x11-misc/i3lock/Manifest [new file with mode: 0644]
x11-misc/i3lock/files/i3lock-2.1-makefile.patch [new file with mode: 0644]
x11-misc/i3lock/i3lock-2.1.ebuild [new file with mode: 0644]
x11-misc/i3lock/metadata.xml [new file with mode: 0644]

diff --git a/x11-misc/i3lock/ChangeLog b/x11-misc/i3lock/ChangeLog
new file mode 100644 (file)
index 0000000..4cc6cd7
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for x11-misc/i3lock
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3lock/ChangeLog,v 1.1 2011/07/22 09:41:18 xarthisius Exp $
+
+*i3lock-2.1 (22 Jul 2011)
+
+  22 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> +i3lock-2.1.ebuild,
+  +files/i3lock-2.1-makefile.patch, +metadata.xml:
+  Initial import. Ebuild written by me
+
diff --git a/x11-misc/i3lock/Manifest b/x11-misc/i3lock/Manifest
new file mode 100644 (file)
index 0000000..7ed3482
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX i3lock-2.1-makefile.patch 1584 RMD160 fe0c54b141c6f9b14c2522628947bc43dc42c2dc SHA1 e3c5a30974d2646f349fe8955eaf35338e106b29 SHA256 dc618a9de7ee1e15ccd600c278f2308f148380cb4fbd6a133622d8644ccbee29
+DIST i3lock-2.1.tar.gz 26530 RMD160 5a4c4b080e665dc04350bea180339fea5ee58603 SHA1 e3dad64bc2d94057f2434bc95bb85907a946b6c4 SHA256 fbee053ad786a2d68e9aa6cabbc49f414d2f494939937c59be7030f408ae9731
+EBUILD i3lock-2.1.ebuild 780 RMD160 c65fc94b62b4c86563cb9ecb6d23ac42c352a8e2 SHA1 942fefd8bd46ae72ff1a2397295fd7a24c3019ba SHA256 3374d634cd386899be52601e3531e4498438bd80f5a5ac7477550e1c059db2bb
+MISC ChangeLog 399 RMD160 e152343f930e9f71fe590b52974a2a8500cd2f44 SHA1 675ccf26cbd89e69c62ca596d461f1e559db51c8 SHA256 edd18bbf59675b6b73f6795a6ed3b81d687028e2feae653bc3c2ee3232985092
+MISC metadata.xml 264 RMD160 c148e577f07c64c6af50b8f0355923ae3e8b1d00 SHA1 b393cddf5b6235f10ad48ef49f402719f63ac7f8 SHA256 1800c92eae730be86a7957896944698a8e7f33004cf72cac17423708a4921d22
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iJwEAQECAAYFAk4pRcoACgkQIiMqcbOVdxQItgP5Ae5+UTgStlOsNhIwJu71GXT6
++1KjFK9ezy11+v0ItQbepLYiNnC6GBsNEfxmak1+CUZXAM1nmKH09QouomgDhqhs
+Cup2IildD6ZZcmuNXqf7IQRZx133BitY0R2yP0XdWMcuQYvT3lVvKkcH8LqDp/Rc
+FR2ZU17b6+IPTy9rF8A=
+=0tE6
+-----END PGP SIGNATURE-----
diff --git a/x11-misc/i3lock/files/i3lock-2.1-makefile.patch b/x11-misc/i3lock/files/i3lock-2.1-makefile.patch
new file mode 100644 (file)
index 0000000..a560c2d
--- /dev/null
@@ -0,0 +1,52 @@
+--- a/Makefile
++++ b/Makefile
+@@ -10,30 +10,30 @@
+ CFLAGS += -std=c99
+ CFLAGS += -pipe
+ CFLAGS += -Wall
+-CFLAGS += -D_GNU_SOURCE
++CPPFLAGS += -D_GNU_SOURCE
+ ifndef NOLIBCAIRO
+ CFLAGS += $(shell pkg-config --cflags cairo xcb-keysyms xcb-dpms)
+-LDFLAGS += $(shell pkg-config --libs cairo xcb-keysyms xcb-dpms xcb-image)
++LIBS += $(shell pkg-config --libs cairo xcb-keysyms xcb-dpms xcb-image)
+ else
+ CFLAGS += -DNOLIBCAIRO
+ CFLAGS += $(shell pkg-config --cflags xcb-keysyms xcb-dpms)
+-LDFLAGS += $(shell pkg-config --libs xcb-keysyms xcb-dpms xcb-image)
++LIBS += $(shell pkg-config --libs xcb-keysyms xcb-dpms xcb-image)
+ endif
+-LDFLAGS += -lpam
++LIBS += -lpam
+ 
+ FILES:=$(wildcard *.c)
+ FILES:=$(FILES:.c=.o)
+ 
+ VERSION:=2.1
+ GIT_VERSION:="2.1 (2011-03-13)"
+-CFLAGS += -DVERSION=\"${GIT_VERSION}\"
++CPPFLAGS += -DVERSION=\"${GIT_VERSION}\"
+ 
+ .PHONY: install clean uninstall
+ 
+ all: i3lock
+ 
+ i3lock: ${FILES}
+-      $(CC) -o $@ $^ $(LDFLAGS)
++      $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ 
+ clean:
+       rm -f i3lock ${FILES} i3lock-${VERSION}.tar.gz
+@@ -41,8 +41,12 @@
+ install: all
+       $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+       $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
++      $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1
++      $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/doc/i3lock-${VERSION}
+       $(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
+       $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
++      $(INSTALL) -m 644 i3lock.1 $(DESTDIR)$(PREFIX)/share/man/man1
++      $(INSTALL) -m 644 README $(DESTDIR)$(PREFIX)/share/doc/i3lock-${VERSION}
+ 
+ uninstall:
+       rm -f $(DESTDIR)$(PREFIX)/bin/i3lock
diff --git a/x11-misc/i3lock/i3lock-2.1.ebuild b/x11-misc/i3lock/i3lock-2.1.ebuild
new file mode 100644 (file)
index 0000000..326f120
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3lock/i3lock-2.1.ebuild,v 1.1 2011/07/22 09:41:18 xarthisius Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Simple screen locker"
+HOMEPAGE="http://i3wm.org/i3lock/"
+SRC_URI="http://i3wm.org/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+cairo"
+
+RDEPEND="virtual/pam
+       x11-libs/xcb-util-keysyms
+       x11-libs/xcb-util-image
+       cairo? ( x11-libs/cairo[xcb] )"
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+pkg_setup() {
+       tc-export CC
+}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-makefile.patch
+       sed -i -e 's:login:system-auth:' ${PN}.pam || die
+}
+
+src_configure() {
+       use cairo || export NOLIBCAIRO=1
+}
diff --git a/x11-misc/i3lock/metadata.xml b/x11-misc/i3lock/metadata.xml
new file mode 100644 (file)
index 0000000..b5caab4
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>desktop-misc</herd>
+       <maintainer>
+               <email>xarthisius@gentoo.org</email>
+               <name>Kacper Kowalik</name>
+       </maintainer>
+</pkgmetadata>