--- /dev/null
+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
--- /dev/null
+# 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"
+}