1 |
commit: 815909f0ea4fb03f9ce91e8738e84843c574bb50 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 22:18:15 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 22:33:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=815909f0 |
7 |
|
8 |
app-forensics/galleta: 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 |
.../galleta-20040505_p1-fix-build-system.patch | 12 ++++++++++++ |
14 |
app-forensics/galleta/galleta-20040505_p1.ebuild | 21 ++++++++++++++------- |
15 |
3 files changed, 37 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/app-forensics/galleta/files/galleta-20040505_p1-Wimplicit-function-declaration.patch b/app-forensics/galleta/files/galleta-20040505_p1-Wimplicit-function-declaration.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..396739d358f |
20 |
--- /dev/null |
21 |
+++ b/app-forensics/galleta/files/galleta-20040505_p1-Wimplicit-function-declaration.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/galleta.c |
24 |
++++ b/galleta.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 |
+ #define STRSIZE 1000 |
33 |
+ |
34 |
|
35 |
diff --git a/app-forensics/galleta/files/galleta-20040505_p1-fix-build-system.patch b/app-forensics/galleta/files/galleta-20040505_p1-fix-build-system.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..125643c894d |
38 |
--- /dev/null |
39 |
+++ b/app-forensics/galleta/files/galleta-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: galleta.c |
48 |
+- gcc -o galleta galleta.c -lm -lc;cp galleta ../bin |
49 |
++all: galleta |
50 |
+ |
51 |
+ installwin: galleta.c |
52 |
+ gcc -DCYGWIN -o galleta.exe galleta.c -lm -lc;cp galleta.exe ../bin |
53 |
|
54 |
diff --git a/app-forensics/galleta/galleta-20040505_p1.ebuild b/app-forensics/galleta/galleta-20040505_p1.ebuild |
55 |
index 890ad5ab0d3..9192b6bdb8c 100644 |
56 |
--- a/app-forensics/galleta/galleta-20040505_p1.ebuild |
57 |
+++ b/app-forensics/galleta/galleta-20040505_p1.ebuild |
58 |
@@ -1,25 +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="IE Cookie Parser" |
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 galleta galleta.c -lm -lc || die "failed to compile" |
88 |
+src_configure() { |
89 |
+ tc-export CC |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
- dodoc Readme.txt |
94 |
- dobin src/galleta |
95 |
+ dobin ${PN} |
96 |
+ dodoc ../{CHANGES,Readme.txt} |
97 |
} |