summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2013-05-20 19:47:01 +0000
committerJeroen Roovers <jer@gentoo.org>2013-05-20 19:47:01 +0000
commitf5e52c1a91e233f9fbd71bb320304541c56b95f8 (patch)
tree24ec6cd5644b7a0c7e49bc61ae44db96dc7d3fee /x11-misc/dmenu
parentversion bump (diff)
downloadgentoo-2-f5e52c1a91e233f9fbd71bb320304541c56b95f8.tar.gz
gentoo-2-f5e52c1a91e233f9fbd71bb320304541c56b95f8.tar.bz2
gentoo-2-f5e52c1a91e233f9fbd71bb320304541c56b95f8.zip
Use cross-toolchain pkgconfig.
(Portage version: 2.2.0_alpha176/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-4.5-r3.ebuild59
2 files changed, 65 insertions, 1 deletions
diff --git a/x11-misc/dmenu/ChangeLog b/x11-misc/dmenu/ChangeLog
index 0d9c7b614c79..4e1d02b99f21 100644
--- a/x11-misc/dmenu/ChangeLog
+++ b/x11-misc/dmenu/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-misc/dmenu
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.99 2013/05/03 13:47:30 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/ChangeLog,v 1.100 2013/05/20 19:47:01 jer Exp $
+
+*dmenu-4.5-r3 (20 May 2013)
+
+ 20 May 2013; Jeroen Roovers <jer@gentoo.org> +dmenu-4.5-r3.ebuild:
+ Use cross-toolchain pkgconfig.
03 May 2013; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Add myself as maintainer.
diff --git a/x11-misc/dmenu/dmenu-4.5-r3.ebuild b/x11-misc/dmenu/dmenu-4.5-r3.ebuild
new file mode 100644
index 000000000000..82227c5fc130
--- /dev/null
+++ b/x11-misc/dmenu/dmenu-4.5-r3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/dmenu/dmenu-4.5-r3.ebuild,v 1.1 2013/05/20 19:47:01 jer Exp $
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="a generic, highly customizable, and efficient menu for the X Window System"
+HOMEPAGE="http://tools.suckless.org/dmenu/"
+SRC_URI="http://dl.suckless.org/tools/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
+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
+ use xft && epatch "${FILESDIR}"/${PN}-4.5-xft.patch
+
+ 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
+}