summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2011-07-12 13:06:07 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2011-07-12 13:06:07 +0000
commit21eb17ba1ab8cac247cef28a8a123de7cdb1272d (patch)
tree158596b405234ac14370aa3e7f3c7e31d834ac58 /x11-wm
parentx86 stable per bug 367039 (diff)
downloadhistorical-21eb17ba1ab8cac247cef28a8a123de7cdb1272d.tar.gz
historical-21eb17ba1ab8cac247cef28a8a123de7cdb1272d.tar.bz2
historical-21eb17ba1ab8cac247cef28a8a123de7cdb1272d.zip
Initial import. Ebuild based on extensive work done by Ondrej Sukup (mimi_vx) <mimi.vx@gmail.com> and Andre-Patrick Bubel (moredread) <code@andre-bubel.de> in sunrise overlay. Fixes bug 267476
Package-Manager: portage-2.2.0_alpha43/cvs/Linux x86_64
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/i3/ChangeLog12
-rw-r--r--x11-wm/i3/Manifest17
-rw-r--r--x11-wm/i3/files/i3-gentoo.diff175
-rw-r--r--x11-wm/i3/i3-3e_p3.ebuild52
-rw-r--r--x11-wm/i3/metadata.xml9
5 files changed, 265 insertions, 0 deletions
diff --git a/x11-wm/i3/ChangeLog b/x11-wm/i3/ChangeLog
new file mode 100644
index 000000000000..f12acfc014e9
--- /dev/null
+++ b/x11-wm/i3/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for x11-wm/i3
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/i3/ChangeLog,v 1.1 2011/07/12 13:06:07 xarthisius Exp $
+
+*i3-3e_p3 (12 Jul 2011)
+
+ 12 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> +files/i3-gentoo.diff,
+ +i3-3e_p3.ebuild, +metadata.xml:
+ Initial import. Ebuild based on extensive work done by Ondrej Sukup (mimi_vx)
+ <mimi.vx@gmail.com> and Andre-Patrick Bubel (moredread) <code@andre-bubel.de>
+ in sunrise overlay. Fixes bug 267476
+
diff --git a/x11-wm/i3/Manifest b/x11-wm/i3/Manifest
new file mode 100644
index 000000000000..bec9208c3533
--- /dev/null
+++ b/x11-wm/i3/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX i3-gentoo.diff 5219 RMD160 d592d6e12f1983be50a78d43a65c1380f5366413 SHA1 8899a886209d30c21ab5f81f82f9e6a5fe487371 SHA256 a21e3f877eab4c2068f0fa7447765aa642cdf8a7756e495ef947da5118787897
+DIST i3-3.e-bf3.tar.bz2 360704 RMD160 858d92020e251b3afd34bcb0008d7ccc25d04669 SHA1 7c35f49fa14a21b606bb102b41c5f0cead4e93a3 SHA256 e0a7b030ebbad0ebf2ac39f235dd5e0ad34ef0ff5b83e31501a361f92e85c68f
+EBUILD i3-3e_p3.ebuild 1138 RMD160 5a3653d7db601713166d8ef4a467a0febfce2a28 SHA1 fc7dbd72841a82767b88b2d743e0ffed46bb0e04 SHA256 816ae3c24cbe66e8cb7e8315fcd0e6a8370f24729bdf51c8f91571e37a3ccd5f
+MISC ChangeLog 532 RMD160 2a50cdd9a9a1a55f4ab5499f3429d6302dd107fc SHA1 6c827237f3ab8a1b1c611ee1f402b9f7489b48d2 SHA256 d2a850bff096e8c0621dcf8326ae5a9d95efbd39eb17cf92cdc1393a8517b42f
+MISC metadata.xml 262 RMD160 5fa004a3927201d509adf4583c80fcea57d845cb SHA1 7d07024bbe476df939b23a4552ec9a403ec8fff7 SHA256 9efce27cc1c3955b252cc5b7272629cd5b66260849fd9e5a5fae9e420a1829d9
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iJwEAQEIAAYFAk4cRsgACgkQIiMqcbOVdxQAUQP+OslLVG7esLu5bk58VBMbbFYI
+w4QmArfSEJvKfYJ8E2Aw2I4F5sii2hz3NxJNEWi4I5Gr8WHS9vL+RAcPVedIosjY
+5siibhtkFLevBrkogqOsWRRI5i0xsO59jhMX/gLha4DgCgXeX233qdPheWtEnNR0
+oL4t6DBH5dHkh6LTa2E=
+=FJXA
+-----END PGP SIGNATURE-----
diff --git a/x11-wm/i3/files/i3-gentoo.diff b/x11-wm/i3/files/i3-gentoo.diff
new file mode 100644
index 000000000000..003707e96190
--- /dev/null
+++ b/x11-wm/i3/files/i3-gentoo.diff
@@ -0,0 +1,175 @@
+--- common.mk
++++ common.mk
+@@ -1,5 +1,5 @@
+ UNAME=$(shell uname)
+-DEBUG=1
++DEBUG=0
+ INSTALL=install
+ PREFIX=/usr
+ ifeq ($(PREFIX),/usr)
+@@ -17,8 +17,7 @@
+ # We don’t want unused-parameter because of the use of many callbacks
+ CFLAGS += -Wunused-value
+ CFLAGS += -Iinclude
+-CFLAGS += -I/usr/local/include
+-CFLAGS += -DI3_VERSION=\"${GIT_VERSION}\"
++CPPFLAGS += -DI3_VERSION=\"${GIT_VERSION}\"
+
+ # Check if pkg-config is installed, because without pkg-config, the following
+ # check for the version of libxcb cannot be done.
+@@ -33,27 +32,17 @@
+ ifeq ($(shell pkg-config --exact-version=0.3.3 xcb-keysyms && echo 1),1)
+ # xcb-keysyms fixed API from 0.3.3 to 0.3.4, so for some months, we will
+ # have this here. Distributions should upgrade their libxcb in the meantime.
+-CFLAGS += -DOLD_XCB_KEYSYMS_API
++CPPFLAGS += -DOLD_XCB_KEYSYMS_API
+ endif
+
+-LDFLAGS += -lm
+-LDFLAGS += -lxcb-keysyms
+ ifeq ($(shell pkg-config --exists xcb-util || echo 1),1)
+-CFLAGS += -DXCB_COMPAT
+-LDFLAGS += -lxcb-atom
+-LDFLAGS += -lxcb-aux
+-LDFLAGS += -lxcb-event
++CPPFLAGS += -DXCB_COMPAT
++LIBS += -lxcb-atom -lxcb-aux -lxcb-event
+ else
+-LDFLAGS += -lxcb-util
++LIBS += $(shell pkg-config --libs xcb-util)
+ endif
+-LDFLAGS += -lxcb-icccm
+-LDFLAGS += -lxcb-xinerama
+-LDFLAGS += -lxcb-randr
+-LDFLAGS += -lxcb
+-LDFLAGS += -lyajl
+-LDFLAGS += -lX11
+-LDFLAGS += -lev
+-LDFLAGS += -L/usr/local/lib -L/usr/pkg/lib
++LIBS += $(shell pkg-config --libs xcb-keysyms xcb-icccm xcb-xinerama xcb-randr xcb x11)
++LIBS += -lyajl -lev -lm
+
+ ifeq ($(UNAME),NetBSD)
+ # We need -idirafter instead of -I to prefer the system’s iconv over GNU libiconv
+@@ -63,12 +52,12 @@
+
+ ifeq ($(UNAME),OpenBSD)
+ CFLAGS += -I${X11BASE}/include
+-LDFLAGS += -liconv
++LIBS += -liconv
+ LDFLAGS += -L${X11BASE}/lib
+ endif
+
+ ifeq ($(UNAME),FreeBSD)
+-LDFLAGS += -liconv
++LIBS += -liconv
+ endif
+
+ # Fallback for libyajl 1 which did not include yajl_version.h. We need
+@@ -76,20 +65,15 @@
+ CFLAGS += -idirafter yajl-fallback
+
+ ifneq (,$(filter Linux GNU GNU/%, $(UNAME)))
+-CFLAGS += -D_GNU_SOURCE
++CPPFLAGS += -D_GNU_SOURCE
+ endif
+
+ ifeq ($(DEBUG),1)
+ # Extended debugging flags, macros shall be available in gcc
+ CFLAGS += -gdwarf-2
+ CFLAGS += -g3
+-else
+-CFLAGS += -O2
+ endif
+
+-# Don’t print command lines which are run
+-.SILENT:
+-
+ # Always remake the following targets
+ .PHONY: install clean dist distclean
+
+--- Makefile
++++ Makefile
+@@ -20,20 +20,14 @@
+
+ # Depend on the specific file (.c for each .o) and on all headers
+ src/%.o: src/%.c ${HEADERS}
+- echo "CC $<"
+- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $<
++ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $<
+
+ all: src/cfgparse.y.o src/cfgparse.yy.o ${FILES}
+- echo "LINK i3"
+- $(CC) -o i3 ${FILES} src/cfgparse.y.o src/cfgparse.yy.o $(LDFLAGS)
+- echo ""
+- echo "SUBDIR i3-msg"
++ $(CC) $(LDFLAGS) -o i3 ${FILES} src/cfgparse.y.o src/cfgparse.yy.o $(LIBS)
+ $(MAKE) TOPDIR=$(TOPDIR) -C i3-msg
+- echo "SUBDIR i3-input"
+ $(MAKE) TOPDIR=$(TOPDIR) -C i3-input
+
+ loglevels.h:
+- echo "LOGLEVELS"
+ for file in $$(ls src/*.c src/*.y src/*.l | grep -v 'cfgparse.\(tab\|yy\).c'); \
+ do \
+ echo $$(basename $$file .c); \
+@@ -45,17 +39,14 @@
+ echo "};") > include/loglevels.h;
+
+ src/cfgparse.yy.o: src/cfgparse.l src/cfgparse.y.o ${HEADERS}
+- echo "LEX $<"
+ flex -i -o$(@:.o=.c) $<
+- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c)
++ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c)
+
+ src/cfgparse.y.o: src/cfgparse.y ${HEADERS}
+- echo "YACC $<"
+ bison --debug --verbose -b $(basename $< .y) -d $<
+- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c)
++ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c)
+
+ install: all
+- echo "INSTALL"
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/i3
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/include/i3
+--- i3-msg/Makefile
++++ i3-msg/Makefile
+@@ -11,15 +11,12 @@
+
+ # Depend on the specific file (.c for each .o) and on all headers
+ %.o: %.c ${HEADERS}
+- echo "CC $<"
+- $(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+
+ all: ${FILES}
+- echo "LINK i3-msg"
+- $(CC) -o i3-msg ${FILES} $(LDFLAGS)
++ $(CC) $(LDFLAGS) -o i3-msg ${FILES} $(LIBS)
+
+ install: all
+- echo "INSTALL"
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -m 0755 i3-msg $(DESTDIR)$(PREFIX)/bin/
+
+--- i3-input/Makefile
++++ i3-input/Makefile
+@@ -9,15 +9,12 @@
+
+ # Depend on the specific file (.c for each .o) and on all headers
+ %.o: %.c ${HEADERS}
+- echo "CC $<"
+- $(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+
+ all: ${FILES}
+- echo "LINK i3-input"
+- $(CC) -o i3-input ${FILES} $(LDFLAGS)
++ $(CC) $(LDFLAGS) -o i3-input ${FILES} $(LIBS)
+
+ install: all
+- echo "INSTALL"
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -m 0755 i3-input $(DESTDIR)$(PREFIX)/bin/
+
diff --git a/x11-wm/i3/i3-3e_p3.ebuild b/x11-wm/i3/i3-3e_p3.ebuild
new file mode 100644
index 000000000000..de032375f01c
--- /dev/null
+++ b/x11-wm/i3/i3-3e_p3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/i3/i3-3e_p3.ebuild,v 1.1 2011/07/12 13:06:07 xarthisius Exp $
+
+EAPI=4
+
+inherit base versionator toolchain-funcs
+
+MY_PV=$(version_format_string '$1.$2-${3/p/bf}')
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="An improved dynamic tiling window manager"
+HOMEPAGE="http://i3wm.org/"
+SRC_URI="http://i3wm.org/downloads/${MY_P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="dev-libs/libev
+ dev-libs/yajl
+ x11-libs/libxcb
+ x11-libs/libX11
+ x11-libs/xcb-util"
+DEPEND="${CDEPEND}
+ sys-devel/flex
+ sys-devel/bison
+ x11-proto/xcb-proto"
+RDEPEND="${CDEPEND}
+ x11-apps/xmessage"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( GOALS TODO RELEASE-NOTES-${MY_PV} )
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.diff )
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ base_src_install
+ doman man/*.1
+ dohtml -r docs/*
+}
+
+pkg_postinst() {
+ elog "${PN} by default uses x11-terms/rxvt-unicode as a default terminal."
+ elog "Either merge it yourself or change proper bind in /etc/${PN}/config"
+ elog "or ~/.i3/config"
+}
diff --git a/x11-wm/i3/metadata.xml b/x11-wm/i3/metadata.xml
new file mode 100644
index 000000000000..2cb4afce85c5
--- /dev/null
+++ b/x11-wm/i3/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-wm</herd>
+ <maintainer>
+ <email>xarthisius@gentoo.org</email>
+ <name>Kacper Kowalik</name>
+ </maintainer>
+</pkgmetadata>