1 |
commit: 514b2eff38dccf12d64e421ec4c8cd34b76e3616 |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 29 13:00:06 2017 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 29 13:44:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=514b2eff |
7 |
|
8 |
net-misc/mico: add patch for gcc-6 (bug#594806) |
9 |
|
10 |
Thanks to Peter Levine for providing the link to a patch in GH PR #4788. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/4788 |
13 |
|
14 |
Package-Manager: portage-2.3.5 |
15 |
|
16 |
net-misc/mico/Manifest | 3 +- |
17 |
.../{mico-9999.ebuild => mico-2.3.13-r8.ebuild} | 56 ++++++++++++---------- |
18 |
net-misc/mico/mico-9999.ebuild | 45 +++++++++-------- |
19 |
3 files changed, 59 insertions(+), 45 deletions(-) |
20 |
|
21 |
diff --git a/net-misc/mico/Manifest b/net-misc/mico/Manifest |
22 |
index 77ce7c11525..2c31ae67614 100644 |
23 |
--- a/net-misc/mico/Manifest |
24 |
+++ b/net-misc/mico/Manifest |
25 |
@@ -1,3 +1,4 @@ |
26 |
DIST mico-2.3.13-gentoo-patches-0.3.tar.bz2 9547 SHA256 4d76e7e696ac4af60dc40ecc81d3a142cbec410c2e1b9155270a7865e71afca4 SHA512 1e22066313f3af495678094a5b83f502b080e645b7379bd6b860d71f69b7a02db19047d3f8433b04d3d1f0a2b41e56e480f217041381027638d2b84a373bef5d WHIRLPOOL fbfabcaafee1ca286697a3ae37c24f8451283683e1f1787f8df3c267b8e4b8da69c79817b82bec810852069e021f541db3f05f76feec6256243bb2ad70a41788 |
27 |
+DIST mico-2.3.13-gentoo-patches-20170529.tar.xz 15196 SHA256 9d616c90f1ef4db44709e393fd2ab74d1e17f7e65541900c3735c312376de681 SHA512 ea7cbf00b33ed5eaacc5418539562645cecefc6f2ee7929d58517f7775fa62ac07a26967cd84570410281930b7a4570302f4edc9a9cc76661a99a5f28bce37cf WHIRLPOOL 52494f75a92cfd3e06baf5074b17ce8776f120bb38c63ffea09be78ba95735d629098c2bc34a2289ff5c2ed383d697f450530b76b9f73919dcdacf8072765773 |
28 |
DIST mico-2.3.13.tar.gz 3269814 SHA256 a355fd0205440f0c8793b68d105b179942d883babc6b1fe69113707b88fe1d69 SHA512 b4c09b5a41e480b8211529776b83e84669e1e91ccba7a0d2d940834f217bc7f3d9ef74101dadc43778c6813b733ccfdae2b00eab2f0993b58193bb9f270e3895 WHIRLPOOL e8f5b92502a012e4f316ae341a25a0c24def7718f7a85fed7e24de5298d593b1a2af2fcb21e89d857e6da65d6b0765108eb3f77e820874d98047127d07734389 |
29 |
-DIST mico-9999-gentoo-patches-20120924.tar.bz2 11693 SHA256 054fb0347c67bcbff41b2fd42204c389f9c5fbd4d07fd014f2c356a428f72d32 SHA512 5a1a775c67494776094d228a02ff5546256f11c255dcda18b6fe7c08ac87d6d969540559c2876de571c2b1bf5b1fefa03ba3e6b6749c0589c725153463dc886a WHIRLPOOL 686e7600abb0b5e3f1247b446dc0240e33679a2da821cc8741fc0b7c86f4d289c1c7603c0fcd5dc47f19b7639b8ed0e011b265516c0eb0195a04e9780dba338d |
30 |
+DIST mico-9999-gentoo-patches-20170529.tar.xz 16716 SHA256 e5271dd2c8742b19fd89abb014bd02fa1a1a1acd17d1cf740f61127f0aafd367 SHA512 33361ab7a40fe897a48bf69fb33ffc3afa3da224a1589cfd7c4660deb00dcb9dd76dd2bc84ed968db6dd8a9e22aa493bb4b78713606675b6021f081eb56deb10 WHIRLPOOL 72b5777543e5d7f48cf0b64d4134fd33d6f29c3889281ccdecb9306d846af2f965138dd8093459c7bdb8b26a335c0bce3fab2d10282e59f6f441a45ac79742cf |
31 |
|
32 |
diff --git a/net-misc/mico/mico-9999.ebuild b/net-misc/mico/mico-2.3.13-r8.ebuild |
33 |
similarity index 75% |
34 |
copy from net-misc/mico/mico-9999.ebuild |
35 |
copy to net-misc/mico/mico-2.3.13-r8.ebuild |
36 |
index 604b3b1abdc..ec8a7b7a5d7 100644 |
37 |
--- a/net-misc/mico/mico-9999.ebuild |
38 |
+++ b/net-misc/mico/mico-2.3.13-r8.ebuild |
39 |
@@ -1,30 +1,32 @@ |
40 |
-# Copyright 1999-2015 Gentoo Foundation |
41 |
+# Copyright 1999-2017 Gentoo Foundation |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI="3" |
45 |
+EAPI="6" |
46 |
|
47 |
-inherit eutils flag-o-matic toolchain-funcs autotools |
48 |
+inherit flag-o-matic toolchain-funcs autotools |
49 |
+ |
50 |
+PATCH_VER=20170529 |
51 |
|
52 |
if [[ ${PV} == 9999 ]]; then |
53 |
EDARCS_REPOSITORY="http://mico.org/mico-darcs-repository" |
54 |
inherit darcs |
55 |
+ SRC_URI= |
56 |
+else |
57 |
+ SRC_URI="http://www.mico.org/${P}.tar.gz" |
58 |
fi |
59 |
|
60 |
-PATCH_VER=20120924 |
61 |
+if [[ -n ${PATCH_VER} ]]; then |
62 |
+ SRC_URI+=" https://dev.gentoo.org/~haubi/distfiles/${P}-gentoo-patches-${PATCH_VER}.tar.xz" |
63 |
+ PATCHES=${WORKDIR}/patches |
64 |
+else |
65 |
+ PATCHES= |
66 |
+fi |
67 |
|
68 |
DESCRIPTION="A freely available and fully compliant implementation of the CORBA standard" |
69 |
HOMEPAGE="http://www.mico.org/" |
70 |
-SRC_URI="http://www.mico.org/${P}.tar.gz" |
71 |
- |
72 |
-[[ ${PV} == 9999 ]] && |
73 |
- SRC_URI="" |
74 |
- |
75 |
-[[ -n ${PATCH_VER} ]] && |
76 |
- SRC_URI="${SRC_URI} https://dev.gentoo.org/~haubi/distfiles/${P}-gentoo-patches-${PATCH_VER}.tar.bz2" |
77 |
- |
78 |
LICENSE="GPL-2 LGPL-2" |
79 |
SLOT="0" |
80 |
-KEYWORDS="" |
81 |
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~sparc-solaris ~x86-winnt" |
82 |
IUSE="gtk postgres qt4 ssl tcl threads X" |
83 |
RESTRICT="test" #298101 |
84 |
|
85 |
@@ -33,9 +35,9 @@ RESTRICT="test" #298101 |
86 |
|
87 |
RDEPEND=" |
88 |
gtk? ( x11-libs/gtk+:2 ) |
89 |
- postgres? ( dev-db/postgresql ) |
90 |
+ postgres? ( dev-db/postgresql:* ) |
91 |
qt4? ( dev-qt/qtgui:4[qt3support] ) |
92 |
- ssl? ( dev-libs/openssl ) |
93 |
+ ssl? ( dev-libs/openssl:* ) |
94 |
tcl? ( dev-lang/tcl:0 ) |
95 |
X? ( x11-libs/libXt ) |
96 |
" |
97 |
@@ -49,17 +51,19 @@ if [[ ${PV} == 9999 ]]; then |
98 |
darcs_src_unpack |
99 |
default |
100 |
} |
101 |
+else |
102 |
+ S=${WORKDIR}/${PN} |
103 |
fi |
104 |
|
105 |
src_prepare() { |
106 |
- EPATCH_SUFFIX=patch epatch "${WORKDIR}"/patches |
107 |
+ default |
108 |
|
109 |
eautoreconf |
110 |
|
111 |
# cannot use big TOC (AIX only), gdb doesn't like it. |
112 |
# This assumes that the compiler (or -wrapper) uses |
113 |
# gcc flag '-mminimal-toc' for compilation. |
114 |
- sed -i -e 's/,-bbigtoc//' "${S}"/configure |
115 |
+ sed -i -e 's/,-bbigtoc//' "${S}"/configure || die |
116 |
|
117 |
if use qt4; then |
118 |
sed -i -e "s, -lqt\", $(pkg-config --libs Qt3Support)\"," configure || |
119 |
@@ -70,6 +74,11 @@ src_prepare() { |
120 |
src_configure() { |
121 |
tc-export CC CXX |
122 |
|
123 |
+ if use gtk && [[ -n ${PATCH_VER} ]]; then |
124 |
+ # need gtk-1 wrapper for gtk-2 |
125 |
+ export PATH="${WORKDIR}"/helpers:${PATH} |
126 |
+ fi |
127 |
+ |
128 |
# Don't know which version of JavaCUP would suffice, but there is no |
129 |
# configure argument to disable checking for JavaCUP. |
130 |
# So we override the configure check to not find 'javac'. |
131 |
@@ -92,7 +101,8 @@ src_configure() { |
132 |
|
133 |
# '--without-*' or '--with-*=no' does not disable some features, |
134 |
# the value needs to be empty instead. |
135 |
- # This applies to: pgsql, qt, tcl, bluetooth. |
136 |
+ # This applies to: gtk, pgsql, qt, tcl, bluetooth. |
137 |
+ myconf --with-gtk=$( use gtk && echo "${EPREFIX}"/usr) |
138 |
myconf --with-pgsql=$(use postgres && echo "${EPREFIX}"/usr) |
139 |
myconf --with-qt=$( use qt4 && echo "${EPREFIX}"/usr) |
140 |
myconf --with-tcl=$( use tcl && echo "${EPREFIX}"/usr) |
141 |
@@ -101,8 +111,6 @@ src_configure() { |
142 |
myconf --disable-wireless |
143 |
# But --without-x works. |
144 |
myconf $(use_with X x "${EPREFIX}"/usr) |
145 |
- # Same for gtk after patch 013, searches for gtk release. |
146 |
- myconf $(use_with gtk gtk 2) |
147 |
|
148 |
# http://www.mico.org/pipermail/mico-devel/2009-April/010285.html |
149 |
[[ ${CHOST} == *-hpux* ]] && append-cppflags -D_XOPEN_SOURCE_EXTENDED |
150 |
@@ -120,15 +128,15 @@ src_configure() { |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
- emake INSTDIR="${ED}"usr SHARED_INSTDIR="${ED}"usr install LDCONFIG=: || die "install failed" |
155 |
+ emake INSTDIR="${ED}"usr SHARED_INSTDIR="${ED}"usr install LDCONFIG=: |
156 |
if [[ $(get_libdir) != lib ]]; then #500744 |
157 |
mv "${ED}"usr/lib "${ED}"usr/$(get_libdir) || die |
158 |
fi |
159 |
|
160 |
- dodir /usr/share || die |
161 |
+ dodir /usr/share |
162 |
mv "${ED}"usr/man "${ED}"usr/share || die |
163 |
- dodir /usr/share/doc/${PF} || die |
164 |
+ dodir /usr/share/doc/${PF} |
165 |
mv "${ED}"usr/doc "${ED}"usr/share/doc/${PF} || die |
166 |
|
167 |
- dodoc BUGS CHANGES* CONVERT README* ROADMAP TODO VERSION WTODO || die |
168 |
+ dodoc BUGS CHANGES* CONVERT FAQ README* ROADMAP TODO VERSION WTODO |
169 |
} |
170 |
|
171 |
diff --git a/net-misc/mico/mico-9999.ebuild b/net-misc/mico/mico-9999.ebuild |
172 |
index 604b3b1abdc..f9bcd3c55f5 100644 |
173 |
--- a/net-misc/mico/mico-9999.ebuild |
174 |
+++ b/net-misc/mico/mico-9999.ebuild |
175 |
@@ -1,27 +1,29 @@ |
176 |
-# Copyright 1999-2015 Gentoo Foundation |
177 |
+# Copyright 1999-2017 Gentoo Foundation |
178 |
# Distributed under the terms of the GNU General Public License v2 |
179 |
|
180 |
-EAPI="3" |
181 |
+EAPI="6" |
182 |
|
183 |
-inherit eutils flag-o-matic toolchain-funcs autotools |
184 |
+inherit flag-o-matic toolchain-funcs autotools |
185 |
+ |
186 |
+PATCH_VER=20170529 |
187 |
|
188 |
if [[ ${PV} == 9999 ]]; then |
189 |
EDARCS_REPOSITORY="http://mico.org/mico-darcs-repository" |
190 |
inherit darcs |
191 |
+ SRC_URI= |
192 |
+else |
193 |
+ SRC_URI="http://www.mico.org/${P}.tar.gz" |
194 |
fi |
195 |
|
196 |
-PATCH_VER=20120924 |
197 |
+if [[ -n ${PATCH_VER} ]]; then |
198 |
+ SRC_URI+=" https://dev.gentoo.org/~haubi/distfiles/${P}-gentoo-patches-${PATCH_VER}.tar.xz" |
199 |
+ PATCHES=${WORKDIR}/patches |
200 |
+else |
201 |
+ PATCHES= |
202 |
+fi |
203 |
|
204 |
DESCRIPTION="A freely available and fully compliant implementation of the CORBA standard" |
205 |
HOMEPAGE="http://www.mico.org/" |
206 |
-SRC_URI="http://www.mico.org/${P}.tar.gz" |
207 |
- |
208 |
-[[ ${PV} == 9999 ]] && |
209 |
- SRC_URI="" |
210 |
- |
211 |
-[[ -n ${PATCH_VER} ]] && |
212 |
- SRC_URI="${SRC_URI} https://dev.gentoo.org/~haubi/distfiles/${P}-gentoo-patches-${PATCH_VER}.tar.bz2" |
213 |
- |
214 |
LICENSE="GPL-2 LGPL-2" |
215 |
SLOT="0" |
216 |
KEYWORDS="" |
217 |
@@ -33,9 +35,9 @@ RESTRICT="test" #298101 |
218 |
|
219 |
RDEPEND=" |
220 |
gtk? ( x11-libs/gtk+:2 ) |
221 |
- postgres? ( dev-db/postgresql ) |
222 |
+ postgres? ( dev-db/postgresql:* ) |
223 |
qt4? ( dev-qt/qtgui:4[qt3support] ) |
224 |
- ssl? ( dev-libs/openssl ) |
225 |
+ ssl? ( dev-libs/openssl:* ) |
226 |
tcl? ( dev-lang/tcl:0 ) |
227 |
X? ( x11-libs/libXt ) |
228 |
" |
229 |
@@ -49,17 +51,20 @@ if [[ ${PV} == 9999 ]]; then |
230 |
darcs_src_unpack |
231 |
default |
232 |
} |
233 |
+else |
234 |
+ S=${WORKDIR}/${PN} |
235 |
fi |
236 |
|
237 |
src_prepare() { |
238 |
- EPATCH_SUFFIX=patch epatch "${WORKDIR}"/patches |
239 |
+ default |
240 |
|
241 |
+ mv configure.in configure.ac || die #426262 |
242 |
eautoreconf |
243 |
|
244 |
# cannot use big TOC (AIX only), gdb doesn't like it. |
245 |
# This assumes that the compiler (or -wrapper) uses |
246 |
# gcc flag '-mminimal-toc' for compilation. |
247 |
- sed -i -e 's/,-bbigtoc//' "${S}"/configure |
248 |
+ sed -i -e 's/,-bbigtoc//' "${S}"/configure || die |
249 |
|
250 |
if use qt4; then |
251 |
sed -i -e "s, -lqt\", $(pkg-config --libs Qt3Support)\"," configure || |
252 |
@@ -120,15 +125,15 @@ src_configure() { |
253 |
} |
254 |
|
255 |
src_install() { |
256 |
- emake INSTDIR="${ED}"usr SHARED_INSTDIR="${ED}"usr install LDCONFIG=: || die "install failed" |
257 |
+ emake INSTDIR="${ED}"usr SHARED_INSTDIR="${ED}"usr install LDCONFIG=: |
258 |
if [[ $(get_libdir) != lib ]]; then #500744 |
259 |
mv "${ED}"usr/lib "${ED}"usr/$(get_libdir) || die |
260 |
fi |
261 |
|
262 |
- dodir /usr/share || die |
263 |
+ dodir /usr/share |
264 |
mv "${ED}"usr/man "${ED}"usr/share || die |
265 |
- dodir /usr/share/doc/${PF} || die |
266 |
+ dodir /usr/share/doc/${PF} |
267 |
mv "${ED}"usr/doc "${ED}"usr/share/doc/${PF} || die |
268 |
|
269 |
- dodoc BUGS CHANGES* CONVERT README* ROADMAP TODO VERSION WTODO || die |
270 |
+ dodoc BUGS CHANGES* CONVERT README* ROADMAP TODO VERSION WTODO |
271 |
} |