/[gentoo-x86]/dev-libs/pth/pth-2.0.7-r3.ebuild
Gentoo

Contents of /dev-libs/pth/pth-2.0.7-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jan 11 11:03:18 2012 UTC (8 years, 1 month ago) by scarabeus
Branch: MAIN
Changes since 1.5: +14 -13 lines
Bump to eapi4 and make static libs optional.

(Portage version: 2.2.0_alpha84/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/pth/pth-2.0.7-r3.ebuild,v 1.5 2011/05/21 19:57:38 xarthisius Exp $
4
5 EAPI=4
6
7 inherit eutils fixheadtails libtool flag-o-matic
8
9 DESCRIPTION="GNU Portable Threads"
10 HOMEPAGE="http://www.gnu.org/software/pth/"
11 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
16 IUSE="debug static-libs"
17
18 DEPEND=""
19 RDEPEND="${DEPEND}"
20
21 DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README THANKS USERS"
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${PN}-2.0.5-parallelfix.patch
25 epatch "${FILESDIR}"/${PN}-2.0.6-ldflags.patch
26 epatch "${FILESDIR}"/${PN}-2.0.6-sigstack.patch
27 epatch "${FILESDIR}"/${PN}-2.0.7-parallel-install.patch
28 epatch "${FILESDIR}"/${PN}-2.0.7-ia64.patch
29
30 ht_fix_file aclocal.m4 configure
31
32 elibtoolize
33 }
34
35 src_configure() {
36 # bug 350815
37 ( use arm || use sh ) && append-flags -U_FORTIFY_SOURCE
38
39 local conf
40 use debug && conf="${conf} --enable-debug" # have a bug --disable-debug and shared
41 econf \
42 ${conf} \
43 $(use_enable static-libs static)
44 }
45
46 src_install() {
47 default
48 find "${ED}" -name '*.la' -exec rm -f {} +
49 }

  ViewVC Help
Powered by ViewVC 1.1.20