New ebuild for bug #141530
authorCédric Krier <cedk@gentoo.org>
Sun, 7 Jan 2007 14:21:14 +0000 (14:21 +0000)
committerCédric Krier <cedk@gentoo.org>
Sun, 7 Jan 2007 14:21:14 +0000 (14:21 +0000)
Package-Manager: portage-2.1.1-r2

x11-wm/dwm/ChangeLog [new file with mode: 0644]
x11-wm/dwm/Manifest [new file with mode: 0644]
x11-wm/dwm/dwm-2.8.ebuild [new file with mode: 0644]
x11-wm/dwm/files/digest-dwm-2.8 [new file with mode: 0644]
x11-wm/dwm/metadata.xml [new file with mode: 0644]

diff --git a/x11-wm/dwm/ChangeLog b/x11-wm/dwm/ChangeLog
new file mode 100644 (file)
index 0000000..bda954c
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for x11-wm/dwm
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/ChangeLog,v 1.1 2007/01/07 14:21:14 cedk Exp $
+
+*dwm-2.8 (07 Jan 2007)
+
+  07 Jan 2007; Cedric Krier <cedk@gentoo.org> +metadata.xml,
+  +dwm-2.8.ebuild:
+  New ebuild for bug #141530
+
diff --git a/x11-wm/dwm/Manifest b/x11-wm/dwm/Manifest
new file mode 100644 (file)
index 0000000..becbb80
--- /dev/null
@@ -0,0 +1,16 @@
+DIST dwm-2.8.tar.gz 17669 RMD160 6f111b3ae52ea81142eb1a943725bad797ba4237 SHA1 2e0f53b72b2ab31b23c46546f236669e14906bb8 SHA256 b11c325132de4e95e81eaee23fe041c998fe16994912963d211bfc74e011aa19
+EBUILD dwm-2.8.ebuild 2458 RMD160 dc56fb18a9b8b38fe8fe04177bdd0915cc273847 SHA1 200fbcee9f7631353b203b9829c615b66a119db1 SHA256 37dacc4782ebbdb0d8dfe3582d8ad429f89e0ba26d4355a3de4dae538cae337a
+MD5 0025a13079c628337beb63673c49fec9 dwm-2.8.ebuild 2458
+RMD160 dc56fb18a9b8b38fe8fe04177bdd0915cc273847 dwm-2.8.ebuild 2458
+SHA256 37dacc4782ebbdb0d8dfe3582d8ad429f89e0ba26d4355a3de4dae538cae337a dwm-2.8.ebuild 2458
+MISC ChangeLog 325 RMD160 f926d6a31008999ee0b13ff2947647b669d5d9dd SHA1 9466456d2df2fbb83d0b0c78f8e897fd6aae7cd0 SHA256 230d63bf1069ea083edb1ecbbfcdf367a97f14dec90d50222154ff826d6e8c90
+MD5 5378633928218994f32b1ba20c83a333 ChangeLog 325
+RMD160 f926d6a31008999ee0b13ff2947647b669d5d9dd ChangeLog 325
+SHA256 230d63bf1069ea083edb1ecbbfcdf367a97f14dec90d50222154ff826d6e8c90 ChangeLog 325
+MISC metadata.xml 461 RMD160 65756f7110f56fca05c3ede6d6f7123612ef1f37 SHA1 734881954c3c1fbef561df9eead496a99380e3d1 SHA256 35951214ca9ebfcb9bbc2822914bcef50153fac707e629ccadb6bee455b6a9bc
+MD5 b352d398a2b30d946f2ad2f2ae6c308c metadata.xml 461
+RMD160 65756f7110f56fca05c3ede6d6f7123612ef1f37 metadata.xml 461
+SHA256 35951214ca9ebfcb9bbc2822914bcef50153fac707e629ccadb6bee455b6a9bc metadata.xml 461
+MD5 f0f64dad2889d674a02afc97f795ea4a files/digest-dwm-2.8 220
+RMD160 de9b3deb8f26ceb9dd9a6f5c20628207c5f7dce2 files/digest-dwm-2.8 220
+SHA256 406b04e2da1a0d273b67ce24ed2d2891b898546befb42ca32fb95390acac1683 files/digest-dwm-2.8 220
diff --git a/x11-wm/dwm/dwm-2.8.ebuild b/x11-wm/dwm/dwm-2.8.ebuild
new file mode 100644 (file)
index 0000000..dfae890
--- /dev/null
@@ -0,0 +1,88 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/dwm/dwm-2.8.ebuild,v 1.1 2007/01/07 14:21:14 cedk Exp $
+
+inherit toolchain-funcs
+
+DESCRIPTION="a dynamic window manager for X11"
+HOMEPAGE="http://suckless.org/view/dynamic+window+manager"
+SRC_URI="http://suckless.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="savedconfig"
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       sed -i \
+               -e "s/.*strip.*//" \
+               Makefile || die "sed failed"
+
+       sed -i \
+               -e "s/CFLAGS = -Os/CFLAGS +=/" \
+               -e "s/LDFLAGS =/LDFLAGS +=/" \
+               config.mk || die "sed failed"
+
+       if use savedconfig; then
+               local conf root
+               [[ -r config.h ]] && rm config.h
+               for conf in ${PF} ${P} ${PN}; do
+                       for root in "${PORTAGE_CONFIGROOT}" "${ROOT}" /; do
+                               configfile=${root}etc/portage/savedconfig/${conf}.config.h
+                               if [[ -r ${configfile} ]]; then
+                                       elog "Found your ${configfile} and using it."
+                                       cp ${configfile} "${S}"/config.h
+                                       return 0
+                               fi
+                       done
+               done
+               ewarn "Could not locate user configfile, so we will save a default one."
+       fi
+}
+
+src_compile() {
+       local msg
+       use savedconfig && msg=", please check the configfile"
+       emake CC=$(tc-getCC) || die "emake failed${msg}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
+
+       insinto /usr/share/${PN}
+       newins config.h ${PF}.config.h
+
+       exeinto /etc/X11/Sessions
+       newexe "${FILESDIR}"/dwm-session dwm
+
+       dodoc README
+}
+
+pkg_preinst() {
+       mv "${D}"/usr/share/${PN}/${PF}.config.h "${T}"/
+}
+
+pkg_postinst() {
+       if use savedconfig; then
+               local config_dir="${PORTAGE_CONFIGROOT:-${ROOT}}/etc/portage/savedconfig"
+               elog "Saving this build config to ${config_dir}/${PF}.config.h"
+               einfo "Read this ebuild for more info on how to take advantage of this option."
+               mkdir -p "${config_dir}"
+               cp "${T}"/${PF}.config.h "${config_dir}"/${PF}.config.h
+       fi
+       einfo "This ebuild has support for user defined configs"
+       einfo "Please read this ebuild for more details and re-emerge as needed"
+       einfo "if you want to add or remove functionality for ${PN}"
+       if ! has_version x11-misc/dmenu; then
+               elog "Installing ${PN} without x11-misc/dmenu"
+               einfo "To have a menu you can install x11-misc/dmenu"
+       fi
+       einfo "You can custom status bar with a script in HOME/.dwm/dwmrc"
+       einfo "the ouput is redirected to the standard input of dwm"
+}
diff --git a/x11-wm/dwm/files/digest-dwm-2.8 b/x11-wm/dwm/files/digest-dwm-2.8
new file mode 100644 (file)
index 0000000..96d0c87
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 d3ff57595bb4d07c9efc91724301cdab dwm-2.8.tar.gz 17669
+RMD160 6f111b3ae52ea81142eb1a943725bad797ba4237 dwm-2.8.tar.gz 17669
+SHA256 b11c325132de4e95e81eaee23fe041c998fe16994912963d211bfc74e011aa19 dwm-2.8.tar.gz 17669
diff --git a/x11-wm/dwm/metadata.xml b/x11-wm/dwm/metadata.xml
new file mode 100644 (file)
index 0000000..d69cb0a
--- /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>no-herd</herd>
+<maintainer>
+  <email>cedk@gentoo.org</email>
+</maintainer>
+<longdescription>dwm is a dynamic window manager for X. It manages windows in tiling and floating modes. Either mode can be applied dynamically, optimizing the environment for the application in use and the task performed.</longdescription>
+</pkgmetadata>