blob: 5b0107cba63ec4de32064952f334ab042dd53d61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 1999-2004 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.1 2004/08/15 10:41:17 dragonheart Exp $
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"
IUSE=""
RDEPEND="dev-libs/libusb"
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_test() {
env LD_LIBRARY_PATH=./usr/lib/ ./usr/bin/ptpcam -l || die "failed test"
}
src_install() {
emake install DESTDIR=${D} || die
}
|