# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="It is a library of graphical user interface classes written completely in the Objective-C language." HOMEPAGE="http://www.gnustep.org" SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz" KEYWORDS="~x86" SLOT="0" LICENSE="LGPL-2.1" IUSE="jpeg ungif png gsnd doc" DEPEND="virtual/glibc >=sys-devel/gcc-3.0.4 gnustep-base/gnustep-make gnustep-base/gnustep-base sys-libs/zlib media-libs/tiff jpeg? >=media-libs/jpeg ungif? media-libs/libungif png? media-libs/libpng gsnd? media-libs/audiofile app-text/aspell" RDEPEND="${DEPEND}" src_compile() { addwrite /root/GNUstep/Defaults/.GNUstepDefaults.lck cd ${S} mkdir -p $TMP/fakehome mkdir -p $TMP/fakehome/GNUstep . /usr/GNUstep/System/Makefiles/GNUstep.sh myconf="--with-tiff-include=/usr/include --with-tiff-library=/usr/lib" myconf="$myconf `use_enable gsnd`" use gsnd && myconf="$myconf --with-audiofile-include=/usr/include --with-audiofile-lib=/usr/lib" myconf="$myconf `use_enable jpeg`" myconf="$myconf `use_enable png`" myconf="$myconf `use_enable ungif`" 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/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} if [ `use doc` ]; then cd ${S}/Documentation make all make \ GNUSTEP_INSTALLATION_DIR=${D}usr/GNUstep/System \ install DESTDIR=${D} fi }