diff options
Diffstat (limited to 'sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild')
-rw-r--r-- | sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild b/sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild new file mode 100644 index 000000000000..395512518da6 --- /dev/null +++ b/sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libhugetlbfs/libhugetlbfs-1.1.ebuild,v 1.1 2007/07/13 06:00:35 vapier Exp $ + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="easy hugepage access" +HOMEPAGE="http://libhugetlbfs.ozlabs.org/" +SRC_URI="http://libhugetlbfs.ozlabs.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch + sed -i \ + -e '/^PREFIX/s:/local::' \ + -e '1iBUILDTYPE = NATIVEONLY' \ + -e '1iV = 1' \ + -e "/^LIB\(32\|64\)/s:=.*:= $(get_libdir):" \ + -e '/^CC\(32\|64\)/s:=.*:= $(CC):' \ + Makefile +} + +src_compile() { + tc-export AR CC + emake libs || die +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc HOWTO NEWS README +} |