# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="The GNUstep Base Library is a library of general-purpose, non-graphical Objective C objects." HOMEPAGE="http://www.gnustep.org" SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-2 LGPL-2.1" IUSE="doc libffi" DEPEND="virtual/glibc >=sys-devel/gcc-3.0.4 gnustep-base/gnustep-make dev-libs/libxml2 dev-libs/libxslt dev-libs/gmp dev-libs/openssl libffi? ( dev-libs/libffi ) : ( dev-libs/ffcall ) sys-libs/zlib doc? ( app-text/tetex dev-tex/latex2html app-text/texi2html )" RDEPEND="virtual/glibc >=sys-devel/gcc-3.0.4 gnustep-base/gnustep-make dev-libs/libxml2 dev-libs/libxslt dev-libs/gmp dev-libs/openssl libffi? ( dev-libs/libffi ) : ( dev-libs/ffcall ) dev-libs/ffcall sys-libs/zlib doc? ( sys-apps/texinfo sys-apps/man )" src_compile() { addwrite ${HOME}/GNUstep addwrite ${HOME}/GNUstep/Library addwrite ${HOME}/GNUstep/Defaults/.GNUstepDefaults.lck cd ${S} mkdir -p $TMP/fakehome mkdir -p $TMP/fakehome/GNUstep . /usr/GNUstep/System/Makefiles/GNUstep.sh if [ `use libffi` ]; then myconf="`use_enable libffi`" else myconf="--enable-ffcall" fi myconf="$myconf --with-xml-prefix=/usr" myconf="$myconf --with-gmp-include=/usr/include --with-gmp-library=/usr/lib" echo "$myconf" econf $myconf || die "configure failed" make \ HOME=$TMP/fakehome \ GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \ messages=yes all || die "make died" } src_install() { addwrite /root/GNUstep addwrite /root/GNUstep/Library addwrite /root/GNUstep/Defaults/.GNUstepDefaults.lck . /usr/GNUstep/System/Makefiles/GNUstep.sh make \ HOME=$TMP/fakehome \ GNUSTEP_USER_ROOT=$TMP/fakehome/GNUstep \ GNUSTEP_INSTALLATION_DIR=${D}usr/GNUstep/System \ INSTALL_ROOT_DIR=${D} \ GNUSTEP_SYSTEM_ROOT=${D}usr/GNUstep/System \ GNUSTEP_LOCAL_ROOT=${D}usr/GNUstep/Local \ GNUSTEP_NETWORK_ROOT=${D}usr/GNUstep/Network \ messages=yes install DESTDIR=${D} dodir /usr/GNUstep/System/Tools/Gentoo exeinto /usr/GNUstep/System/Tools/Gentoo doexe ${FILESDIR}/config-gnustep-base.sh if [ `use doc` ]; then cd ${S}/Documentation make all make \ GNUSTEP_INSTALLATION_DIR=${D}usr/GNUstep/System \ install DESTDIR=${D} fi } pkg_postinst() { ewarn "You will need to execute, _after reviewing_:" ewarn " /usr/GNUstep/System/Tools/Gentoo/config-gnustep-base.sh" ewarn "as the -user- you will run GNUstep applications as." }