/[gentoo-x86]/gnustep-base/gnustep-base/gnustep-base-1.20.1.ebuild
Gentoo

Contents of /gnustep-base/gnustep-base/gnustep-base-1.20.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed May 2 21:21:12 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
Changes since 1.8: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20