1 |
commit: da92b2be0f8d7d40b0da2573c2336bd9ca61c547 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 22:27:28 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:33:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da92b2be |
7 |
|
8 |
app-forensics/pasco: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
...co-20040505_p1-Wimplicit-function-declaration.patch | 10 ++++++++++ |
13 |
.../files/pasco-20040505_p1-fix-build-system.patch | 12 ++++++++++++ |
14 |
app-forensics/pasco/pasco-20040505_p1-r1.ebuild | 18 ++++++++++++------ |
15 |
3 files changed, 34 insertions(+), 6 deletions(-) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..22acc9edd9f |
20 |
--- /dev/null |
21 |
+++ b/app-forensics/pasco/files/pasco-20040505_p1-Wimplicit-function-declaration.patch |
22 |
@@ -0,0 +1,10 @@ |
23 |
+--- a/pasco.c |
24 |
++++ b/pasco.c |
25 |
+@@ -36,6 +36,7 @@ |
26 |
+ #include <stdio.h> |
27 |
+ #include <time.h> |
28 |
+ #include <math.h> |
29 |
++#include <string.h> |
30 |
+ |
31 |
+ // |
32 |
+ /* This is the default block size for an activity record */ |
33 |
|
34 |
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 |
35 |
new file mode 100644 |
36 |
index 00000000000..63a6102c8c1 |
37 |
--- /dev/null |
38 |
+++ b/app-forensics/pasco/files/pasco-20040505_p1-fix-build-system.patch |
39 |
@@ -0,0 +1,12 @@ |
40 |
+--- a/Makefile |
41 |
++++ b/Makefile |
42 |
+@@ -1,7 +1,6 @@ |
43 |
+-all: install |
44 |
++LDLIBS += -lm |
45 |
+ |
46 |
+-install: pasco.c |
47 |
+- gcc -o pasco pasco.c -lm -lc;cp pasco ../bin |
48 |
++all: pasco |
49 |
+ |
50 |
+ installwin: pasco.c |
51 |
+ gcc -DCYGWIN -o pasco.exe pasco.c -lm -lc;cp pasco.exe ../bin |
52 |
|
53 |
diff --git a/app-forensics/pasco/pasco-20040505_p1-r1.ebuild b/app-forensics/pasco/pasco-20040505_p1-r1.ebuild |
54 |
index a924a60da63..848aa78cff3 100644 |
55 |
--- a/app-forensics/pasco/pasco-20040505_p1-r1.ebuild |
56 |
+++ b/app-forensics/pasco/pasco-20040505_p1-r1.ebuild |
57 |
@@ -1,7 +1,7 @@ |
58 |
-# Copyright 1999-2012 Gentoo Foundation |
59 |
+# Copyright 1999-2017 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
|
62 |
-EAPI=5 |
63 |
+EAPI=6 |
64 |
|
65 |
inherit toolchain-funcs |
66 |
|
67 |
@@ -10,17 +10,23 @@ MY_P=${PN}_${PV/_p/_} |
68 |
DESCRIPTION="IE Activity Parser" |
69 |
HOMEPAGE="https://sourceforge.net/projects/odessa/" |
70 |
SRC_URI="mirror://sourceforge/odessa/${MY_P}.tar.gz" |
71 |
+ |
72 |
LICENSE="BSD" |
73 |
SLOT="0" |
74 |
-KEYWORDS="~amd64 ~ppc ~x86" |
75 |
+KEYWORDS="~amd64 ~ppc x86" |
76 |
IUSE="" |
77 |
|
78 |
-S="${WORKDIR}/${MY_P}/src" |
79 |
+S=${WORKDIR}/${MY_P}/src |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${P}-fix-build-system.patch |
82 |
+ "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch |
83 |
+) |
84 |
|
85 |
-src_compile() { |
86 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c -lm -lc || die "failed to compile" |
87 |
+src_configure() { |
88 |
+ tc-export CC |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
dobin ${PN} |
93 |
+ dodoc ../{CHANGES,Readme.txt} |
94 |
} |