# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kde-functions DESCRIPTION="TiEmu - a TI89(ti)/92(+)/V200 emulator" HOMEPAGE="http://lpg.ticalc.org/prj_tiemu/" SRC_URI="http://files.hibnet.org/gentoo/distfiles/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="nls kde xinerama debug" S=${WORKDIR}/${PN}2-2.08/ DEPEND=">=sci-libs/libticables-3.9.5 >=sci-libs/libticalcs-4.5.9 >=sci-libs/libtifiles-0.6.4 >=dev-libs/glib-2.4.0 >=gnome-base/libglade-2.4.0 >=x11-libs/gtk+-2.4.0 nls? ( sys-devel/gettext ) kde? ( kde-base/kdelibs )" src_compile() { use kde && set-kdedir 3 if use debug; then export CFLAGS="${CFLAGS} -g" fi local myconf="$(use_enable nls) $(use_with kde) $(use_with xinerama)" econf ${myconf} || die emake -j1 || die } src_install() { insinto /usr/share/pixmaps newins pixmaps/logo.xpm domenu ${FILESDIR}/tiemu.desktop # The SHARE_DIR is required since it isn't set properly in a makefile. emake || die dodoc AUTHORS COPYING LICENSES NEWS README README.linux RELEASE TODO }