# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-editors/yzis-svn/yzis-svn-0.1.ebuild $ inherit eutils subversion DESCRIPTION="Yzis - VI-like editor" HOMEPAGE="http://www.yzis.org/" LICENSE="LGPL-2 GPL-2" IUSE="kde ncurses pslib arts" SLOT="0" KEYWORDS="~x86 ~amd64" ESVN_REPO_URI="http://svn.freenux.org/svn/yzis/trunk" ESVN_PROJECT="yzis" RDEPEND=" >=x11-libs/qt-3.3 ncurses? >=sys-libs/ncurses-5.4 kde? >=kde-base/kdelibs-3.3 pslib? >=dev-libs/pslib-0.2.2 sys-apps/file =dev-lang/lua-5*" DEPEND=" >=sys-devel/automake-1.7.0 sys-devel/autoconf ${RDEPEND}" src_compile() { myconf="" if ! use kde; then myconf="${myconf} --disable-kyzis" fi if ! use arts; then myconf="${myconf} --without-arts" fi if ! use ncurses; then myconf="${myconf} --disable-nyzis" fi # from portage/eclass/kde.eclass : fix the sandbox errors # "can't write to .kde or .qt" problems. this is a fake # homedir that is writeable under the sandbox, so that the # build process can do anything it wants with it. REALHOME="$HOME" mkdir -p $T/fakehome/.kde mkdir -p $T/fakehome/.qt export HOME="$T/fakehome" addwrite "${QTDIR}/etc/settings" # things that should access the real homedir [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" [ -n "$UNSERMAKE" ] && addwrite "/usr/kde/unsermake" if [ ! -x configure ]; then make -f Makefile.cvs fi econf ${myconf} || die "Configuration failed." emake || die "Build failed." } src_install() { emake DESTDIR=${D} install dodoc TODO README AUTHORS ChangeLog COPYING COPYING.LGPL doc/VI-COMPATIB ILITY insinto "usr/share/doc/${PF}"; doins -r doc/examples }