1 |
commit: 9a895f193b49d4c0221873d81252ceef4d3e8d13 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 17 22:02:36 2018 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 17 22:05:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a895f19 |
7 |
|
8 |
dev-util/mingw64-runtime: verison bump |
9 |
|
10 |
for some reason console application is not working on my windows machine, more |
11 |
testing need to be done, removed keywords. |
12 |
|
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
dev-util/mingw64-runtime/Manifest | 1 + |
16 |
.../mingw64-runtime/mingw64-runtime-6.0.0.ebuild | 106 +++++++++++++++++++++ |
17 |
2 files changed, 107 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest |
20 |
index 04400d162ef..f589f7a41b3 100644 |
21 |
--- a/dev-util/mingw64-runtime/Manifest |
22 |
+++ b/dev-util/mingw64-runtime/Manifest |
23 |
@@ -8,3 +8,4 @@ DIST mingw-w64-v5.0.1.tar.bz2 9160780 BLAKE2B 52964e7ae113d8886648cb0395514067fa |
24 |
DIST mingw-w64-v5.0.2.tar.bz2 9107077 BLAKE2B b8e3e614fe4a1ea6a4770efdd029300e923e3b7b39b71731692281da44f468b235d487d38d7e1b4396e1b44a4c60fcc7a67a6c1331fb46e339c13c86bf7de7bd SHA512 430065a822afb9901219b1f86ea221ae70ef7820ea298f51828bf1689a014115dade967a806388b7ee3ed1ea1d6c53970514ec64d0185b5024523093d9e96060 |
25 |
DIST mingw-w64-v5.0.3.tar.bz2 9160627 BLAKE2B 941b40c426548564e8b2da0af8e917dad34bdbf0b05c63ea2127e39139bcce5d86e80433817483c64cd2a6ef6140a7818a76564ff5d9408614ecaa58f17b41e7 SHA512 85bc0244cd30ef38262792d61502a012348b8220ef249352b68ddfa40663ca1cae5f81bed70caa9579469fad6ad16a95f02387c280effeda7ce8287b549f3fc9 |
26 |
DIST mingw-w64-v5.0.4.tar.bz2 9163093 BLAKE2B fd039995c73690c12ddf1612d42edefbb572386b2ca8508fd5a5edd9e715ced41c05c62efec8eda07b9ec7a1e9e658bf3b3dedeb18695a076b5bc2067e86d68d SHA512 5b279222e86475a982e2aeb9fc14853f4fac0ca0c5a2d56f303584d1b348726afd99b0292a5ed050d326e7cb1434e5ad5b5dfdfb37c73fd08f13e7f4f4bcc046 |
27 |
+DIST mingw-w64-v6.0.0.tar.bz2 9045653 BLAKE2B 8a54dca2d06c92ab968a93240996d07ab3b1ed4652555a48b7581c477856d5784ed192c578d78186e171e400bd18b4de3c6cafbdd96109367ad13c37792015c1 SHA512 e3d3663e0cb33a16f90b1a33e81b5a30d26f7e34270b14e865c10068f2a2d32da9ef8cbbb0c3fed9c71429ae11c82152ff3b87d81558929b2a4993dc99cfc11e |
28 |
|
29 |
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-6.0.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-6.0.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..47cd6c8a3d1 |
32 |
--- /dev/null |
33 |
+++ b/dev-util/mingw64-runtime/mingw64-runtime-6.0.0.ebuild |
34 |
@@ -0,0 +1,106 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+export CBUILD=${CBUILD:-${CHOST}} |
41 |
+export CTARGET=${CTARGET:-${CHOST}} |
42 |
+if [[ ${CTARGET} == ${CHOST} ]] ; then |
43 |
+ if [[ ${CATEGORY} == cross-* ]] ; then |
44 |
+ export CTARGET=${CATEGORY#cross-} |
45 |
+ fi |
46 |
+fi |
47 |
+ |
48 |
+inherit autotools flag-o-matic eutils |
49 |
+ |
50 |
+DESCRIPTION="Free Win64 runtime and import library definitions" |
51 |
+HOMEPAGE="http://mingw-w64.sourceforge.net/" |
52 |
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2" |
53 |
+ |
54 |
+LICENSE="BSD" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="" |
57 |
+IUSE="headers-only idl libraries tools" |
58 |
+RESTRICT="strip" |
59 |
+ |
60 |
+S="${WORKDIR}/mingw-w64-v${PV}" |
61 |
+ |
62 |
+is_crosscompile() { |
63 |
+ [[ ${CHOST} != ${CTARGET} ]] |
64 |
+} |
65 |
+just_headers() { |
66 |
+ use headers-only |
67 |
+} |
68 |
+alt_prefix() { |
69 |
+ is_crosscompile && echo /usr/${CTARGET} |
70 |
+} |
71 |
+crt_with() { |
72 |
+ just_headers && echo --without-$1 || echo --with-$1 |
73 |
+} |
74 |
+crt_use_enable() { |
75 |
+ just_headers && echo --without-$2 || use_enable "$@" |
76 |
+} |
77 |
+crt_use_with() { |
78 |
+ just_headers && echo --without-$2 || use_with "$@" |
79 |
+} |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then |
83 |
+ die "Invalid configuration" |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ CHOST=${CTARGET} strip-unsupported-flags |
89 |
+ |
90 |
+ if ! just_headers; then |
91 |
+ mkdir "${WORKDIR}/headers" |
92 |
+ pushd "${WORKDIR}/headers" > /dev/null |
93 |
+ CHOST=${CTARGET} "${S}/configure" \ |
94 |
+ --prefix="${T}/tmproot" \ |
95 |
+ --with-headers \ |
96 |
+ --without-crt \ |
97 |
+ || die |
98 |
+ popd > /dev/null |
99 |
+ append-cppflags "-I${T}/tmproot/include" |
100 |
+ fi |
101 |
+ |
102 |
+ # By default configure tries to set --sysroot=${prefix}. We disable |
103 |
+ # this behaviour with --with-sysroot=no to use gcc's sysroot default. |
104 |
+ # That way we can cross-build mingw64-runtime with cross-emerge. |
105 |
+ CHOST=${CTARGET} econf \ |
106 |
+ --with-sysroot=no \ |
107 |
+ --prefix="${EPREFIX}"$(alt_prefix)/usr \ |
108 |
+ --with-headers \ |
109 |
+ --enable-sdk \ |
110 |
+ $(crt_with crt) \ |
111 |
+ $(crt_use_enable idl idl) \ |
112 |
+ $(crt_use_with libraries libraries) \ |
113 |
+ $(crt_use_with tools tools) \ |
114 |
+ $( |
115 |
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \ |
116 |
+ && echo --disable-lib32 --enable-lib64 \ |
117 |
+ || echo --enable-lib32 --disable-lib64 |
118 |
+ ) |
119 |
+} |
120 |
+ |
121 |
+src_compile() { |
122 |
+ if ! just_headers; then |
123 |
+ emake -C "${WORKDIR}/headers" install |
124 |
+ fi |
125 |
+ default |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ default |
130 |
+ |
131 |
+ if is_crosscompile ; then |
132 |
+ # gcc is configured to look at specific hard-coded paths for mingw #419601 |
133 |
+ dosym usr /usr/${CTARGET}/mingw |
134 |
+ dosym usr /usr/${CTARGET}/${CTARGET} |
135 |
+ dosym usr/include /usr/${CTARGET}/sys-include |
136 |
+ fi |
137 |
+ |
138 |
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip |
139 |
+ rm -rf "${ED}/usr/share" |
140 |
+} |