/[gentoo-x86]/dev-libs/libaio/libaio-0.3.107.ebuild
Gentoo

Contents of /dev-libs/libaio/libaio-0.3.107.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Apr 6 09:19:27 2010 UTC (4 years, 8 months ago) by abcd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +9 -8 lines
Bump to EAPI=3, add prefix keywords
(Portage version: -svn/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libaio/libaio-0.3.107.ebuild,v 1.12 2009/05/06 17:03:18 jer Exp $
4
5 EAPI="3"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="Asynchronous input/output library that uses the kernels native interface"
10 HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/andrea/libaio/ http://lse.sourceforge.net/io/aio.html"
11 # Rip out of src rpm that Redhat uses:
12 # http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/
13 SRC_URI="mirror://gentoo/${P}.tar.gz"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86"
18 IUSE=""
19
20 RESTRICT="test"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${P}-sparc.patch
24 epatch "${FILESDIR}"/${P}-install-to-slash.patch
25 epatch "${FILESDIR}"/${PN}-0.3.107-ar-ranlib.patch
26 epatch "${FILESDIR}"/${PN}-0.3.106-build.patch
27 epatch "${FILESDIR}"/${PN}-0.3.107-generic-arch.patch
28 sed -i "/^libdir=/s:lib$:$(get_libdir):" src/Makefile Makefile
29 sed -i "/^prefix=/s:/usr:${EPREFIX}/usr:" src/Makefile Makefile
30 }
31
32 src_configure() {
33 tc-export AR CC RANLIB
34 }
35
36 src_test() {
37 cd "${S}"/harness
38 mkdir testdir
39 emake check prefix="${S}/src" libdir="${S}/src"
40 }
41
42 src_install() {
43 emake install DESTDIR="${D}" || die
44 doman man/*
45 dodoc ChangeLog TODO
46
47 # remove stuff provided by man-pages now
48 rm "${ED}"usr/share/man/man3/aio_{cancel,error,fsync,read,return,suspend,write}.*
49 }

  ViewVC Help
Powered by ViewVC 1.1.20