# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-link/pilot-link-0.12.0_pre4.ebuild,v 1.9 2005/05/20 21:45:20 vapier Exp $ inherit perl-module eutils MY_P="${PN}-${PV/0.12.0_pre4/0.12.0-pre4}" DESCRIPTION="suite of tools for moving data between a Palm device and a desktop" HOMEPAGE="http://www.pilot-link.org/" SRC_URI="http://www.pilot-link.org/filestore2/download/168/${MY_P}.tar.bz2" LICENSE="|| ( GPL-2 LGPL-2 )" SLOT="0" KEYWORDS="~x86" IUSE="java perl python tcltk png readline libusb" S=${WORKDIR}/${MY_P} DEPEND="virtual/libc sys-libs/ncurses perl? ( dev-lang/perl ) java? ( virtual/jre ) tcltk? ( dev-lang/tcl dev-tcltk/itcl dev-lang/tk ) python? ( dev-lang/python ) png? ( media-libs/libpng ) readline? ( sys-libs/readline ) libusb? ( dev-libs/libusb )" src_unpack() { unpack ${A} cd "${S}" } src_compile() { local myconf="--with-gnu-ld --includedir=/usr/include/libpisock" use java \ && myconf="${myconf} --with-java=yes" \ || myconf="${myconf} --with-java=no" use perl \ && myconf="${myconf} --with-perl=yes" \ || myconf="${myconf} --with-perl=no" # use python \ # && myconf="${myconf} --with-python=yes" \ # || myconf="${myconf} --with-python=no" use tcltk \ && myconf="${myconf} --with-tcl=/usr/lib --with-itcl=yes --with-tk=yes" \ || myconf="${myconf} --with-tcl=no --with-itcl=no --with-tk=no" use png && myconf="${myconf} --with-libpng=/usr" use readline \ && myconf="${myconf} --with-readline=yes" \ || myconf="${myconf} --with-readline=no" use libusb \ && myconf="${myconf} --enable-libusb" econf ${myconf} || die cd ${S} make || die if use perl ; then cd ${S}/bindings/Perl perl-module_src_prep perl-module_src_compile fi } src_install() { make DESTDIR=${D} install || die dodoc ChangeLog README doc/README* doc/TODO NEWS AUTHORS if use perl ; then cd ${S}/bindings/Perl perl-module_src_install fi }