1 |
commit: 5307dec32bba1d6cc56176de8d84572ba103e992 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 22:09:50 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:33:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5307dec3 |
7 |
|
8 |
app-forensics/rifiuti: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
...-20040505_p1-Wimplicit-function-declaration.patch | 11 +++++++++++ |
13 |
.../files/rifiuti-20040505_p1-fix-build-system.patch | 12 ++++++++++++ |
14 |
app-forensics/rifiuti/rifiuti-20040505_p1.ebuild | 20 ++++++++++++++------ |
15 |
3 files changed, 37 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch b/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..1ac3207a7c4 |
20 |
--- /dev/null |
21 |
+++ b/app-forensics/rifiuti/files/rifiuti-20040505_p1-Wimplicit-function-declaration.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/rifiuti.c |
24 |
++++ b/rifiuti.c |
25 |
+@@ -35,6 +35,8 @@ |
26 |
+ #include <stdio.h> |
27 |
+ #include <time.h> |
28 |
+ #include <math.h> |
29 |
++#include <stdlib.h> |
30 |
++#include <string.h> |
31 |
+ |
32 |
+ #ifdef CYGWIN |
33 |
+ ssize_t pread( int d, void *buf, size_t nbytes, off_t offset) { |
34 |
|
35 |
diff --git a/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch b/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..a1c45204791 |
38 |
--- /dev/null |
39 |
+++ b/app-forensics/rifiuti/files/rifiuti-20040505_p1-fix-build-system.patch |
40 |
@@ -0,0 +1,12 @@ |
41 |
+--- a/Makefile |
42 |
++++ b/Makefile |
43 |
+@@ -1,7 +1,6 @@ |
44 |
+-all: install |
45 |
++LDLIBS += -lm |
46 |
+ |
47 |
+-install: rifiuti.c |
48 |
+- gcc -o rifiuti rifiuti.c -lm -lc;cp rifiuti ../bin |
49 |
++all: rifiuti |
50 |
+ |
51 |
+ installwin: rifiuti.c |
52 |
+ gcc -DCYGWIN -o rifiuti.exe rifiuti.c -lm -lc;cp rifiuti.exe ../bin |
53 |
|
54 |
diff --git a/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild b/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild |
55 |
index f1e9f1a4f25..bdb5212fbcc 100644 |
56 |
--- a/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild |
57 |
+++ b/app-forensics/rifiuti/rifiuti-20040505_p1.ebuild |
58 |
@@ -1,24 +1,32 @@ |
59 |
-# Copyright 1999-2012 Gentoo Foundation |
60 |
+# Copyright 1999-2017 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
|
63 |
+EAPI=6 |
64 |
+ |
65 |
inherit toolchain-funcs |
66 |
|
67 |
MY_P=${PN}_${PV/_p/_} |
68 |
+ |
69 |
DESCRIPTION="Recycle Bin Analyzer" |
70 |
HOMEPAGE="https://sourceforge.net/projects/odessa/" |
71 |
SRC_URI="mirror://sourceforge/odessa/${MY_P}.tar.gz" |
72 |
+ |
73 |
LICENSE="BSD" |
74 |
SLOT="0" |
75 |
KEYWORDS="~amd64 ~ppc x86" |
76 |
IUSE="" |
77 |
|
78 |
-S=${WORKDIR}/${MY_P} |
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 |
- cd src |
87 |
- $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o rifiuti rifiuti.c -lm -lc || die "failed to compile" |
88 |
+src_configure() { |
89 |
+ tc-export CC |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
- dobin src/rifiuti |
94 |
+ dobin ${PN} |
95 |
+ dodoc ../{CHANGES,Readme.txt} |
96 |
} |