diff options
Diffstat (limited to 'app-pda/pilot-link/pilot-link-0.12.2.ebuild')
-rw-r--r-- | app-pda/pilot-link/pilot-link-0.12.2.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/app-pda/pilot-link/pilot-link-0.12.2.ebuild b/app-pda/pilot-link/pilot-link-0.12.2.ebuild new file mode 100644 index 000000000000..a2287c9bd1da --- /dev/null +++ b/app-pda/pilot-link/pilot-link-0.12.2.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2007 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.2.ebuild,v 1.1 2007/08/25 19:17:04 philantrop Exp $ + +inherit perl-module java-pkg-opt-2 eutils autotools + +DESCRIPTION="suite of tools for moving data between a Palm device and a desktop" +HOMEPAGE="http://www.pilot-link.org/" +SRC_URI="http://pilot-link.org/source/${P}.tar.bz2" + +LICENSE="|| ( GPL-2 LGPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" + +IUSE="perl java python png readline threads bluetooth usb debug" + +BOTH_DEPEND="virtual/libiconv + >=sys-libs/ncurses-5.6-r1 + >=dev-libs/popt-1.10.7 + perl? ( >=dev-lang/perl-5.8.8-r2 ) + python? ( >=dev-lang/python-2.4.4-r4 ) + png? ( >=media-libs/libpng-1.2.18-r1 ) + readline? ( >=sys-libs/readline-5.2_p4 ) + usb? ( >=dev-libs/libusb-0.1.12 ) + bluetooth? ( >=net-wireless/bluez-libs-3.10 )" + +DEPEND="${BOTH_DEPEND} + java? ( >=virtual/jdk-1.4 )" + +RDEPEND="${BOTH_DEPEND} + java? ( >=virtual/jre-1.4 )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix a syntax error. + epatch "${FILESDIR}/${P}-m4.patch" + + # Patch away a *lot* of broken configure switches and automagic deps. + epatch "${FILESDIR}/${P}-bluez.patch" + epatch "${FILESDIR}/${P}-png.patch" + epatch "${FILESDIR}/${P}-readline.patch" + epatch "${FILESDIR}/${P}-threads.patch" + + # Some Java fixes. + if use java ; then + epatch "${FILESDIR}/${P}-java-compile.patch" + epatch "${FILESDIR}/${P}-java-install.patch" + fi + + AT_M4DIR="m4" eautoreconf +} + +src_compile() { + # tcl/tk support is disabled as per upstream request. + econf \ + --includedir=/usr/include/libpisock \ + --enable-conduits \ + --with-tcl=no \ + --without-included-popt \ + $(use_enable threads) \ + $(use_enable usb libusb) \ + $(use_enable debug) \ + $(use_with png libpng $(libpng-config --prefix)) \ + $(use_with bluetooth bluez) \ + $(use_with readline) \ + $(use_with perl) \ + $(use_with java) \ + $(use_with python) \ + || die "econf failed" + + emake || die "emake failed" + + if use perl ; then + cd "${S}/bindings/Perl" + perl-module_src_prep + perl-module_src_compile + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc ChangeLog README doc/README* doc/TODO NEWS AUTHORS || die "installing docs failed" + + if use java ; then + cd "${S}/bindings/Java" + java-pkg_newjar ${PN}.jar + java-pkg_doso libjpisock.so + fi + + if use perl ; then + cd "${S}/bindings/Perl" + perl-module_src_install + fi +} |