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

Contents of /dev-libs/libaio/libaio-0.3.109-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Sep 19 22:53:49 2012 UTC (2 years, 1 month ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +3 -3 lines
Stable for HPPA (bug #379991).

(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.109-r2.ebuild,v 1.9 2011/12/07 15:45:57 vapier 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 SRC_URI="mirror://kernel/linux/libs/aio/${P}.tar.bz2"
12
13 LICENSE="LGPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux"
16 IUSE="static-libs"
17
18 RESTRICT="test"
19
20 src_prepare() {
21 epatch "${FILESDIR}"/${PN}-0.3.109-unify-bits-endian.patch
22 epatch "${FILESDIR}"/${PN}-0.3.109-generic-arch.patch
23 epatch "${FILESDIR}"/${PN}-0.3.106-build.patch
24 epatch "${FILESDIR}"/${PN}-0.3.107-ar-ranlib.patch
25 epatch "${FILESDIR}"/${PN}-0.3.109-install.patch
26 epatch "${FILESDIR}"/${PN}-0.3.109-x32.patch
27 sed -i \
28 -e "/^libdir=/s:lib$:$(get_libdir):" \
29 -e "/^prefix=/s:/usr:${EPREFIX}/usr:" \
30 -e '/:=.*strip.*shell.*git/s:=.*:=:' \
31 src/Makefile Makefile || die
32 }
33
34 src_configure() {
35 tc-export AR CC RANLIB
36 }
37
38 src_test() {
39 cd "${S}"/harness
40 mkdir testdir
41 emake check prefix="${S}/src" libdir="${S}/src" || die
42 }
43
44 src_install() {
45 # Don't use ED for emake, src_prepare already inserts EPREFIX in the correct
46 # place
47 emake install DESTDIR="${D}" || die
48 doman man/*
49 dodoc ChangeLog TODO
50
51 # move crap to / for multipath-tools #325355
52 gen_usr_ldscript -a aio
53 if ! use static-libs ; then
54 rm "${ED}"usr/lib*/*.a || die
55 fi
56
57 # remove stuff provided by man-pages now
58 rm "${ED}"usr/share/man/man3/{lio_listio,aio_{cancel,error,fsync,init,read,return,suspend,write}}.*
59 }

  ViewVC Help
Powered by ViewVC 1.1.20