/[gentoo-x86]/gnustep-base/gnustep-base/gnustep-base-1.24.0-r1.ebuild
Gentoo

Contents of /gnustep-base/gnustep-base/gnustep-base-1.24.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Tue Mar 5 13:37:07 2013 UTC (5 years, 7 months ago) by voyageur
Branch: MAIN
Changes since 1.7: +4 -4 lines
Use EAPI 5 and icu subslot, bug #455900

(Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key C74525F2)

1 voyageur 1.8 # Copyright 1999-2013 Gentoo Foundation
2 voyageur 1.1 # Distributed under the terms of the GNU General Public License v2
3 voyageur 1.8 # $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-base/gnustep-base-1.24.0-r1.ebuild,v 1.7 2012/12/28 23:52:25 voyageur Exp $
4 voyageur 1.1
5 voyageur 1.8 EAPI=5
6 voyageur 1.7 inherit eutils gnustep-base
7 voyageur 1.1
8     DESCRIPTION="A library of general-purpose, non-graphical Objective C objects."
9     HOMEPAGE="http://www.gnustep.org"
10     SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
11    
12     LICENSE="GPL-2 LGPL-2.1"
13     SLOT="0"
14 ago 1.6 KEYWORDS="~alpha amd64 ppc ~ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
15 voyageur 1.1 IUSE="+icu +libffi ssl zeroconf"
16    
17     RDEPEND="${GNUSTEP_CORE_DEPEND}
18     >=gnustep-base/gnustep-make-2.6.0
19 voyageur 1.8 icu? ( >=dev-libs/icu-4.0:= )
20 voyageur 1.1 !libffi? ( dev-libs/ffcall
21     gnustep-base/gnustep-make[-native-exceptions] )
22     libffi? ( virtual/libffi )
23     ssl? ( net-libs/gnutls )
24     >=dev-libs/libxml2-2.6
25     >=dev-libs/libxslt-1.1
26     >=dev-libs/gmp-4.1
27     >=dev-libs/openssl-0.9.7
28     >=sys-libs/zlib-1.2
29     zeroconf? ( net-dns/avahi )"
30     DEPEND="${RDEPEND}
31 jdhore 1.4 virtual/pkgconfig"
32 voyageur 1.1
33 voyageur 1.7 src_prepare() {
34     epatch "${FILESDIR}"/${P}-libxml2-2.9_support.patch
35     }
36    
37 voyageur 1.1 src_configure() {
38     egnustep_env
39    
40     local myconf
41     if use libffi;
42     then
43     myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
44     else
45     myconf="--disable-libffi --enable-ffcall"
46     fi
47    
48     myconf="$myconf $(use_enable icu)"
49     myconf="$myconf $(use_enable ssl tls)"
50     myconf="$myconf $(use_enable zeroconf)"
51     myconf="$myconf --with-xml-prefix=${EPREFIX}/usr"
52     myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib"
53     myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf"
54    
55     econf $myconf
56     }
57    
58     src_install() {
59     # We need to set LD_LIBRARY_PATH because the doc generation program
60     # uses the gnustep-base libraries. Since egnustep_env "cleans the
61     # environment" including our LD_LIBRARY_PATH, we're left no choice
62     # but doing it like this.
63    
64     egnustep_env
65     egnustep_install
66    
67     if use doc ; then
68     export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}"
69     egnustep_doc
70     fi
71     egnustep_install_config
72     }
73    
74     pkg_postinst() {
75     ewarn "The shared library version has changed in this release."
76     ewarn "You will need to recompile all Applications/Tools/etc in order"
77     ewarn "to use this library. Please run revdep-rebuild to do so"
78     }

  ViewVC Help
Powered by ViewVC 1.1.20