1 |
commit: bc997e1fe5c259b699bb9b137f42c8be63dd9313 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 29 11:35:15 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 29 13:16:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc997e1f |
7 |
|
8 |
app-arch/afio: [QA] Minor touchups |
9 |
|
10 |
Bug: https://bugs.gentoo.org/429360 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
app-arch/afio/afio-2.5.1-r1.ebuild | 9 ++++----- |
14 |
.../afio/files/afio-2.5.1-fix-build-system.patch | 22 ++++++++++++++++++++++ |
15 |
app-arch/afio/metadata.xml | 12 ++++++------ |
16 |
3 files changed, 32 insertions(+), 11 deletions(-) |
17 |
|
18 |
diff --git a/app-arch/afio/afio-2.5.1-r1.ebuild b/app-arch/afio/afio-2.5.1-r1.ebuild |
19 |
index 0c3a74af973..a3e6e5c082e 100644 |
20 |
--- a/app-arch/afio/afio-2.5.1-r1.ebuild |
21 |
+++ b/app-arch/afio/afio-2.5.1-r1.ebuild |
22 |
@@ -13,10 +13,9 @@ LICENSE="Artistic LGPL-2" |
23 |
SLOT="0" |
24 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" |
25 |
|
26 |
-PATCHES=( "${FILESDIR}"/Makefile-r1.patch ) |
27 |
+PATCHES=( "${FILESDIR}"/${PN}-2.5.1-fix-build-system.patch ) |
28 |
|
29 |
-src_prepare() { |
30 |
- default |
31 |
+src_configure() { |
32 |
tc-export CC |
33 |
} |
34 |
|
35 |
@@ -27,7 +26,7 @@ src_install() { |
36 |
|
37 |
local i |
38 |
for i in {1..4}; do |
39 |
- docinto "script$i" |
40 |
- dodoc "script$i"/* |
41 |
+ docinto "script${i}" |
42 |
+ dodoc -r "script${i}"/. |
43 |
done |
44 |
} |
45 |
|
46 |
diff --git a/app-arch/afio/files/afio-2.5.1-fix-build-system.patch b/app-arch/afio/files/afio-2.5.1-fix-build-system.patch |
47 |
new file mode 100644 |
48 |
index 00000000000..5f3e8355c1a |
49 |
--- /dev/null |
50 |
+++ b/app-arch/afio/files/afio-2.5.1-fix-build-system.patch |
51 |
@@ -0,0 +1,22 @@ |
52 |
+--- a/Makefile |
53 |
++++ b/Makefile |
54 |
+@@ -71,15 +71,12 @@ |
55 |
+ MW= |
56 |
+ #MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations |
57 |
+ |
58 |
+-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} |
59 |
+- |
60 |
+-CC=gcc |
61 |
+- |
62 |
+-CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I |
63 |
+-LDFLAGS = |
64 |
++CC ?= gcc |
65 |
++CFLAGS += -Wall -Wstrict-prototypes |
66 |
++CPPFLAGS += ${LARGEFILEFLAGS} ${2} ${3} ${6} ${8} ${c} ${d} ${e2} ${f} ${g} |
67 |
+ |
68 |
+ afio : afio.o compfile.o exten.o match.o $M |
69 |
+- ${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio |
70 |
++ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ |
71 |
+ |
72 |
+ clean: |
73 |
+ rm -f *.o afio |
74 |
|
75 |
diff --git a/app-arch/afio/metadata.xml b/app-arch/afio/metadata.xml |
76 |
index b232df5209c..1d91069b9e1 100644 |
77 |
--- a/app-arch/afio/metadata.xml |
78 |
+++ b/app-arch/afio/metadata.xml |
79 |
@@ -3,12 +3,12 @@ |
80 |
<pkgmetadata> |
81 |
<!-- maintainer-needed --> |
82 |
<longdescription> |
83 |
-Afio makes cpio-format archives. It deals somewhat gracefully |
84 |
-with input data corruption, supports multi-volume archives during interactive |
85 |
-operation, and can make compressed archives that are much safer than compressed |
86 |
-tar or cpio archives. Afio is best used as an 'archive engine' in a backup |
87 |
-script. |
88 |
-</longdescription> |
89 |
+ Afio makes cpio-format archives. It deals somewhat gracefully |
90 |
+ with input data corruption, supports multi-volume archives during interactive |
91 |
+ operation, and can make compressed archives that are much safer than compressed |
92 |
+ tar or cpio archives. Afio is best used as an 'archive engine' in a backup |
93 |
+ script. |
94 |
+ </longdescription> |
95 |
<upstream> |
96 |
<remote-id type="freshmeat">afio</remote-id> |
97 |
</upstream> |