---- libptp2-1.1.10/configure.in.orig 2007-12-28 10:28:36.000000000 +1100
-+++ libptp2-1.1.10/configure.in 2007-12-28 10:36:14.000000000 +1100
+--- a/configure.in 2007-12-28 10:28:36.000000000 +1100
++++ b/configure.in 2007-12-28 10:36:14.000000000 +1100
@@ -25,6 +25,10 @@
# Checks for programs.
---- libptp2-1.1.10.orig/src/Makefile.am 2005-11-01 02:39:40.000000000 +1100
-+++ libptp2-1.1.10/src/Makefile.am 2007-12-28 09:51:01.000000000 +1100
+--- a/src/Makefile.am 2005-11-01 02:39:40.000000000 +1100
++++ b/src/Makefile.am 2007-12-28 09:51:01.000000000 +1100
@@ -17,7 +17,7 @@
else
ptpcam_SOURCES = ptpcam.c ptpcam.h
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
-inherit autotools eutils
+EAPI=6
+inherit autotools
DESCRIPTION="Library and client to communicate with cameras via PTP"
HOMEPAGE="https://sourceforge.net/projects/libptp/"
RDEPEND="virtual/libusb:0"
DEPEND="${RDEPEND}"
-src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-makefile.patch \
- "${FILESDIR}"/${P}-configure.patch
+PATCHES=(
+ "${FILESDIR}/${P}-makefile.patch"
+ "${FILESDIR}/${P}-configure.patch"
+)
+src_prepare() {
+ default
AT_M4DIR="m4" eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die
+ default
}