summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-07-18 22:19:52 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-07-18 22:19:52 +0000
commit7f74c8f74de406d015ec638ce09dfb958a8e7146 (patch)
treed5fcc435f1aade168873940f5290a123a29ca19e /x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild
parentVersion bump. (diff)
downloadgentoo-2-7f74c8f74de406d015ec638ce09dfb958a8e7146.tar.gz
gentoo-2-7f74c8f74de406d015ec638ce09dfb958a8e7146.tar.bz2
gentoo-2-7f74c8f74de406d015ec638ce09dfb958a8e7146.zip
Fix building with glibc 2.10+ wrt #276182, thanks to Joost Ruis and Arttu Valo.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild')
-rw-r--r--x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild b/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild
index d5c0e5396555..5f9c7de187a4 100644
--- a/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild
+++ b/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild,v 1.1 2009/01/01 01:33:50 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/xmbdfed/xmbdfed-4.7_p1-r1.ebuild,v 1.2 2009/07/18 22:19:52 ssuominen Exp $
+EAPI=2
+MY_P=${P/_p*}
inherit eutils multilib toolchain-funcs
-MY_P="${P/_p*}"
DESCRIPTION="BDF font editor for X"
SRC_URI="http://clr.nmsu.edu/~mleisher/${MY_P}.tar.bz2
http://clr.nmsu.edu/~mleisher/${P/_p/-patch}"
@@ -24,23 +25,22 @@ RDEPEND="${DEPEND}
media-fonts/font-alias
media-fonts/font-misc-misc"
-S="${WORKDIR}/${MY_P}"
+S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${DISTDIR}/${P/_p/-patch}"
- epatch "${FILESDIR}/${P}-gcc4.patch"
- epatch "${FILESDIR}/${P}-gentoo.patch"
+src_prepare() {
+ epatch "${DISTDIR}"/${P/_p/-patch} \
+ "${FILESDIR}"/${P}-gcc4.patch \
+ "${FILESDIR}"/${P}-gentoo.patch
sed -i -e "/^LIBS/s:/usr/lib:/usr/$(get_libdir):" Makefile || die
+ sed -i -e "s:getline:get_line:g" bdfgname.c || die
}
src_compile() {
- emake CC="$(tc-getCC)" || die
+ emake CC="$(tc-getCC)" || die "emake failed"
}
src_install() {
- dobin xmbdfed || die
+ dobin xmbdfed || die "dobin failed"
newman xmbdfed.man xmbdfed.1
dodoc CHANGES README xmbdfedrc
}