summaryrefslogtreecommitdiff
path: root/x11-wm/treewm
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/treewm')
-rw-r--r--x11-wm/treewm/Manifest7
-rw-r--r--x11-wm/treewm/files/treewm-0.4.5-gcc43.patch20
-rw-r--r--x11-wm/treewm/metadata.xml12
-rw-r--r--x11-wm/treewm/treewm-0.4.5-r1.ebuild60
-rw-r--r--x11-wm/treewm/treewm-0.4.5.ebuild41
5 files changed, 140 insertions, 0 deletions
diff --git a/x11-wm/treewm/Manifest b/x11-wm/treewm/Manifest
new file mode 100644
index 000000000000..fef5c6782365
--- /dev/null
+++ b/x11-wm/treewm/Manifest
@@ -0,0 +1,7 @@
+AUX treewm-0.4.5-gcc43.patch 614 SHA256 6d1a2904ba1b00a8e594dd38ca85bd32e5164c4c0652f1858f215b7ffbd88016 SHA512 2e2e965c8592083e411da78eb3abdf2112e0b37b5759dd98ea62ad8c19859a59b72de1d0b9630962d8651921f220ad8e670e9e963a062dd3435a9e7d9e517e94 WHIRLPOOL d26d7dcf31878c824d11cf628ef19a4a9e6ee6e9e93b3c69cd16d99724588f0b27fb705d2b88391b50a1f5ef7907e50931e122d63c1cc050374b4cfd73169721
+DIST treewm-0.4.5.tar.bz2 87098 SHA256 3daea1c8d5dfe44bfe4e038e112f7ae5044c7978b196acd0258ac6f51e2f8c13 SHA512 96eb8eec11cec992daa4492b5a9243db5cc80b23d3827169d223d81b9ff289b62dbe6c8c3ea9da5da2e32435d98cc4552038c26e975cddec795de3b88f9db9cf WHIRLPOOL 1dbda040392cf785144eb1f1402978e1af4367585cab45c732b804b94652e10bb166c7367f9e2743724b996643bf75a1889891e5037fbbcbe95059fc72213c71
+EBUILD treewm-0.4.5-r1.ebuild 1606 SHA256 46c42e269504c45ed7def54e610562339d7968f6f97d72a4486d865c4dc5c0ab SHA512 dc707da5d6ae6c51cde3fc33d32b98ba972e1fccaabad578e3dd5e2eac692944f86d2c2bc567e9c1540340b4da0a2cf028c983c9e3a802e4eb5b1126c086475b WHIRLPOOL fab36aec995751e412b7cd97dd31a36348a84d4eb36607b793ed3d11fcac4109b60a6c42b55ee98f95f82bc074031adf03eee00d508ac75797f4c3970ab3ce9c
+EBUILD treewm-0.4.5.ebuild 924 SHA256 1fd0cf0b5b67b0857853f5f707f4ab3da1db26ff6d2a37e75b65f6867fd89bea SHA512 27fed366018ba960e694db39d1dd8ae84ebc201c3248a693238e849b7a39aceee2f4a0c1f66fd8b74e2bf40355bcfd7f1a1dfaeb738aa3499a927cba1511250f WHIRLPOOL 960bc92bc5f9a34204c03e599bf91b971acdb22f4f305046ae5773fb865a33a97b6e802d2b3c2140c534919af0f66385bd68836fe0eaddb2ea5c32f4465d873d
+MISC ChangeLog 2262 SHA256 add7786cec2eda80f2c37cca9ca74d5982da7b403a11d2bbd18142e185282d68 SHA512 02c59d00bf7c3b0b2ebe108d4f27b484e779f6718dfeae1ae277f998ac44c00e367bdeaadd9134311921d689294abbccff132f273d5a46d437e8e23518c56561 WHIRLPOOL 4e076136ac2b7c746fd7e702a273f12397bf5642459f9385d0e70d7701c723c6e2f83097fb3a31e5f165f4fd181900c1c8079ecd3eac881fa41870b9d09aae3f
+MISC ChangeLog-2015 3007 SHA256 f944cb53a637ca01071fda24b0e8d3d655cc88745041a17103a1209f20ad2879 SHA512 529fe8dae6debab0810a02afc1a489b098123fbc256ee5d3ab7c4953dfd35a60bc2a393ef16165d0ece6c2a354a9bc90a2ba00994cdbd0f9a29cf4e2f5b87e61 WHIRLPOOL c09bd52081752c86be81d10b9ab857e62d81d563d944c02c4282ed3027ca943aff5e4842b81e366d9d47808024ec0fb5e4c35e09444e6f6a690fec0a6998c916
+MISC metadata.xml 436 SHA256 ed6d98b28e15522cc422ac1a6d681bd31c0137064d366eecd3898c4dd1869a58 SHA512 cde7c7c0dadb71cb58c15a2fa7efb031fda246d1464bebb476c4a02c64baf1f90a03198b82e1188ac83b36eb4778e21595335bce5af14beb1cf20de4b978b7e8 WHIRLPOOL a856311661133868b760725db1090267afa07b281d6e0707d1fd0b31954976ca8e3b7fdf4e041acdded3181df5d4732cad97b5bf387d5759f6ed089ef71650f0
diff --git a/x11-wm/treewm/files/treewm-0.4.5-gcc43.patch b/x11-wm/treewm/files/treewm-0.4.5-gcc43.patch
new file mode 100644
index 000000000000..a8faf4319871
--- /dev/null
+++ b/x11-wm/treewm/files/treewm-0.4.5-gcc43.patch
@@ -0,0 +1,20 @@
+--- treewm-0.4.5b/src/action.cc 2009-01-17 18:17:32.000000000 -0400
++++ treewm-0.4.5/src/action.cc 2009-01-17 18:20:41.000000000 -0400
+@@ -9,6 +9,7 @@
+ #include "clienttree.h"
+ #include "clientinfo.h"
+ #include <unistd.h>
++#include <string.h>
+
+ Action::Action(Section *section) {
+ s = section;
+--- treewm-0.4.5b/src/resmanager.h 2009-01-17 18:17:32.000000000 -0400
++++ treewm-0.4.5/src/resmanager.h 2009-01-17 18:21:10.000000000 -0400
+@@ -12,6 +12,7 @@
+ #include "global.h"
+ #include "client.h"
+ #include <map>
++#include <string.h>
+
+ struct ltstr {
+ bool operator() (const char* s1, const char* s2) const {
diff --git a/x11-wm/treewm/metadata.xml b/x11-wm/treewm/metadata.xml
new file mode 100644
index 000000000000..37df03dd573f
--- /dev/null
+++ b/x11-wm/treewm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lordvan@gentoo.org</email>
+ <name>Thomas Raschbacher</name>
+ </maintainer>
+ <longdescription>WindowManager that arranges the windows in a tree not a list</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">treewm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/x11-wm/treewm/treewm-0.4.5-r1.ebuild b/x11-wm/treewm/treewm-0.4.5-r1.ebuild
new file mode 100644
index 000000000000..118cd3b8d39c
--- /dev/null
+++ b/x11-wm/treewm/treewm-0.4.5-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="WindowManager that arranges the windows in a tree (not in a list)"
+SRC_URI="mirror://sourceforge/treewm/${P}.tar.bz2"
+HOMEPAGE="http://treewm.sourceforge.net/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xf86vidmodeproto"
+
+src_prepare() {
+ # bug 251845
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ # bug 86453
+ sed -i xprop/dsimple.c \
+ -e 's:malloc:Malloc:g' \
+ || die "sed xprop/dsimple.c"
+}
+
+src_compile() {
+ # only compile treewm, not (x11-apps/){xprop,xkill}
+ emake treewm \
+ CXX=$(tc-getCXX) \
+ CCOPTIONS="${CFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ PREFIX="/usr" ROOT="${D}" \
+ || die "emake"
+}
+
+src_install() {
+ # only install treewm, not (x11-apps/){xprop,xkill}
+ dobin src/treewm
+ dodoc AUTHORS ChangeLog PROBLEMS README README.tiling TODO default.cfg \
+ sample.cfg
+ insinto /usr/share/pixmaps/treewm
+ doins src/pixmaps/*.xpm
+}
+
+pkg_postinst() {
+ elog "x11-wm/treewm used to install its own versions of x11-apps/xprop and"
+ elog "x11-apps/xkill as treewm-xprop and treewm-xkill respectively, since"
+ elog "they are assumed to be broken in combination with treewm. Since"
+ elog "X(org) has become modular since treewm's last release and are not"
+ elog "installed by default, we can leave those out and simply point out"
+ elog "that it is NOT adviseable to use these programs when using treewm."
+}
diff --git a/x11-wm/treewm/treewm-0.4.5.ebuild b/x11-wm/treewm/treewm-0.4.5.ebuild
new file mode 100644
index 000000000000..1a4feee1d072
--- /dev/null
+++ b/x11-wm/treewm/treewm-0.4.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="WindowManager that arranges the windows in a tree (not in a list)"
+SRC_URI="mirror://sourceforge/treewm/${P}.tar.bz2"
+HOMEPAGE="http://treewm.sourceforge.net/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 sparc ppc"
+IUSE=""
+
+RDEPEND="x11-libs/libXau
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ x11-libs/libXdmcp
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xf86vidmodeproto"
+
+src_unpack() {
+ unpack ${A}
+ # bug 251845
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ # bug 86453
+ sed -i -e "s:malloc:Malloc:g" "${S}"/xprop/dsimple.c
+}
+
+src_compile() {
+ emake PREFIX="/usr" ROOT="${D}" || die
+}
+
+src_install() {
+ make PREFIX="/usr" ROOT="${D}" install || die
+
+ # hack for Gentoo's doc policy:
+ cd "${D}/usr/share/doc/treewm" && dodoc * && cd .. && rm -rf treewm || die
+}