summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild')
-rw-r--r--sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild b/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild
index b368200a4f60..d0f7ae091f3d 100644
--- a/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild
+++ b/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild,v 1.1 2003/04/16 06:54:56 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/xfsprogs/xfsprogs-2.3.9.ebuild,v 1.2 2003/04/16 07:19:17 aliz Exp $
inherit flag-o-matic
@@ -16,6 +16,17 @@ S=${WORKDIR}/${P}
DEPEND="sys-apps/e2fsprogs"
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ cp include/builddefs.in include/builddefs.in.orig
+ sed -e "s:/usr/share/doc/${PN}:/usr/share/doc/${PF}:" \
+ -e 's:-O1::' -e '/-S $(PKG/d' \
+ -e 's:^PKG_\(.*\)_DIR[[:space:]]*= \(.*\)$:PKG_\1_DIR = $(DESTDIR)\2:' \
+ include/builddefs.in.orig > include/builddefs.in || die "sed failed"
+}
+
src_compile() {
replace-flags -O[2-9] -O1
export OPTIMIZER="${CFLAGS}"
@@ -30,12 +41,6 @@ src_compile() {
--libexecdir=/lib \
--mandir=/usr/share/man || die "config failed"
- cp include/builddefs include/builddefs.orig
- sed -e "s:/usr/share/doc/${PN}:/usr/share/doc/${PF}:" \
- -e 's:-O1::' -e '/-S $(PKG/d' \
- -e 's:^PKG_\(.*\)_DIR = \(.*\)$:PKG_\1_DIR = ${DESTDIR}\2:' \
- include/builddefs.orig > include/builddefs || die "sed failed"
-
emake || die
}