x11-wm/bspwm: version bump
authorTim Harder <radhermit@gentoo.org>
Thu, 27 Aug 2015 03:42:49 +0000 (23:42 -0400)
committerTim Harder <radhermit@gentoo.org>
Thu, 27 Aug 2015 03:43:30 +0000 (23:43 -0400)
x11-wm/bspwm/Manifest
x11-wm/bspwm/bspwm-0.9.ebuild [new file with mode: 0644]
x11-wm/bspwm/files/bspwm-0.9-desktop.patch [new file with mode: 0644]

index b9e3b319acadfa517acf51288510f147610a8645..8f233cc979e470d3b5b0a0af109e4e84f5167f88 100644 (file)
@@ -1,2 +1,3 @@
 DIST bspwm-0.8.8.tar.gz 66159 SHA256 378c5e42e9058a22e519a8f727e7d078eb5945915adb6edb17e2471310e73790 SHA512 09614549410d2f6bd58d1190e8008256077433481bb4f91426fbf14ef74c3bff92f3b2d2c72476b6439ad83807c7368591af46a0c34ec658bcc5b9c6f940ca55 WHIRLPOOL 331d089c7545a5fe6325e42aa9603f9dcb81d28fd9182329dbc50a0828fafa661ce12885894d728ad99f0d04ca5a2773de257b91f62e1be3f272e0ee8a7b5674
 DIST bspwm-0.8.9.tar.gz 65604 SHA256 750c76132914661d8d5edf7809e9b601977215d31e747dd780c60fd562913d55 SHA512 77dd3d10278519bdcba02ab3309617d078428953d2944a1a5013b7ac87ae9b9c3e405760edfc78a6d740c383c8bf083598885448219f3a60e6f912389343b4f7 WHIRLPOOL dc3153b082616b44d71348b604e5f923a603b4ea75e9665c6a7ad384bafdd33da2f83da3275af671dbac614aefd953e990355cb0713504037ef57003cc46261b
+DIST bspwm-0.9.tar.gz 62790 SHA256 495dcdefb4cae52052749f0e6cd628bd16bb14cf61c359d46c62673f1264b97c SHA512 1e099191c95ba7ec4f02c8fd29f212aeffa63aa5be4a0992ded2ce0528f887b879940e7be8b9aafa00c71837dc4c1afbd3848d3768f2f6fd28c08dd73c92d5bb WHIRLPOOL fdb0d7d3f76243bd42aeba1d487ce29eedefd06e1d0054e199de36367f902fb1c8b087bfdfd57ad3cacff5f3350b1eb5db80749d1cb05dd3243fef76ea2a0f88
diff --git a/x11-wm/bspwm/bspwm-0.9.ebuild b/x11-wm/bspwm/bspwm-0.9.ebuild
new file mode 100644 (file)
index 0000000..ff27c85
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Tiling window manager based on binary space partitioning"
+HOMEPAGE="https://github.com/baskerville/bspwm/"
+SRC_URI="https://github.com/baskerville/bspwm/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+DEPEND="
+       x11-libs/libxcb
+       x11-libs/xcb-util-wm
+"
+RDEPEND="${DEPEND}
+       x11-misc/sxhkd
+"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-0.8.8-flags.patch
+       epatch "${FILESDIR}"/${P}-desktop.patch
+}
+
+src_compile() {
+       emake PREFIX=/usr CC="$(tc-getCC)"
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX=/usr install
+       dodoc doc/{CONTRIBUTING,MISC,TODO}.md
+
+       exeinto /etc/X11/Sessions
+       newexe "${FILESDIR}"/${PN}-session ${PN}
+
+       insinto /usr/share/xsessions
+       doins contrib/freedesktop/bspwm.desktop
+
+       insinto /etc/xdg/sxhkd
+       doins examples/sxhkdrc
+
+       if use examples ; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}
diff --git a/x11-wm/bspwm/files/bspwm-0.9-desktop.patch b/x11-wm/bspwm/files/bspwm-0.9-desktop.patch
new file mode 100644 (file)
index 0000000..a8f3524
--- /dev/null
@@ -0,0 +1,9 @@
+--- bspwm-0.9/contrib/freedesktop/bspwm.desktop
++++ bspwm-0.9/contrib/freedesktop/bspwm.desktop
+@@ -2,5 +2,5 @@
+ Encoding=UTF-8
+ Name=bspwm
+ Comment=Launch a bspwm session
+-Exec=/usr/bin/bspwm-session
++Exec=/etc/X11/Sessions/bspwm
+ Type=XSession