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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20