# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Default X11 back-end component for the GNUstep GUI Library." HOMEPAGE="http://www.gnustep.org" SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-back-${PV}.tar.gz" KEYWORDS="~x86" SLOT="0" LICENSE="LGPL-2.1" PROVIDES="virtual/gnustep-back" IUSE="glx xim doc" DEPEND="virtual/glibc >=sys-devel/gcc-3.0.4 gnustep-base/gnustep-make gnustep-base/gnustep-base gnustep-base/gnustep-gui virtual/x11 glx? ( virtual/opengl virtual/glu ) virtual/xft media-libs/freetype dev-libs/expat sys-libs/zlib media-libs/fontconfig" RDEPEND="${DEPEND}" S=${WORKDIR}/gnustep-back-${PV} 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="`use_enable glx`" myconf="$myconf `use_enable xim`" myconf="$myconf --enable-server=x11" myconf="$myconf --enable-graphics=xlib --with-name=xlib" 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} dodir /usr/GNUstep/System/Tools/Gentoo exeinto /usr/GNUstep/System/Tools/Gentoo doexe ${FILESDIR}/config-gnustep-back-xlib.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:" ewarn " /usr/GNUstep/System/Tools/Gentoo/config-gnustep-back-xlib.sh" ewarn "as the -user- you will run GNUstep applications as," ewarn "to switch to the xlib backend." einfo "" einfo "You may have multiple backends installed." }