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: mingw64-runtime-3.2.0.ebuild ChangeLog
Date: Wed, 03 Sep 2014 08:29:35
Message-Id: 20140903082929.8F8FC496B@oystercatcher.gentoo.org
1 alonbl 14/09/03 08:29:29
2
3 Modified: ChangeLog
4 Added: mingw64-runtime-3.2.0.ebuild
5 Log:
6 Version bump, bug#521876
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.16 dev-util/mingw64-runtime/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 10 Jan 2014 19:25:41 -0000 1.15
24 +++ ChangeLog 3 Sep 2014 08:29:29 -0000 1.16
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/mingw64-runtime
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.15 2014/01/10 19:25:41 alonbl Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.16 2014/09/03 08:29:29 alonbl Exp $
30 +
31 +*mingw64-runtime-3.2.0 (03 Sep 2014)
32 +
33 + 03 Sep 2014; Alon Bar-Lev <alonbl@g.o> +mingw64-runtime-3.2.0.ebuild:
34 + Version bump, bug#521876
35
36 *mingw64-runtime-3.1.0 (10 Jan 2014)
37
38
39
40
41 1.1 dev-util/mingw64-runtime/mingw64-runtime-3.2.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.2.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.2.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mingw64-runtime-3.2.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-3.2.0.ebuild,v 1.1 2014/09/03 08:29:29 alonbl Exp $
51
52 EAPI=5
53
54 export CBUILD=${CBUILD:-${CHOST}}
55 export CTARGET=${CTARGET:-${CHOST}}
56 if [[ ${CTARGET} == ${CHOST} ]] ; then
57 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
58 export CTARGET=${CATEGORY/cross-}
59 fi
60 fi
61
62 inherit flag-o-matic eutils
63
64 DESCRIPTION="Free Win64 runtime and import library definitions"
65 HOMEPAGE="http://mingw-w64.sourceforge.net/"
66 SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="crosscompile_opts_headers-only idl"
72 RESTRICT="strip"
73
74 S="${WORKDIR}"
75
76 is_crosscompile() {
77 [[ ${CHOST} != ${CTARGET} ]]
78 }
79 just_headers() {
80 use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
81 }
82
83 pkg_setup() {
84 if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
85 die "Invalid configuration"
86 fi
87 }
88
89 src_configure() {
90 local extra_conf=()
91
92 if just_headers; then
93 extra_conf+=( --without-crt )
94 else
95 extra_conf+=( --with-crt )
96 fi
97
98 case ${CTARGET} in
99 x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
100 i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
101 *) die "Unsupported ${CTARGET}" ;;
102 esac
103
104 CHOST=${CTARGET} strip-unsupported-flags
105 CHOST=${CTARGET} econf \
106 --prefix=/usr/${CTARGET} \
107 --includedir=/usr/${CTARGET}/usr/include \
108 --with-headers \
109 --enable-sdk \
110 $(use_enable idl) \
111 "${extra_conf[@]}"
112 }
113
114 src_install() {
115 default
116
117 if is_crosscompile ; then
118 # gcc is configured to look at specific hard-coded paths for mingw #419601
119 dosym usr /usr/${CTARGET}/mingw
120 dosym usr /usr/${CTARGET}/${CTARGET}
121 dosym usr/include /usr/${CTARGET}/sys-include
122 fi
123
124 env -uRESTRICT CHOST=${CTARGET} prepallstrip
125 rm -rf "${ED}/usr/share"
126 }