diff options
author | Cédric Krier <cedk@gentoo.org> | 2007-01-07 14:21:14 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2007-01-07 14:21:14 +0000 |
commit | cd219b9d596d15c0f966cf16bd088c9ab90681fb (patch) | |
tree | 2c1de119afe8773999e25ab208afed8361f9e038 /x11-wm | |
parent | Add savedconfig flag for x11-wm/dwm (diff) | |
download | gentoo-2-cd219b9d596d15c0f966cf16bd088c9ab90681fb.tar.gz gentoo-2-cd219b9d596d15c0f966cf16bd088c9ab90681fb.tar.bz2 gentoo-2-cd219b9d596d15c0f966cf16bd088c9ab90681fb.zip |
New ebuild for bug #141530
(Portage version: 2.1.1-r2)
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dwm/ChangeLog | 10 | ||||
-rw-r--r-- | x11-wm/dwm/Manifest | 16 | ||||
-rw-r--r-- | x11-wm/dwm/dwm-2.8.ebuild | 88 | ||||
-rw-r--r-- | x11-wm/dwm/files/digest-dwm-2.8 | 3 | ||||
-rw-r--r-- | x11-wm/dwm/metadata.xml | 9 |
5 files changed, 126 insertions, 0 deletions
diff --git a/x11-wm/dwm/ChangeLog b/x11-wm/dwm/ChangeLog new file mode 100644 index 000000000000..bda954cf0628 --- /dev/null +++ b/x11-wm/dwm/ChangeLog @@ -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 index 000000000000..34365ad25de0 --- /dev/null +++ b/x11-wm/dwm/Manifest @@ -0,0 +1,16 @@ +DIST dwm-2.8.tar.gz 17669 RMD160 6f111b3ae52ea81142eb1a943725bad797ba4237 SHA1 2e0f53b72b2ab31b23c46546f236669e14906bb8 SHA256 b11c325132de4e95e81eaee23fe041c998fe16994912963d211bfc74e011aa19 +EBUILD dwm-2.8.ebuild 2373 RMD160 d2460487255bd9a90ad4bfb5f14378108cad1e4f SHA1 1351702fd3a28b6bb949dfd2c4774bbb15ed4172 SHA256 bbbea3bb1757ce0300c407997b40339d5f20fc3beef230ad93935218c5b63ba9 +MD5 16ecfacf98c99bd5b6d8c44367953b5c dwm-2.8.ebuild 2373 +RMD160 d2460487255bd9a90ad4bfb5f14378108cad1e4f dwm-2.8.ebuild 2373 +SHA256 bbbea3bb1757ce0300c407997b40339d5f20fc3beef230ad93935218c5b63ba9 dwm-2.8.ebuild 2373 +MISC ChangeLog 245 RMD160 b2237a88a70b7b0596b5288c6b7ce311f54b0768 SHA1 b0c5e6606a709e935f1826c3838f3bfe8ee3ee2c SHA256 c837bebc2ef6e17ac70722a406888eb6c5b9fef98baad855a79cfba23f7cbabd +MD5 cebada033394749a5a264eb81c67dcc0 ChangeLog 245 +RMD160 b2237a88a70b7b0596b5288c6b7ce311f54b0768 ChangeLog 245 +SHA256 c837bebc2ef6e17ac70722a406888eb6c5b9fef98baad855a79cfba23f7cbabd ChangeLog 245 +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 index 000000000000..dfae8906fb4b --- /dev/null +++ b/x11-wm/dwm/dwm-2.8.ebuild @@ -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 index 000000000000..96d0c874e9b2 --- /dev/null +++ b/x11-wm/dwm/files/digest-dwm-2.8 @@ -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 index 000000000000..d69cb0ab8cf1 --- /dev/null +++ b/x11-wm/dwm/metadata.xml @@ -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> |