summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-06-30 13:31:15 +0000
committerJeroen Roovers <jer@gentoo.org>2014-06-30 13:31:15 +0000
commit650ce459330c65b1411fc57d809bc171c6fff5d4 (patch)
tree139462913a5587f735272b851877fb4957d049d8 /x11-misc/dmenu
parentEAPI bump. (diff)
downloadgentoo-2-650ce459330c65b1411fc57d809bc171c6fff5d4.tar.gz
gentoo-2-650ce459330c65b1411fc57d809bc171c6fff5d4.tar.bz2
gentoo-2-650ce459330c65b1411fc57d809bc171c6fff5d4.zip
Add live ebuild (bug #515856 by Ari Malinen).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'x11-misc/dmenu')
-rw-r--r--x11-misc/dmenu/ChangeLog7
-rw-r--r--x11-misc/dmenu/dmenu-9999.ebuild61
2 files changed, 67 insertions, 1 deletions
diff --git a/x11-misc/dmenu/ChangeLog b/x11-misc/dmenu/ChangeLog
index 47c8a05ec3ff..c4fb31e98514 100644
--- a/x11-misc/dmenu/ChangeLog
+++ b/x11-misc/dmenu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-misc/dmenu
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.111 2014/01/22 14:46:23 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.112 2014/06/30 13:31:15 jer Exp $
+
+*dmenu-9999 (30 Jun 2014)
+
+ 30 Jun 2014; Jeroen Roovers <jer@gentoo.org> +dmenu-9999.ebuild:
+ Add live ebuild (bug #515856 by Ari Malinen).
*dmenu-4.5-r4 (22 Jan 2014)
diff --git a/x11-misc/dmenu/dmenu-9999.ebuild b/x11-misc/dmenu/dmenu-9999.ebuild
new file mode 100644
index 000000000000..3604ede5dfbb
--- /dev/null
+++ b/x11-misc/dmenu/dmenu-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/dmenu-9999.ebuild,v 1.1 2014/06/30 13:31:15 jer Exp $
+
+EAPI=5
+inherit eutils git-r3 savedconfig toolchain-funcs
+
+DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
+HOMEPAGE="http://tools.suckless.org/dmenu/"
+EGIT_REPO_URI="git://git.suckless.org/dmenu"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="xft xinerama"
+
+RDEPEND="
+ x11-libs/libX11
+ xft? ( x11-libs/libXft )
+ xinerama? ( x11-libs/libXinerama )
+"
+DEPEND="${RDEPEND}
+ xft? ( virtual/pkgconfig )
+ xinerama? ( virtual/pkgconfig )
+"
+
+src_prepare() {
+ # Respect our flags
+ sed -i \
+ -e '/^CFLAGS/{s|=.*|+= -ansi -pedantic -Wall $(INCS) $(CPPFLAGS)|}' \
+ -e '/^LDFLAGS/s|= -s|+=|' \
+ config.mk || die
+ # Make make verbose
+ sed -i \
+ -e 's|^ @| |g' \
+ -e '/^ echo/d' \
+ Makefile || die
+
+ restore_config config.def.h
+ epatch_user
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) \
+ "XFTINC=$( $(tc-getPKG_CONFIG) --cflags xft 2>/dev/null )" \
+ "XFTLIBS=$( $(tc-getPKG_CONFIG) --libs xft 2>/dev/null )" \
+ "XINERAMAFLAGS=$(
+ usex xinerama "-DXINERAMA $(
+ $(tc-getPKG_CONFIG) --cflags xinerama 2>/dev/null
+ )" ''
+ )" \
+ "XINERAMALIBS=$(
+ usex xinerama "$( $(tc-getPKG_CONFIG) --libs xinerama 2>/dev/null)" ''
+ )"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install
+
+ save_config config.def.h
+}