| 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.24.0-r1.ebuild,v 1.4 2012/05/02 21:21:12 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit gnustep-base
|
| 7 |
|
| 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 |
KEYWORDS="~alpha amd64 ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
| 15 |
IUSE="+icu +libffi ssl zeroconf"
|
| 16 |
|
| 17 |
RDEPEND="${GNUSTEP_CORE_DEPEND}
|
| 18 |
>=gnustep-base/gnustep-make-2.6.0
|
| 19 |
icu? ( >=dev-libs/icu-4.0 )
|
| 20 |
!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 |
virtual/pkgconfig"
|
| 32 |
|
| 33 |
src_configure() {
|
| 34 |
egnustep_env
|
| 35 |
|
| 36 |
local myconf
|
| 37 |
if use libffi;
|
| 38 |
then
|
| 39 |
myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)"
|
| 40 |
else
|
| 41 |
myconf="--disable-libffi --enable-ffcall"
|
| 42 |
fi
|
| 43 |
|
| 44 |
myconf="$myconf $(use_enable icu)"
|
| 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
|
| 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 |
|
| 70 |
pkg_postinst() {
|
| 71 |
ewarn "The shared library version has changed in this release."
|
| 72 |
ewarn "You will need to recompile all Applications/Tools/etc in order"
|
| 73 |
ewarn "to use this library. Please run revdep-rebuild to do so"
|
| 74 |
}
|