Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/mingw64-runtime: metadata.xml mingw64-runtime-3.0.0.ebuild ChangeLog
Date: Mon, 30 Sep 2013 08:16:34
Message-Id: 20130930081627.D85352004C@flycatcher.gentoo.org
1 alonbl 13/09/30 08:16:27
2
3 Modified: metadata.xml ChangeLog
4 Added: mingw64-runtime-3.0.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.2 dev-util/mingw64-runtime/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 9 Dec 2009 22:42:36 -0000 1.1
24 +++ metadata.xml 30 Sep 2013 08:16:27 -0000 1.2
25 @@ -2,4 +2,12 @@
26 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
27 <pkgmetadata>
28 <herd>toolchain</herd>
29 +<use>
30 + <flag name='idl'>
31 + Install idl files.
32 + </flag>
33 + <flag name='tools'>
34 + Build and install extra tools.
35 + </flag>
36 +</use>
37 </pkgmetadata>
38
39
40
41 1.13 dev-util/mingw64-runtime/ChangeLog
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?rev=1.13&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?rev=1.13&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?r1=1.12&r2=1.13
46
47 Index: ChangeLog
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v
50 retrieving revision 1.12
51 retrieving revision 1.13
52 diff -u -r1.12 -r1.13
53 --- ChangeLog 20 Jun 2013 14:39:13 -0000 1.12
54 +++ ChangeLog 30 Sep 2013 08:16:27 -0000 1.13
55 @@ -1,6 +1,12 @@
56 # ChangeLog for dev-util/mingw64-runtime
57 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
58 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.12 2013/06/20 14:39:13 lu_zero Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.13 2013/09/30 08:16:27 alonbl Exp $
60 +
61 +*mingw64-runtime-3.0.0 (30 Sep 2013)
62 +
63 + 30 Sep 2013; Alon Bar-Lev <alonbl@g.o> +mingw64-runtime-3.0.0.ebuild,
64 + metadata.xml:
65 + Version bump
66
67 *mingw64-runtime-2.0.8 (20 Jun 2013)
68
69
70
71
72 1.1 dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild?rev=1.1&content-type=text/plain
76
77 Index: mingw64-runtime-3.0.0.ebuild
78 ===================================================================
79 # Copyright 1999-2013 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild,v 1.1 2013/09/30 08:16:27 alonbl Exp $
82
83 EAPI=5
84
85 export CBUILD=${CBUILD:-${CHOST}}
86 export CTARGET=${CTARGET:-${CHOST}}
87 if [[ ${CTARGET} == ${CHOST} ]] ; then
88 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
89 export CTARGET=${CATEGORY/cross-}
90 fi
91 fi
92
93 inherit flag-o-matic eutils
94
95 DESCRIPTION="Free Win64 runtime and import library definitions"
96 HOMEPAGE="http://mingw-w64.sourceforge.net/"
97 SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
98
99 LICENSE="BSD"
100 SLOT="0"
101 KEYWORDS="~amd64 ~x86"
102 IUSE="crosscompile_opts_headers-only idl tools"
103 RESTRICT="strip"
104
105 S="${WORKDIR}/mingw-w64-v${PV}"
106
107 is_crosscompile() {
108 [[ ${CHOST} != ${CTARGET} ]]
109 }
110 just_headers() {
111 use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
112 }
113
114 pkg_setup() {
115 if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
116 die "Invalid configuration"
117 fi
118 }
119
120 src_configure() {
121 local extra_conf=()
122
123 if just_headers; then
124 extra_conf+=( --without-crt )
125 else
126 extra_conf+=(
127 --with-crt
128 $(use_with tools)
129 )
130 fi
131
132 case ${CTARGET} in
133 x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
134 i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
135 *) die "Unsupported ${CTARGET}" ;;
136 esac
137
138 CHOST=${CTARGET} strip-unsupported-flags
139 CHOST=${CTARGET} econf \
140 --prefix=/usr/${CTARGET} \
141 --includedir=/usr/${CTARGET}/usr/include \
142 --with-headers \
143 --enable-sdk \
144 $(use_enable idl) \
145 "${extra_conf[@]}"
146 }
147
148 src_install() {
149 default
150
151 if is_crosscompile ; then
152 # gcc is configured to look at specific hard-coded paths for mingw #419601
153 dosym usr /usr/${CTARGET}/mingw
154 dosym usr /usr/${CTARGET}/${CTARGET}
155 dosym usr/include /usr/${CTARGET}/sys-include
156 fi
157
158 env -uRESTRICT CHOST=${CTARGET} prepallstrip
159 rm -rf "${ED}/usr/share"
160 }