# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils kde-functions MY_PN="tiemu" MY_P="${MY_PN}-${PV}" DESCRIPTION="TiEmu - a TI89(ti)/92(+)/V200 emulator" HOMEPAGE="http://lpg.ticalc.org/prj_tiemu/" SRC_URI="mirror://sourceforge/gtktiemu/${P}-dock-fixes.diff mirror://sourceforge/gtktiemu/${MY_P}.tar.bz2" LICENSE="GPL-2" S="${WORKDIR}/${MY_P}" SLOT="0" KEYWORDS="~x86" IUSE="nls kde debug dbus xinerama threads" RDEPEND=">=sci-libs/libticables2-1.0.0 >=sci-libs/libticalcs2-1.0.7 >=sci-libs/libtifiles2-1.0.7 >=sci-libs/libticonv-1.0.4 >=dev-libs/glib-2.6.0 >=gnome-base/libglade-2.4.0 >=x11-libs/gtk+-2.6.0 dbus? ( >=dev-libs/dbus-glib-0.60 ) nls? ( virtual/libintl ) xinerama? ( x11-libs/libXinerama )" DEPEND="${RDEPEND} nls? ( sys-devel/gettext ) xinerama? ( x11-proto/xineramaproto )" src_unpack() { unpack ${A} cd ${S} epatch "${DISTDIR}/${P}-dock-fixes.diff" } src_compile() { use kde && set-kdedir 3 if use debug; then export CFLAGS="$(CFLAGS) -g" fi local myconf if use threads ; then myconf="--enable-threads=posix" else myconf="--disable-threads" fi myconf="${myconf} \ $(use_enable nls) \ $(use_with kde) \ $(use_with dbus) \ $(use_with xinerama)" cd ${S} ./configure \ ${myconf} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --datadir=/usr/share \ --sysconfdir=/etc \ --localstatedir=/var/lib || die emake || die } src_install() { # The SHARE_DIR is required since it isn't set properly in a makefile. make DESTDIR=${D} install || die dodoc AUTHORS NEWS README README.linux RELEASE THANKS TODO }