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

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

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

Revision 1.4 Revision 1.6
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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/pth/pth-2.0.7-r3.ebuild,v 1.4 2011/05/21 17:39:12 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-libs/pth/pth-2.0.7-r3.ebuild,v 1.6 2012/01/11 11:03:18 scarabeus Exp $
4
5EAPI=4
4 6
5inherit eutils fixheadtails libtool flag-o-matic 7inherit eutils fixheadtails libtool flag-o-matic
6 8
7DESCRIPTION="GNU Portable Threads" 9DESCRIPTION="GNU Portable Threads"
8HOMEPAGE="http://www.gnu.org/software/pth/" 10HOMEPAGE="http://www.gnu.org/software/pth/"
9SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" 11SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
10 12
11LICENSE="LGPL-2.1" 13LICENSE="LGPL-2.1"
12SLOT="0" 14SLOT="0"
13KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh sparc x86 ~x86-fbsd" 15KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
14IUSE="debug" 16IUSE="debug static-libs"
15 17
16DEPEND="" 18DEPEND=""
17RDEPEND="${DEPEND}" 19RDEPEND="${DEPEND}"
18 20
19src_unpack() { 21DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README THANKS USERS"
20 unpack ${A} 22
21 cd "${S}" 23src_prepare() {
22 epatch "${FILESDIR}"/${PN}-2.0.5-parallelfix.patch 24 epatch "${FILESDIR}"/${PN}-2.0.5-parallelfix.patch
23 epatch "${FILESDIR}"/${PN}-2.0.6-ldflags.patch 25 epatch "${FILESDIR}"/${PN}-2.0.6-ldflags.patch
24 epatch "${FILESDIR}"/${PN}-2.0.6-sigstack.patch 26 epatch "${FILESDIR}"/${PN}-2.0.6-sigstack.patch
25 epatch "${FILESDIR}"/${PN}-2.0.7-parallel-install.patch 27 epatch "${FILESDIR}"/${PN}-2.0.7-parallel-install.patch
26 epatch "${FILESDIR}"/${PN}-2.0.7-ia64.patch 28 epatch "${FILESDIR}"/${PN}-2.0.7-ia64.patch
28 ht_fix_file aclocal.m4 configure 30 ht_fix_file aclocal.m4 configure
29 31
30 elibtoolize 32 elibtoolize
31} 33}
32 34
33src_compile() { 35src_configure() {
34 # bug 350815 36 # bug 350815
35 ( use arm || use sh ) && append-flags -U_FORTIFY_SOURCE 37 ( use arm || use sh ) && append-flags -U_FORTIFY_SOURCE
36 38
37 local conf 39 local conf
38 use debug && conf="${conf} --enable-debug" # have a bug --disable-debug and shared 40 use debug && conf="${conf} --enable-debug" # have a bug --disable-debug and shared
39 econf ${conf} || die 41 econf \
40 emake || die 42 ${conf} \
43 $(use_enable static-libs static)
41} 44}
42 45
43src_install() { 46src_install() {
44 #Parallel install issuse fixed with parallel-install.patch. 47 default
45 #Submitted upstream on 12-13-2010. 48 find "${ED}" -name '*.la' -exec rm -f {} +
46 emake DESTDIR="${D}" install || die
47 dodoc ANNOUNCE AUTHORS ChangeLog NEWS README THANKS USERS || die
48} 49}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20