summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-06-16 14:13:12 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-06-16 14:13:12 +0000
commit35d08dc65b33394820cd8d06b0bce2c92ddeaea4 (patch)
treec75711d31ff58baa1c19fff25c941efb5268e9f3 /media-libs/libptp2/libptp2-1.0.1.ebuild
parentRemoving (diff)
downloadhistorical-35d08dc65b33394820cd8d06b0bce2c92ddeaea4.tar.gz
historical-35d08dc65b33394820cd8d06b0bce2c92ddeaea4.tar.bz2
historical-35d08dc65b33394820cd8d06b0bce2c92ddeaea4.zip
patch to make work with libusb-0.1.10a. Version bump also
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'media-libs/libptp2/libptp2-1.0.1.ebuild')
-rw-r--r--media-libs/libptp2/libptp2-1.0.1.ebuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/media-libs/libptp2/libptp2-1.0.1.ebuild b/media-libs/libptp2/libptp2-1.0.1.ebuild
index 651f89d54f75..2bd472673226 100644
--- a/media-libs/libptp2/libptp2-1.0.1.ebuild
+++ b/media-libs/libptp2/libptp2-1.0.1.ebuild
@@ -1,28 +1,33 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libptp2/libptp2-1.0.1.ebuild,v 1.5 2005/01/26 20:11:27 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libptp2/libptp2-1.0.1.ebuild,v 1.6 2005/06/16 14:13:12 dragonheart Exp $
+
+inherit eutils
DESCRIPTION="Library communicating with PTP enabled devices (digital photo cameras and so on)."
HOMEPAGE="http://sourceforge.net/projects/libptp/"
SRC_URI="mirror://sourceforge/libptp/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ppc ppc64"
+KEYWORDS="ppc ppc64 x86"
IUSE=""
-RDEPEND="dev-libs/libusb"
+RDEPEND=">=dev-libs/libusb-0.1.8"
DEPEND="${RDEPEND}
sys-apps/gawk
sys-apps/grep"
-src_compile() {
- econf || die "failed to configure"
- # Parallel make fails -
- # https://sourceforge.net/tracker/index.php?func=detail&aid=1009488&group_id=40071&atid=426963
- emake -j1 || die "failed to make"
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${P}-libusbversion.patch
}
src_test() {
- env LD_LIBRARY_PATH=./usr/lib/ ./usr/bin/ptpcam -l || die "failed test"
+ if hasq userpriv "${FEATURES}" || hasq sandbox "${FEATURES}" || hasq usersandbox "${FEATURES}";
+ then
+ einfo "Sorry cannot test with userpriv, usersandbox or sandbox features"
+ else
+ env LD_LIBRARY_PATH=./src/.libs/ ./ptpcam -l || die "failed test"
+ fi
}
src_install() {