summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2011-05-31 03:29:42 +0000
committerMichael Weber <xmw@gentoo.org>2011-05-31 03:29:42 +0000
commit3c2de5e35385a47228e05a273610059da6c0cff9 (patch)
treed0a178b0b9d446b2dba0f188e08664093b6e43d3 /x11-misc/wmname
parentVersion bump (diff)
downloadgentoo-2-3c2de5e35385a47228e05a273610059da6c0cff9.tar.gz
gentoo-2-3c2de5e35385a47228e05a273610059da6c0cff9.tar.bz2
gentoo-2-3c2de5e35385a47228e05a273610059da6c0cff9.zip
Initial import
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/wmname')
-rw-r--r--x11-misc/wmname/ChangeLog11
-rw-r--r--x11-misc/wmname/files/wmname-0.1-buildsystem.patch26
-rw-r--r--x11-misc/wmname/metadata.xml10
-rw-r--r--x11-misc/wmname/wmname-0.1.ebuild34
4 files changed, 81 insertions, 0 deletions
diff --git a/x11-misc/wmname/ChangeLog b/x11-misc/wmname/ChangeLog
new file mode 100644
index 000000000000..1748bb786ef0
--- /dev/null
+++ b/x11-misc/wmname/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for x11-misc/wmname
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/wmname/ChangeLog,v 1.1 2011/05/31 03:29:42 xmw Exp $
+
+*wmname-0.1 (31 May 2011)
+
+ 31 May 2011; Michael Weber <xmw@gentoo.org> +wmname-0.1.ebuild,
+ +files/wmname-0.1-buildsystem.patch, +metadata.xml:
+ Initial import, thanks to Kaleb Elwert (belak) for the initial ebuild (bug
+ 350306)
+
diff --git a/x11-misc/wmname/files/wmname-0.1-buildsystem.patch b/x11-misc/wmname/files/wmname-0.1-buildsystem.patch
new file mode 100644
index 000000000000..bee2131d9bef
--- /dev/null
+++ b/x11-misc/wmname/files/wmname-0.1-buildsystem.patch
@@ -0,0 +1,26 @@
+--- wmname-0.1/config.mk
++++ wmname-0.1/config.mk
+@@ -16,9 +16,9 @@
+
+ # flags
+ CPPFLAGS = -DVERSION=\"${VERSION}\"
+-CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
+-LDFLAGS = -s ${LIBS}
++CFLAGS += -std=c99 -pedantic ${INCS} ${CPPFLAGS}
++LDFLAGS += ${LIBS}
+
+ # compiler and linker
+-CC = cc
+-LD = ${CC}
++CC ?= cc
++LD ?= ${CC}
+--- wmname-0.1/Makefile
++++ wmname-0.1/Makefile
+@@ -23,7 +23,6 @@
+ wmname: ${OBJ}
+ @echo LD $@
+ @${LD} -o $@ ${OBJ} ${LDFLAGS}
+- @strip $@
+
+ clean:
+ @echo cleaning
diff --git a/x11-misc/wmname/metadata.xml b/x11-misc/wmname/metadata.xml
new file mode 100644
index 000000000000..02b909e46b7e
--- /dev/null
+++ b/x11-misc/wmname/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>no-herd</herd>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/x11-misc/wmname/wmname-0.1.ebuild b/x11-misc/wmname/wmname-0.1.ebuild
new file mode 100644
index 000000000000..373c4346e4ab
--- /dev/null
+++ b/x11-misc/wmname/wmname-0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/wmname/wmname-0.1.ebuild,v 1.1 2011/05/31 03:29:42 xmw Exp $
+
+EAPI=3
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="utility to set the name of your window manager"
+HOMEPAGE="http://tools.suckless.org/wmname"
+SRC_URI="http://dl.suckless.org/tools/wmname-0.1.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buildsystem.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LD="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake CC="$(tc-getCC)" LD="$(tc-getCC)" \
+ PREFIX="${EPREFIX}"/usr DESTDIR="${D}" install || die
+ dodoc README || die
+}
+