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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 23 11:48:56 2012 UTC (2 years ago) by xarthisius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -1 lines
Fix building with gcc4.7 wrt #414133 by David Kredba <nheghathivhistha@gmail.com>

(Portage version: 2.2.0_alpha110/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/zthread/zthread-2.3.2-r2.ebuild,v 1.1 2012/01/13 03:23:01 vapier Exp $
4
5 EAPI="4"
6
7 inherit eutils autotools
8
9 MY_P=ZThread-${PV}
10 DESCRIPTION="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
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
17 IUSE="debug doc kernel_linux static-libs"
18
19 DEPEND="doc? ( app-doc/doxygen )"
20 RDEPEND=""
21
22 S=${WORKDIR}/${MY_P}
23
24 src_prepare() {
25 rm -f include/zthread/{.Barrier.h.swp,Barrier.h.orig} || die
26 epatch "${FILESDIR}"/${P}-no-fpermissive.diff
27 epatch "${FILESDIR}"/${P}-m4-quote.patch
28 epatch "${FILESDIR}"/${P}-automake.patch
29 epatch "${FILESDIR}"/${P}-gcc47.patch
30
31 AT_M4DIR="share" eautoreconf
32 }
33
34 src_configure() {
35 local myconf
36 # Autoconf does not support --disable-debug properly.
37 use debug && myconf="--enable-debug"
38
39 econf \
40 $(use_enable kernel_linux atomic-linux) \
41 $(use_enable static-libs static) \
42 ${myconf}
43 }
44
45 src_compile() {
46 emake
47
48 if use doc; then
49 doxygen doc/zthread.doxygen || die
50 cp doc/documentation.html doc/html/index.html || die
51 cp doc/zthread.css doc/html/zthread.css || die
52 cp doc/bugs.js doc/html/bugs.js || die
53 fi
54 }
55
56 src_install() {
57 emake install DESTDIR="${ED}"
58
59 dodoc AUTHORS ChangeLog NEWS README TODO
60 use doc && dohtml doc/html/*
61
62 use static-libs || find "${ED}" -name '*.la' -delete
63 }

  ViewVC Help
Powered by ViewVC 1.1.20