Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/mingw-runtime: mingw-runtime-4.0.3.1.ebuild ChangeLog
Date: Mon, 02 Jun 2014 04:36:07
Message-Id: 20140602043603.B8B0C2004E@flycatcher.gentoo.org
1 vapier 14/06/02 04:36:03
2
3 Modified: ChangeLog
4 Added: mingw-runtime-4.0.3.1.ebuild
5 Log:
6 Version bump #511490 by Yevgeny Filatov.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.29 dev-util/mingw-runtime/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw-runtime/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw-runtime/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw-runtime/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 10 May 2013 09:38:39 -0000 1.28
24 +++ ChangeLog 2 Jun 2014 04:36:03 -0000 1.29
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/mingw-runtime
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.28 2013/05/10 09:38:39 patrick Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.29 2014/06/02 04:36:03 vapier Exp $
31 +
32 +*mingw-runtime-4.0.3.1 (02 Jun 2014)
33 +
34 + 02 Jun 2014; Mike Frysinger <vapier@g.o> +mingw-runtime-4.0.3.1.ebuild:
35 + Version bump #511490 by Yevgeny Filatov.
36
37 10 May 2013; Patrick Lauer <patrick@g.o> mingw-runtime-3.18.ebuild,
38 mingw-runtime-3.20.2.ebuild, mingw-runtime-3.20.ebuild:
39
40
41
42 1.1 dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mingw-runtime-4.0.3.1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild,v 1.1 2014/06/02 04:36:03 vapier Exp $
52
53 EAPI="4"
54
55 export CBUILD=${CBUILD:-${CHOST}}
56 export CTARGET=${CTARGET:-${CHOST}}
57 if [[ ${CTARGET} == ${CHOST} ]] ; then
58 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
59 export CTARGET=${CATEGORY/cross-}
60 fi
61 fi
62
63 inherit flag-o-matic toolchain-funcs versionator
64
65 MY_P="mingwrt-$(version_format_string '$1.$2.$3-$4')-mingw32"
66 DESCRIPTION="Free Win32 runtime and import library definitions"
67 HOMEPAGE="http://www.mingw.org/"
68 # http://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/
69 SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
70
71 LICENSE="BSD"
72 SLOT="0"
73 # Collides with w32api-4.x
74 #KEYWORDS="~amd64 ~ppc ~sparc ~x86"
75 IUSE="crosscompile_opts_headers-only"
76 RESTRICT="strip"
77
78 DEPEND="app-arch/xz-utils"
79 RDEPEND=""
80
81 S=${WORKDIR}/${MY_P}-src
82
83 is_crosscompile() {
84 [[ ${CHOST} != ${CTARGET} ]]
85 }
86 just_headers() {
87 use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
88 }
89
90 pkg_setup() {
91 if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
92 die "Invalid configuration"
93 fi
94 }
95
96 src_prepare() {
97 sed -i \
98 -e '/^install_dlls_host:/s:$: install-dirs:' \
99 Makefile.in || die # fix parallel install
100 }
101
102 src_configure() {
103 just_headers && return 0
104
105 CHOST=${CTARGET} strip-unsupported-flags
106 filter-flags -frecord-gcc-switches
107 tc-export AR
108 econf \
109 --host=${CTARGET} \
110 --docdir="${EPREFIX}/usr/share/doc/${PF}"
111 }
112
113 src_compile() {
114 emake -j1
115 }
116
117 src_install() {
118 if just_headers ; then
119 insinto /usr/${CTARGET}/usr/include
120 doins -r include/*
121 else
122 local insdir
123 is_crosscompile \
124 && insdir="${D}/usr/${CTARGET}" \
125 || insdir="${D}"
126 emake -j1 install DESTDIR="${insdir}"
127 env -uRESTRICT CHOST=${CTARGET} prepallstrip
128 rm -rf "${insdir}"/usr/doc
129 docinto ${CTARGET} # Avoid collisions with other cross-compilers.
130 fi
131 is_crosscompile && dosym usr /usr/${CTARGET}/mingw
132 }