/[gentoo-x86]/dev-libs/zthread/zthread-2.3.2-r1.ebuild
Gentoo

Contents of /dev-libs/zthread/zthread-2.3.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Apr 16 17:52:57 2010 UTC (4 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +2 -2 lines
Minor cleanup
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 ssuominen 1.2 # Copyright 1999-2010 Gentoo Foundation
2 halcy0n 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/zthread/zthread-2.3.2-r1.ebuild,v 1.2 2010/04/16 17:42:04 ssuominen Exp $
4 halcy0n 1.1
5 ssuominen 1.2 EAPI=2
6 ssuominen 1.3 inherit eutils
7 halcy0n 1.1
8 ssuominen 1.2 MY_P=ZThread-${PV}
9 halcy0n 1.1
10     DESCRIPTION="A platform-independent multi-threading and synchronization library for C++"
11     HOMEPAGE="http://zthread.sourceforge.net/"
12     SRC_URI="mirror://sourceforge/zthread/${MY_P}.tar.gz"
13 ssuominen 1.2
14 halcy0n 1.1 LICENSE="MIT"
15     SLOT="0"
16     KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
17 ssuominen 1.2 IUSE="debug doc kernel_linux static-libs"
18 halcy0n 1.1
19     DEPEND="doc? ( app-doc/doxygen )"
20     RDEPEND=""
21    
22 ssuominen 1.2 S=${WORKDIR}/${MY_P}
23 halcy0n 1.1
24 ssuominen 1.2 src_prepare() {
25     rm -f include/zthread/{.Barrier.h.swp,Barrier.h.orig} || die
26 halcy0n 1.1 epatch "${FILESDIR}"/${P}-no-fpermissive.diff
27     }
28    
29 ssuominen 1.2 src_configure() {
30     local myconf
31     use debug && myconf="--enable-debug"
32    
33 halcy0n 1.1 econf \
34     $(use_enable kernel_linux atomic-linux) \
35 ssuominen 1.2 $(use_enable static-libs static) \
36     ${myconf}
37     }
38 halcy0n 1.1
39 ssuominen 1.2 src_compile() {
40     emake || die
41    
42     if use doc; then
43     doxygen doc/zthread.doxygen || die
44     cp doc/documentation.html doc/html/index.html || die
45     cp doc/zthread.css doc/html/zthread.css || die
46     cp doc/bugs.js doc/html/bugs.js || die
47 halcy0n 1.1 fi
48     }
49    
50     src_install() {
51 ssuominen 1.2 einstall || die
52    
53     dodoc AUTHORS ChangeLog NEWS README TODO
54 halcy0n 1.1 use doc && dohtml doc/html/*
55 ssuominen 1.2
56     find "${D}" -name '*.la' -delete
57 halcy0n 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20