Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-misc/wsmake/, www-misc/wsmake/files/
Date: Mon, 27 Nov 2017 11:24:22
Message-Id: 1511781627.3418e2f50b631976d5943802e112e9a5be8c4f8c.soap@gentoo
1 commit: 3418e2f50b631976d5943802e112e9a5be8c4f8c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 10:41:00 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 11:20:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3418e2f5
7
8 www-misc/wsmake: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 www-misc/wsmake/Manifest | 2 +-
13 www-misc/wsmake/files/wsmake-0.6.4-bv.diff | 4 +--
14 .../files/wsmake-0.6.4-fix-const-va_list.patch | 29 +++++++++++++++
15 www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch | 12 +++----
16 www-misc/wsmake/wsmake-0.6.4.ebuild | 42 ++++++++++++----------
17 5 files changed, 61 insertions(+), 28 deletions(-)
18
19 diff --git a/www-misc/wsmake/Manifest b/www-misc/wsmake/Manifest
20 index 9910f5607ec..8b30b6ff26f 100644
21 --- a/www-misc/wsmake/Manifest
22 +++ b/www-misc/wsmake/Manifest
23 @@ -1 +1 @@
24 -DIST wsmake-0.6.4.tar.bz2 351688 SHA256 884ca4e635d454776888526cf94f6af6639f76b317aa10f9f6d651d9208188d6 SHA512 0f5d125053222c624f9c19f4147f0d97311acb11050e09112ae7b13175ea64d0ba75942c5772e2ffe12d2913cea370ed663d7cb649eef67e0f8379775a3459c4 WHIRLPOOL a72eae2811936ed27cbdc63fec9bbf25999dbfdc95d0cdf81e357fc5bb130b10571332520e6aae2537707c0a40d08aff6995276487eb4d0b66e70014a44db5ab
25 +DIST wsmake-0.6.4.tar.bz2 351688 BLAKE2B 4e810b1b5f697bc8a7bbb27a4023ff50f90fbcab5f9bf7890277ebb95d5fbf90cfaad51f181c4a76bd532f802fd4eaf07dbab6757a15ee242f80dbef19ce0b08 SHA512 0f5d125053222c624f9c19f4147f0d97311acb11050e09112ae7b13175ea64d0ba75942c5772e2ffe12d2913cea370ed663d7cb649eef67e0f8379775a3459c4
26
27 diff --git a/www-misc/wsmake/files/wsmake-0.6.4-bv.diff b/www-misc/wsmake/files/wsmake-0.6.4-bv.diff
28 index d10aa5769c2..15cdf05f5d2 100644
29 --- a/www-misc/wsmake/files/wsmake-0.6.4-bv.diff
30 +++ b/www-misc/wsmake/files/wsmake-0.6.4-bv.diff
31 @@ -1,5 +1,5 @@
32 ---- libwsmake/wsUtil.cpp.orig Sat Sep 1 22:09:13 2001
33 -+++ libwsmake/wsUtil.cpp Tue Sep 3 20:19:04 2002
34 +--- a/libwsmake/wsUtil.cpp
35 ++++ b/libwsmake/wsUtil.cpp
36 @@ -714,7 +714,8 @@
37 if(__wsmake_quiet) return;
38
39
40 diff --git a/www-misc/wsmake/files/wsmake-0.6.4-fix-const-va_list.patch b/www-misc/wsmake/files/wsmake-0.6.4-fix-const-va_list.patch
41 new file mode 100644
42 index 00000000000..420bbb61b03
43 --- /dev/null
44 +++ b/www-misc/wsmake/files/wsmake-0.6.4-fix-const-va_list.patch
45 @@ -0,0 +1,29 @@
46 +--- a/libwsmake/wsUtil.cpp
47 ++++ b/libwsmake/wsUtil.cpp
48 +@@ -710,13 +710,13 @@
49 + }
50 + }
51 +
52 +-void std::__wsmake_print_it(FILE *out, const char *output, const va_list *ap)
53 ++void std::__wsmake_print_it(FILE *out, const char *output, va_list *ap)
54 + {
55 + if(__wsmake_quiet) return;
56 +
57 + vfprintf(out,output,*ap);
58 + //BV: this does not compile: va_end((void*&)*ap);
59 +- va_end((char*&)*ap);
60 ++ va_end(*ap);
61 + }
62 +
63 + #ifdef DEBUG
64 +--- a/libwsmake/wsUtil.h
65 ++++ b/libwsmake/wsUtil.h
66 +@@ -77,7 +77,7 @@
67 + void __wsmake_print_error(const char *, ...);
68 + void __wsmake_print(const char *, ...);
69 + void __wsmake_print(int, const char *, ...);
70 +- void __wsmake_print_it(FILE *, const char *, const va_list *);
71 ++ void __wsmake_print_it(FILE *, const char *, va_list *);
72 + }
73 +
74 + #endif /* __WSUTIL_H__ */
75
76 diff --git a/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch b/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch
77 index 0ecfe62003f..9028c069554 100644
78 --- a/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch
79 +++ b/www-misc/wsmake/files/wsmake-0.6.4-gcc43.patch
80 @@ -1,8 +1,8 @@
81 https://bugs.gentoo.org/show_bug.cgi?id=251745
82 https://sourceforge.net/tracker/index.php?func=detail&aid=2520894&group_id=5982&atid=105982
83
84 ---- libwsmake/wsSubTag.cpp
85 -+++ libwsmake/wsSubTag.cpp.new
86 +--- a/libwsmake/wsSubTag.cpp
87 ++++ b/libwsmake/wsSubTag.cpp
88 @@ -22,6 +22,7 @@
89 ***********************************************************************/
90 #include <cstdio>
91 @@ -11,8 +11,8 @@ https://sourceforge.net/tracker/index.php?func=detail&aid=2520894&group_id=5982&
92
93 #include <unistd.h>
94 #ifdef HAVE_SYS_WAIT_H
95 ---- libwsmake/wsWebPage.cpp
96 -+++ libwsmake/wsWebPage.cpp.new
97 +--- a/libwsmake/wsWebPage.cpp
98 ++++ b/libwsmake/wsWebPage.cpp
99 @@ -23,6 +23,7 @@
100 #include <cassert>
101 #include <cerrno>
102 @@ -21,8 +21,8 @@ https://sourceforge.net/tracker/index.php?func=detail&aid=2520894&group_id=5982&
103
104 #include "wsmake.h"
105
106 ---- libwsmake/wsUtil.cpp
107 -+++ libwsmake/wsUtil.cpp.new
108 +--- a/libwsmake/wsUtil.cpp
109 ++++ b/libwsmake/wsUtil.cpp
110 @@ -28,6 +28,7 @@
111 #include <cassert>
112 #include <cerrno>
113
114 diff --git a/www-misc/wsmake/wsmake-0.6.4.ebuild b/www-misc/wsmake/wsmake-0.6.4.ebuild
115 index 7299d6dc862..83c59948894 100644
116 --- a/www-misc/wsmake/wsmake-0.6.4.ebuild
117 +++ b/www-misc/wsmake/wsmake-0.6.4.ebuild
118 @@ -1,33 +1,37 @@
119 -# Copyright 1999-2009 Gentoo Foundation
120 +# Copyright 1999-2017 Gentoo Foundation
121 # Distributed under the terms of the GNU General Public License v2
122
123 -inherit eutils
124 +EAPI=6
125
126 DESCRIPTION="Website Pre-processor"
127 HOMEPAGE="http://www.wsmake.org/"
128 -SRC_URI="http://ftp.wsmake.org/pub/wsmake6/stable/wsmake-0.6.4.tar.bz2"
129 +SRC_URI="http://ftp.wsmake.org/pub/wsmake6/stable/${P}.tar.bz2"
130
131 -KEYWORDS="x86"
132 LICENSE="GPL-2 Artistic"
133 SLOT="0"
134 -IUSE=""
135 +KEYWORDS="x86"
136 +IUSE="examples"
137
138 -src_unpack () {
139 - unpack ${A} && cd "${S}"
140 - epatch "${FILESDIR}"/${P}-bv.diff
141 - epatch "${FILESDIR}"/${P}-gcc43.patch # 251745
142 -}
143 +PATCHES=(
144 + "${FILESDIR}"/${P}-bv.diff
145 + "${FILESDIR}"/${P}-gcc43.patch # 251745
146 + "${FILESDIR}"/${P}-fix-const-va_list.patch
147 +)
148
149 -src_compile () {
150 - econf || die "econf failed"
151 - emake || die "emake failed"
152 - cd doc
153 +src_unpack() {
154 + default
155 +
156 + cd "${S}"/doc || die
157 tar -cf examples.tar examples || die
158 }
159
160 -src_install () {
161 - emake DESTDIR="${D}" install || die "emake install failed"
162 - dodoc AUTHORS COPYING ChangeLog* DEVELOPERS LICENSE NEWS README TODO
163 - cd doc
164 - dodoc manual.txt examples.tar
165 +src_install() {
166 + default
167 + dodoc doc/manual.txt
168 +
169 + if use examples; then
170 + rm -r doc/examples/CVS || die
171 + dodoc -r doc/examples
172 + docompress -x /usr/share/doc/${PF}/examples
173 + fi
174 }