1 |
commit: de55cf0736dc0a74556d4339358ac7c3c0e15019 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 29 20:03:16 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 29 20:03:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de55cf07 |
7 |
|
8 |
dev-util/mingw64-runtime: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-util/mingw64-runtime/Manifest | 1 + |
13 |
.../mingw64-runtime/mingw64-runtime-5.0.2.ebuild | 112 +++++++++++++++++++++ |
14 |
2 files changed, 113 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest |
17 |
index 72d165709d4..fb8d7ffc014 100644 |
18 |
--- a/dev-util/mingw64-runtime/Manifest |
19 |
+++ b/dev-util/mingw64-runtime/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST mingw-w64-v4.0.1.tar.bz2 10803072 SHA256 89d2524a071b6337dfd9f3b6e6f46d8002 |
21 |
DIST mingw-w64-v4.0.4.tar.bz2 10812375 SHA256 89356a0aa8cf9f8b9dc8d92bc8dd01a131d4750c3acb30c6350a406316c42199 SHA512 06de6b592f776676184a9c50c63eb105c82a912965dee5d8217f9b5b325e0258c188f5d7d5e28aaeacf7bad44ce5d36bd837b9f1cbb91358754787738fb15146 WHIRLPOOL ff557b2aff821c1833ab6d5fdade4f256b71cb37e84a476d3e5a4cfe13f60db68c336d7e72f6e3eb13b3d127e1bac2cbfdde160ea2f7016867f10efa6a02914b |
22 |
DIST mingw-w64-v4.0.6.tar.bz2 10853871 SHA256 0c407394b0d8635553f4fbca674cdfe446aac223e90b4010603d863e4bdd015c SHA512 c9ec75b10fe40d80e620b569ca8f452b1f78e9e4dd45ad087a2b69297dc661d06aa30255ea310786f28c042256c35a1d3e709ff7ea8bc19e7f4ea914c120f020 WHIRLPOOL 69015094c14f66e1102d343b220eb17cc245f24a66c1a39ffced2f155cae84315eabb9a843bd9aa8e7874a12e34297a4f7cfff06447972a17beecf070bc70b08 |
23 |
DIST mingw-w64-v5.0.1.tar.bz2 9160780 SHA256 9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2 SHA512 73b746f227930597a97f117cf9f9aa19ddabb6090907cf6850864cf30089e5d6e1cd07e257b3b0b9ae0ac762cb24a6f5acf7336c9be48760c975ac038569dcfa WHIRLPOOL 26f3e52a5fb0a0332861a919d2b913dcb3e8dceb26bb174e85830282229823366918132c5db22a5d294167ba3c54c6fd461b663ff0ab92373f46519149817e98 |
24 |
+DIST mingw-w64-v5.0.2.tar.bz2 9107077 SHA256 5f46e80ff1a9102a37a3453743dae9df98262cba7c45306549ef7432cfd92cfd SHA512 430065a822afb9901219b1f86ea221ae70ef7820ea298f51828bf1689a014115dade967a806388b7ee3ed1ea1d6c53970514ec64d0185b5024523093d9e96060 WHIRLPOOL fdc7b1f647679b2761cdb306f5400fdcdbcdd64de4aeb6d3d3bd4b31aab81ad5f81c7485c377fa8100da0ebe7e0b53a83674443d61c986df27a616694bb512d6 |
25 |
|
26 |
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..408aa8d8e7b |
29 |
--- /dev/null |
30 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild |
31 |
@@ -0,0 +1,112 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+export CBUILD=${CBUILD:-${CHOST}} |
38 |
+export CTARGET=${CTARGET:-${CHOST}} |
39 |
+if [[ ${CTARGET} == ${CHOST} ]] ; then |
40 |
+ if [[ ${CATEGORY} == cross-* ]] ; then |
41 |
+ export CTARGET=${CATEGORY#cross-} |
42 |
+ fi |
43 |
+fi |
44 |
+ |
45 |
+WANT_AUTOMAKE="1.15" |
46 |
+ |
47 |
+inherit autotools flag-o-matic eutils |
48 |
+ |
49 |
+DESCRIPTION="Free Win64 runtime and import library definitions" |
50 |
+HOMEPAGE="http://mingw-w64.sourceforge.net/" |
51 |
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" |
52 |
+ |
53 |
+LICENSE="BSD" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+IUSE="crosscompile_opts_headers-only idl libraries tools" |
57 |
+RESTRICT="strip" |
58 |
+ |
59 |
+S="${WORKDIR}/mingw-w64-v${PV}" |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}/${PN}-4.0.1-winpthreads.patch" |
63 |
+ "${FILESDIR}/${PN}-4.0.1-build.patch" |
64 |
+) |
65 |
+ |
66 |
+is_crosscompile() { |
67 |
+ [[ ${CHOST} != ${CTARGET} ]] |
68 |
+} |
69 |
+just_headers() { |
70 |
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] |
71 |
+} |
72 |
+crt_with() { |
73 |
+ just_headers && echo --without-$1 || echo --with-$1 |
74 |
+} |
75 |
+crt_use_enable() { |
76 |
+ just_headers && echo --without-$2 || use_enable "$@" |
77 |
+} |
78 |
+crt_use_with() { |
79 |
+ just_headers && echo --without-$2 || use_with "$@" |
80 |
+} |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then |
84 |
+ die "Invalid configuration" |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ CHOST=${CTARGET} strip-unsupported-flags |
95 |
+ |
96 |
+ if ! just_headers; then |
97 |
+ mkdir "${WORKDIR}/headers" |
98 |
+ pushd "${WORKDIR}/headers" > /dev/null |
99 |
+ CHOST=${CTARGET} "${S}/configure" \ |
100 |
+ --prefix="${T}/tmproot" \ |
101 |
+ --with-headers \ |
102 |
+ --without-crt \ |
103 |
+ || die |
104 |
+ popd > /dev/null |
105 |
+ append-cppflags "-I${T}/tmproot/include" |
106 |
+ fi |
107 |
+ |
108 |
+ CHOST=${CTARGET} econf \ |
109 |
+ --prefix=/usr/${CTARGET} \ |
110 |
+ --includedir=/usr/${CTARGET}/usr/include \ |
111 |
+ --with-headers \ |
112 |
+ --enable-sdk \ |
113 |
+ $(crt_with crt) \ |
114 |
+ $(crt_use_enable idl) \ |
115 |
+ $(crt_use_with libraries libraries winpthreads,libmangle) \ |
116 |
+ $(crt_use_with tools) \ |
117 |
+ $( |
118 |
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ |
119 |
+ && echo --disable-lib32 --enable-lib64 \ |
120 |
+ || echo --enable-lib32 --disable-lib64 |
121 |
+ ) |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ if ! just_headers; then |
126 |
+ emake -C "${WORKDIR}/headers" install |
127 |
+ fi |
128 |
+ default |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ default |
133 |
+ |
134 |
+ if is_crosscompile ; then |
135 |
+ # gcc is configured to look at specific hard-coded paths for mingw #419601 |
136 |
+ dosym usr /usr/${CTARGET}/mingw |
137 |
+ dosym usr /usr/${CTARGET}/${CTARGET} |
138 |
+ dosym usr/include /usr/${CTARGET}/sys-include |
139 |
+ fi |
140 |
+ |
141 |
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip |
142 |
+ rm -rf "${ED}/usr/share" |
143 |
+} |