summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/scrotwm/ChangeLog11
-rw-r--r--x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch34
-rw-r--r--x11-wm/scrotwm/metadata.xml10
-rw-r--r--x11-wm/scrotwm/scrotwm-0.9.28.ebuild32
4 files changed, 87 insertions, 0 deletions
diff --git a/x11-wm/scrotwm/ChangeLog b/x11-wm/scrotwm/ChangeLog
new file mode 100644
index 000000000000..44c86b68cded
--- /dev/null
+++ b/x11-wm/scrotwm/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for x11-wm/scrotwm
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/scrotwm/ChangeLog,v 1.1 2011/06/11 17:02:51 xmw Exp $
+
+*scrotwm-0.9.28 (11 Jun 2011)
+
+ 11 Jun 2011; Michael Weber <xmw@gentoo.org> +scrotwm-0.9.28.ebuild,
+ +files/scrotwm-0.9.28-makefile.patch, +metadata.xml:
+ Initial import, thanks to Massimo Gengarelli, Nikolay Ostanen and Toffanin
+ for the initial ebuilds (bug 284350)
+
diff --git a/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch b/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch
new file mode 100644
index 000000000000..57c7fdee6050
--- /dev/null
+++ b/x11-wm/scrotwm/files/scrotwm-0.9.28-makefile.patch
@@ -0,0 +1,34 @@
+--- scrotwm-0.9.28/linux/Makefile
++++ scrotwm-0.9.28/linux/Makefile
+@@ -1,7 +1,7 @@
+ # $scrotwm: Makefile,v 1.5 2010/09/16 02:00:51 marco Exp $
+
+-CFLAGS+= -Wall -ggdb -D_GNU_SOURCE -I.
+-CFLAGS+= -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
++CFLAGS+= -D_GNU_SOURCE -I.
++CFLAGS+= -DSWM_LIB=\"libswmhack.so.$(LVERS)\"
+ LDADD+= -lX11 -lXrandr
+
+ PREFIX?= /usr/local
+@@ -9,7 +9,7 @@
+ LIBDIR?= $(PREFIX)/lib
+ MANDIR?= $(PREFIX)/share/man
+
+-CC= gcc
++CC?= gcc
+
+ LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
+
+@@ -25,10 +25,10 @@
+ $(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
+
+ %.so: %.c
+- $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
++ $(CC) $(LDFLAGS) $(CFLAGS) -c -fpic $+ -o $@
+
+ libswmhack.so.$(LVERS): swm_hack.so
+- $(CC) -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
++ $(CC) $(LDFLAGS) -Wl,-soname,$@ -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)
+
+ install: all
+ install -m 755 -d $(DESTDIR)$(BINDIR)
diff --git a/x11-wm/scrotwm/metadata.xml b/x11-wm/scrotwm/metadata.xml
new file mode 100644
index 000000000000..c8204b7542f7
--- /dev/null
+++ b/x11-wm/scrotwm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>desktop-wm</herd>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/x11-wm/scrotwm/scrotwm-0.9.28.ebuild b/x11-wm/scrotwm/scrotwm-0.9.28.ebuild
new file mode 100644
index 000000000000..c47bf8984359
--- /dev/null
+++ b/x11-wm/scrotwm/scrotwm-0.9.28.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/scrotwm/scrotwm-0.9.28.ebuild,v 1.1 2011/06/11 17:02:51 xmw Exp $
+
+EAPI=3
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Small dynamic tiling window manager for X11"
+HOMEPAGE="http://www.scrotwm.org"
+SRC_URI="http://opensource.conformal.com/snapshots/${PN}/${P}.tgz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-misc/dmenu"
+DEPEND="${DEPEND}
+ x11-libs/libX11
+ x11-libs/libXrandr"
+
+S=${WORKDIR}/${P}/linux
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ emake PREFIX="${D}"usr LIBDIR="${D}usr/$(get_libdir)" install || die
+}