Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/mingw64-runtime/
Date: Wed, 30 Sep 2020 18:28:31
Message-Id: 1601490504.bdb3e681f3c38257eed614c89f3a699a9909696b.slyfox@gentoo
1 commit: bdb3e681f3c38257eed614c89f3a699a9909696b
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 30 18:28:18 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 30 18:28:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb3e681
7
8 dev-util/mingw64-runtime: drop old
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-util/mingw64-runtime/Manifest | 1 -
14 dev-util/mingw64-runtime/metadata.xml | 1 -
15 .../mingw64-runtime-6.0.0-r3.ebuild | 115 ---------------------
16 .../mingw64-runtime/mingw64-runtime-7.0.0.ebuild | 114 --------------------
17 4 files changed, 231 deletions(-)
18
19 diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest
20 index 59c54d2ec96..6f80cb79411 100644
21 --- a/dev-util/mingw64-runtime/Manifest
22 +++ b/dev-util/mingw64-runtime/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST mingw-w64-v6.0.0.tar.bz2 9045653 BLAKE2B 8a54dca2d06c92ab968a93240996d07ab3b1ed4652555a48b7581c477856d5784ed192c578d78186e171e400bd18b4de3c6cafbdd96109367ad13c37792015c1 SHA512 e3d3663e0cb33a16f90b1a33e81b5a30d26f7e34270b14e865c10068f2a2d32da9ef8cbbb0c3fed9c71429ae11c82152ff3b87d81558929b2a4993dc99cfc11e
25 DIST mingw-w64-v7.0.0.tar.bz2 9071231 BLAKE2B da00794ec456ede5913a565248c79255407c058469cb7338cf81b8d03c1e39f4189016b01734b786c0ad8f18166a24fdb95ca72edc954f31151e5d3aa2b2a899 SHA512 30e5b2824a24eeb99ab519e3fc134cc9a7f04ee8b853bc8d66a13d1ab74144bf78b93e162bfe6de2a5e61f63c0e620a933b260b02d019cd68cc4b78bd36c67fd
26 DIST mingw-w64-v8.0.0.tar.bz2 9370799 BLAKE2B ec65191722f6f2ddbb93488ea4c4c21e22fb5ef777ef293d65d13de1057d96c9105a4a4936999d4babbd8fdfc52ed14675f1c5fbc630524df28805e0f66b1a2b SHA512 cefcc86ac3e6337c88ed224ab4692abbd5eb543ce78fb6c5462198a85f36c9274a0a1df0a0bebd182137fd527c15831f9237c782711a85f32e77d9104b28359e
27
28 diff --git a/dev-util/mingw64-runtime/metadata.xml b/dev-util/mingw64-runtime/metadata.xml
29 index df0beeaf2e9..1b348ca856b 100644
30 --- a/dev-util/mingw64-runtime/metadata.xml
31 +++ b/dev-util/mingw64-runtime/metadata.xml
32 @@ -8,7 +8,6 @@
33 <use>
34 <flag name="idl">Install idl files.</flag>
35 <flag name="libraries">Build extra libraries: mangle, pseh, winpthreads.</flag>
36 - <flag name="secure-api">Expose secure API (*_s function) by default.</flag>
37 <flag name="tools">Build extra tools: gendef, genidl.</flag>
38 </use>
39 <upstream>
40
41 diff --git a/dev-util/mingw64-runtime/mingw64-runtime-6.0.0-r3.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-6.0.0-r3.ebuild
42 deleted file mode 100644
43 index a3d1f047767..00000000000
44 --- a/dev-util/mingw64-runtime/mingw64-runtime-6.0.0-r3.ebuild
45 +++ /dev/null
46 @@ -1,115 +0,0 @@
47 -# Copyright 1999-2020 Gentoo Authors
48 -# Distributed under the terms of the GNU General Public License v2
49 -
50 -EAPI=6
51 -
52 -export CBUILD=${CBUILD:-${CHOST}}
53 -export CTARGET=${CTARGET:-${CHOST}}
54 -if [[ ${CTARGET} == ${CHOST} ]] ; then
55 - if [[ ${CATEGORY} == cross-* ]] ; then
56 - export CTARGET=${CATEGORY#cross-}
57 - fi
58 -fi
59 -
60 -inherit autotools flag-o-matic eutils toolchain-funcs
61 -
62 -DESCRIPTION="Free Win64 runtime and import library definitions"
63 -HOMEPAGE="http://mingw-w64.sourceforge.net/"
64 -SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
65 -
66 -LICENSE="BSD"
67 -SLOT="0"
68 -KEYWORDS="~amd64 ~x86"
69 -# USE=libraries needs working stage2 compiler: bug #665512
70 -IUSE="headers-only idl libraries +secure-api tools"
71 -RESTRICT="strip"
72 -
73 -S="${WORKDIR}/mingw-w64-v${PV}"
74 -
75 -is_crosscompile() {
76 - [[ ${CHOST} != ${CTARGET} ]]
77 -}
78 -just_headers() {
79 - use headers-only
80 -}
81 -alt_prefix() {
82 - is_crosscompile && echo /usr/${CTARGET}
83 -}
84 -crt_with() {
85 - just_headers && echo --without-$1 || echo --with-$1
86 -}
87 -crt_use_enable() {
88 - just_headers && echo --without-$2 || use_enable "$@"
89 -}
90 -crt_use_with() {
91 - just_headers && echo --without-$2 || use_with "$@"
92 -}
93 -
94 -pkg_setup() {
95 - if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
96 - die "Invalid configuration"
97 - fi
98 -}
99 -
100 -src_configure() {
101 - CHOST=${CTARGET} strip-unsupported-flags
102 - # Normally mingw-64 does not use dynamic linker.
103 - # But at configure time it uses $LDFLAGS.
104 - # When default -Wl,--hash-style=gnu is passed
105 - # __CTORS_LIST__ / __DTORS_LIST__ is mis-detected
106 - # for target ld and binaries crash at shutdown.
107 - filter-ldflags '-Wl,--hash-style=*'
108 -
109 - if ! just_headers; then
110 - mkdir "${WORKDIR}/headers"
111 - pushd "${WORKDIR}/headers" > /dev/null
112 - CHOST=${CTARGET} "${S}/configure" \
113 - --prefix="${T}/tmproot" \
114 - --with-headers \
115 - --without-crt \
116 - || die
117 - popd > /dev/null
118 - append-cppflags "-I${T}/tmproot/include"
119 - fi
120 -
121 - # By default configure tries to set --sysroot=${prefix}. We disable
122 - # this behaviour with --with-sysroot=no to use gcc's sysroot default.
123 - # That way we can cross-build mingw64-runtime with cross-emerge.
124 - local prefix="${EPREFIX}"$(alt_prefix)/usr
125 - CHOST=${CTARGET} econf \
126 - --with-sysroot=no \
127 - --prefix="${prefix}" \
128 - --libdir="${prefix}"/lib \
129 - --with-headers \
130 - --enable-sdk \
131 - $(crt_with crt) \
132 - $(crt_use_enable idl idl) \
133 - $(crt_use_with libraries libraries) \
134 - $(crt_use_with tools tools) \
135 - $(use_enable secure-api) \
136 - $(
137 - $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
138 - && echo --disable-lib32 --enable-lib64 \
139 - || echo --enable-lib32 --disable-lib64
140 - )
141 -}
142 -
143 -src_compile() {
144 - if ! just_headers; then
145 - emake -C "${WORKDIR}/headers" install
146 - fi
147 - default
148 -}
149 -
150 -src_install() {
151 - default
152 -
153 - if is_crosscompile ; then
154 - # gcc is configured to look at specific hard-coded paths for mingw #419601
155 - dosym usr /usr/${CTARGET}/mingw
156 - dosym usr /usr/${CTARGET}/${CTARGET}
157 - dosym usr/include /usr/${CTARGET}/sys-include
158 - fi
159 -
160 - rm -rf "${ED}/usr/share"
161 -}
162
163 diff --git a/dev-util/mingw64-runtime/mingw64-runtime-7.0.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-7.0.0.ebuild
164 deleted file mode 100644
165 index 0be51c7d3e6..00000000000
166 --- a/dev-util/mingw64-runtime/mingw64-runtime-7.0.0.ebuild
167 +++ /dev/null
168 @@ -1,114 +0,0 @@
169 -# Copyright 1999-2020 Gentoo Authors
170 -# Distributed under the terms of the GNU General Public License v2
171 -
172 -EAPI=7
173 -
174 -export CBUILD=${CBUILD:-${CHOST}}
175 -export CTARGET=${CTARGET:-${CHOST}}
176 -if [[ ${CTARGET} == ${CHOST} ]] ; then
177 - if [[ ${CATEGORY} == cross-* ]] ; then
178 - export CTARGET=${CATEGORY#cross-}
179 - fi
180 -fi
181 -
182 -inherit autotools flag-o-matic eutils toolchain-funcs
183 -
184 -DESCRIPTION="Free Win64 runtime and import library definitions"
185 -HOMEPAGE="http://mingw-w64.sourceforge.net/"
186 -SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
187 -
188 -LICENSE="BSD"
189 -SLOT="0"
190 -KEYWORDS="~amd64 ~x86"
191 -# USE=libraries needs working stage2 compiler: bug #665512
192 -IUSE="headers-only idl libraries tools"
193 -RESTRICT="strip"
194 -
195 -S="${WORKDIR}/mingw-w64-v${PV}"
196 -
197 -is_crosscompile() {
198 - [[ ${CHOST} != ${CTARGET} ]]
199 -}
200 -just_headers() {
201 - use headers-only
202 -}
203 -alt_prefix() {
204 - is_crosscompile && echo /usr/${CTARGET}
205 -}
206 -crt_with() {
207 - just_headers && echo --without-$1 || echo --with-$1
208 -}
209 -crt_use_enable() {
210 - just_headers && echo --without-$2 || use_enable "$@"
211 -}
212 -crt_use_with() {
213 - just_headers && echo --without-$2 || use_with "$@"
214 -}
215 -
216 -pkg_setup() {
217 - if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
218 - die "Invalid configuration"
219 - fi
220 -}
221 -
222 -src_configure() {
223 - CHOST=${CTARGET} strip-unsupported-flags
224 - # Normally mingw-64 does not use dynamic linker.
225 - # But at configure time it uses $LDFLAGS.
226 - # When default -Wl,--hash-style=gnu is passed
227 - # __CTORS_LIST__ / __DTORS_LIST__ is mis-detected
228 - # for target ld and binaries crash at shutdown.
229 - filter-ldflags '-Wl,--hash-style=*'
230 -
231 - if ! just_headers; then
232 - mkdir "${WORKDIR}/headers"
233 - pushd "${WORKDIR}/headers" > /dev/null
234 - CHOST=${CTARGET} "${S}/configure" \
235 - --prefix="${T}/tmproot" \
236 - --with-headers \
237 - --without-crt \
238 - || die
239 - popd > /dev/null
240 - append-cppflags "-I${T}/tmproot/include"
241 - fi
242 -
243 - # By default configure tries to set --sysroot=${prefix}. We disable
244 - # this behaviour with --with-sysroot=no to use gcc's sysroot default.
245 - # That way we can cross-build mingw64-runtime with cross-emerge.
246 - local prefix="${EPREFIX}"$(alt_prefix)/usr
247 - CHOST=${CTARGET} econf \
248 - --with-sysroot=no \
249 - --prefix="${prefix}" \
250 - --libdir="${prefix}"/lib \
251 - --with-headers \
252 - --enable-sdk \
253 - $(crt_with crt) \
254 - $(crt_use_enable idl idl) \
255 - $(crt_use_with libraries libraries) \
256 - $(crt_use_with tools tools) \
257 - $(
258 - $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
259 - && echo --disable-lib32 --enable-lib64 \
260 - || echo --enable-lib32 --disable-lib64
261 - )
262 -}
263 -
264 -src_compile() {
265 - if ! just_headers; then
266 - emake -C "${WORKDIR}/headers" install
267 - fi
268 - default
269 -}
270 -
271 -src_install() {
272 - default
273 -
274 - if is_crosscompile ; then
275 - # gcc is configured to look at specific hard-coded paths for mingw #419601
276 - dosym usr /usr/${CTARGET}/mingw
277 - dosym usr /usr/${CTARGET}/${CTARGET}
278 - dosym usr/include /usr/${CTARGET}/sys-include
279 - fi
280 -
281 - rm -rf "${ED}/usr/share"
282 -}