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/w32api: w32api-4.0.3.1.ebuild ChangeLog
Date: Mon, 02 Jun 2014 04:34:27
Message-Id: 20140602043422.8C22A2004E@flycatcher.gentoo.org
1 vapier 14/06/02 04:34:22
2
3 Modified: ChangeLog
4 Added: w32api-4.0.3.1.ebuild
5 Log:
6 Version bump #511492 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.19 dev-util/w32api/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/w32api/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/w32api/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/w32api/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 8 May 2012 20:06:36 -0000 1.18
24 +++ ChangeLog 2 Jun 2014 04:34:22 -0000 1.19
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/w32api
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.18 2012/05/08 20:06:36 vapier Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.19 2014/06/02 04:34:22 vapier Exp $
31 +
32 +*w32api-4.0.3.1 (02 Jun 2014)
33 +
34 + 02 Jun 2014; Mike Frysinger <vapier@g.o> +w32api-4.0.3.1.ebuild:
35 + Version bump #511492 by Yevgeny Filatov.
36
37 08 May 2012; Mike Frysinger <vapier@g.o> w32api-3.14.ebuild,
38 w32api-3.17.2.ebuild:
39
40
41
42 1.1 dev-util/w32api/w32api-4.0.3.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/w32api/w32api-4.0.3.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/w32api/w32api-4.0.3.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: w32api-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/w32api/w32api-4.0.3.1.ebuild,v 1.1 2014/06/02 04:34:22 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 eutils flag-o-matic toolchain-funcs
64
65 MY_P="${P:0:${#P}-2}-${PV:0-1}-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/w32api/
69 SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
70
71 LICENSE="BSD"
72 SLOT="0"
73 # Collides with mingw-runtime-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/-m/.m}-src
82
83 just_headers() {
84 use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
85 }
86
87 pkg_setup() {
88 if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
89 die "Invalid configuration; do not emerge this directly"
90 fi
91 }
92
93 src_configure() {
94 just_headers && return 0
95
96 CHOST=${CTARGET} strip-unsupported-flags
97 filter-flags -frecord-gcc-switches
98 tc-export AR
99 econf \
100 --host=${CTARGET} \
101 --prefix=/usr/${CTARGET}/usr \
102 --docdir="${EPREFIX}/usr/share/doc/${PF}"
103 }
104
105 src_install() {
106 if just_headers ; then
107 insinto /usr/${CTARGET}/usr/include
108 doins -r include/*
109 else
110 emake -j1 install DESTDIR="${D}"
111 env -uRESTRICT CHOST=${CTARGET} prepallstrip
112
113 # Make sure diff cross-compilers don't collide #414075
114 mv "${D}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
115 fi
116 }