# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-fs/xfsprogs/xfsprogs-2.6.3.ebuild,v 1.1 2004/02/11 06:47:47 vapier Exp $ inherit flag-o-matic DESCRIPTION="xfs filesystem utilities" HOMEPAGE="http://oss.sgi.com/projects/xfs/" SRC_URI="ftp://oss.sgi.com/projects/xfs/download/cmd_tars/${P}.src.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~amd64 ~ia64" DEPEND="sys-fs/e2fsprogs >=sys-apps/sed-4" src_unpack() { unpack ${A} cd ${S} sed -i \ -e "/^PKG_DOC_DIR/s:=.*:= /usr/share/doc/${PF}:" \ -e '/^GCFLAGS/s:-O1::' \ -e '/^PKG_[A-Z]*_DIR/s:= := $(DESTDIR):' \ include/builddefs.in \ || die "sed include/builddefs.in failed" } src_compile() { replace-flags -O[2-9] -O1 export OPTIMIZER="${CFLAGS}" export DEBUG=-DNDEBUG [ `use sparc` ] && unset PLATFORM econf \ --bindir=/bin \ --sbindir=/sbin \ --libdir=/lib \ --libexecdir=/lib \ || die "config failed" emake || die } src_install() { make \ DESTDIR=${D} \ DK_INC_DIR=${D}/usr/include/disk \ install install-dev \ || die "make install failed" dosym /lib/libhandle.so.1 /lib/libhandle.so dodir /usr/lib sed \ -e 's:installed=no:installed=yes:g' \ ${S}/libhandle/.libs/libhandle.la \ > ${D}/usr/lib/libhandle.la mv ${D}/lib/*.a ${D}/usr/lib/ }