commit: da92b2be0f8d7d40b0da2573c2336bd9ca61c547
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 29 22:27:28 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 22:33:13 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da92b2be
app-forensics/pasco: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
...co-20040505_p1-Wimplicit-function-declaration.patch | 10 ++++++++++
.../files/pasco-20040505_p1-fix-build-system.patch | 12 ++++++++++++
app-forensics/pasco/pasco-20040505_p1-r1.ebuild | 18 ++++++++++++------
3 files changed, 34 insertions(+), 6 deletions(-)
diff --git
a/app-forensics/pasco/files/pasco-20040505_p1-Wimplicit-function-declaration.patch
b/app-forensics/pasco/files/pasco-20040505_p1-Wimplicit-function-declaration.patch
new file mode 100644
index 00000000000..22acc9edd9f
--- /dev/null
+++
b/app-forensics/pasco/files/pasco-20040505_p1-Wimplicit-function-declaration.patch
@@ -0,0 +1,10 @@
+--- a/pasco.c
++++ b/pasco.c
+@@ -36,6 +36,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <math.h>
++#include <string.h>
+
+ //
+ /* This is the default block size for an activity record */
diff --git a/app-forensics/pasco/files/pasco-20040505_p1-fix-build-system.patch
b/app-forensics/pasco/files/pasco-20040505_p1-fix-build-system.patch
new file mode 100644
index 00000000000..63a6102c8c1
--- /dev/null
+++ b/app-forensics/pasco/files/pasco-20040505_p1-fix-build-system.patch
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,6 @@
+-all: install
++LDLIBS += -lm
+
+-install: pasco.c
+- gcc -o pasco pasco.c -lm -lc;cp pasco ../bin
++all: pasco
+
+ installwin: pasco.c
+ gcc -DCYGWIN -o pasco.exe pasco.c -lm -lc;cp pasco.exe ../bin
diff --git a/app-forensics/pasco/pasco-20040505_p1-r1.ebuild
b/app-forensics/pasco/pasco-20040505_p1-r1.ebuild
index a924a60da63..848aa78cff3 100644
--- a/app-forensics/pasco/pasco-20040505_p1-r1.ebuild
+++ b/app-forensics/pasco/pasco-20040505_p1-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
inherit toolchain-funcs
@@ -10,17 +10,23 @@ MY_P=${PN}_${PV/_p/_}
DESCRIPTION="IE Activity Parser"
HOMEPAGE="https://sourceforge.net/projects/odessa/"
SRC_URI="mirror://sourceforge/odessa/${MY_P}.tar.gz"
+
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
IUSE=""
-S="${WORKDIR}/${MY_P}/src"
+S=${WORKDIR}/${MY_P}/src
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-build-system.patch
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+)
-src_compile() {
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c -lm -lc || die
"failed to compile"
+src_configure() {
+ tc-export CC
}
src_install() {
dobin ${PN}
+ dodoc ../{CHANGES,Readme.txt}
}