diff options
author | Marcelo Góes <vanquirius@gentoo.org> | 2006-01-07 22:22:31 +0000 |
---|---|---|
committer | Marcelo Góes <vanquirius@gentoo.org> | 2006-01-07 22:22:31 +0000 |
commit | 2c68ded86c69eac77001a102b404123a7581bde2 (patch) | |
tree | 8e209d93370c5faa7d80d378486bce623c45122f /media-libs/libptp2/libptp2-1.1.0.ebuild | |
parent | Fixed ebuild header. (diff) | |
download | gentoo-2-2c68ded86c69eac77001a102b404123a7581bde2.tar.gz gentoo-2-2c68ded86c69eac77001a102b404123a7581bde2.tar.bz2 gentoo-2-2c68ded86c69eac77001a102b404123a7581bde2.zip |
1.1.0 version bump. Ported existing patches, added gcc-4.1 patch. It should fix bug 118161.
(Portage version: 2.0.53)
Diffstat (limited to 'media-libs/libptp2/libptp2-1.1.0.ebuild')
-rw-r--r-- | media-libs/libptp2/libptp2-1.1.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-libs/libptp2/libptp2-1.1.0.ebuild b/media-libs/libptp2/libptp2-1.1.0.ebuild new file mode 100644 index 000000000000..dd6fd093c714 --- /dev/null +++ b/media-libs/libptp2/libptp2-1.1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libptp2/libptp2-1.1.0.ebuild,v 1.1 2006/01/07 22:22:31 vanquirius 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="~ppc ~ppc64 ~x86" +IUSE="" +RDEPEND=">=dev-libs/libusb-0.1.8" +DEPEND="${RDEPEND} + sys-apps/gawk + sys-apps/grep" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.1.0-libusbversion.patch + epatch "${FILESDIR}"/${PN}-1.1.0-parallel.patch + epatch "${FILESDIR}"/${PN}-1.1.0-gcc41.patch +} + +src_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/ ./src/ptpcam -l || die "failed test" + fi +} + +src_install() { + make DESTDIR="${D}" install || die +} |