diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-11 01:14:15 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-11 01:14:15 +0000 |
commit | 7d764d7ff3c66275148a7f8ef45eae80862fa1ab (patch) | |
tree | 5a41533976fa9660b6376a16b048637458dae377 /app-pda/pilot-link/pilot-link-0.12.5.ebuild | |
parent | stable ppc64, bug 302479 (diff) | |
download | historical-7d764d7ff3c66275148a7f8ef45eae80862fa1ab.tar.gz historical-7d764d7ff3c66275148a7f8ef45eae80862fa1ab.tar.bz2 historical-7d764d7ff3c66275148a7f8ef45eae80862fa1ab.zip |
Version bump wrt #271473 with improved distutils.eclass usage wrt #311767.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'app-pda/pilot-link/pilot-link-0.12.5.ebuild')
-rw-r--r-- | app-pda/pilot-link/pilot-link-0.12.5.ebuild | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/app-pda/pilot-link/pilot-link-0.12.5.ebuild b/app-pda/pilot-link/pilot-link-0.12.5.ebuild new file mode 100644 index 000000000000..0fded090bcd0 --- /dev/null +++ b/app-pda/pilot-link/pilot-link-0.12.5.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2010 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.5.ebuild,v 1.1 2010/07/11 01:14:15 ssuominen Exp $ + +EAPI=3 + +PYTHON_DEPEND="python? 2:2.5" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit autotools distutils eutils perl-module java-pkg-opt-2 + +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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="perl java python png readline threads bluetooth usb debug" + +COMMON_DEPEND="virtual/libiconv + >=sys-libs/ncurses-5.7 + >=dev-libs/popt-1.15 + perl? ( >=dev-lang/perl-5.8.8-r2 ) + png? ( >=media-libs/libpng-1.4 ) + readline? ( >=sys-libs/readline-6 ) + usb? ( virtual/libusb:0 ) + bluetooth? ( net-wireless/bluez )" +DEPEND="${COMMON_DEPEND} + java? ( >=virtual/jdk-1.4 )" +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.4 )" + +PYTHON_MODNAME="pisock.py pisockextras.py" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.12.3-java-install.patch \ + "${FILESDIR}"/${PN}-0.12.3-respect-javacflags.patch \ + "${FILESDIR}"/${PN}-0.12.2-werror_194921.patch \ + "${FILESDIR}"/${PN}-0.12.2-threads.patch \ + "${FILESDIR}"/${PN}-0.12.3-{libpng14,png}.patch \ + "${FILESDIR}"/${PN}-0.12.3-distutils.patch \ + "${FILESDIR}"/${PN}-0.12.3-libusb-compat-usb_open.patch + + AT_M4DIR="m4" eautoreconf +} + +src_configure() { + # tcl/tk support is disabled as per upstream request. + econf \ + --includedir="${EPREFIX}"/usr/include/libpisock \ + --disable-dependency-tracking \ + --enable-conduits \ + $(use_enable threads) \ + $(use_enable usb libusb) \ + $(use_enable debug) \ + $(use_with png libpng) \ + $(use_with bluetooth bluez) \ + $(use_with readline) \ + $(use_with perl) \ + $(use_with java) \ + --without-tcl \ + $(use_with python) +} + +src_compile() { + emake || die + + if use perl; then + cd "${S}"/bindings/Perl + perl-module_src_prep + perl-module_src_compile + fi + + if use python; then + cd "${S}"/bindings/Python + distutils_src_compile + fi +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog NEWS README doc/{README*,TODO} + + 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 + + if use python; then + cd "${S}"/bindings/Python + distutils_src_install + fi +} + +pkg_preinst() { + perl-module_pkg_preinst + java-pkg-opt-2_pkg_preinst +} + +pkg_postinst() { + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} |