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: ChangeLog mingw-runtime-3.15.ebuild
Date: Mon, 08 Sep 2008 02:50:45
Message-Id: E1KcWpu-0002hJ-Ps@stork.gentoo.org
1 vapier 08/09/08 02:50:42
2
3 Modified: ChangeLog
4 Added: mingw-runtime-3.15.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)
8
9 Revision Changes Path
10 1.12 dev-util/mingw-runtime/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mingw-runtime/ChangeLog?rev=1.12&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mingw-runtime/ChangeLog?rev=1.12&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mingw-runtime/ChangeLog?r1=1.11&r2=1.12
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v
19 retrieving revision 1.11
20 retrieving revision 1.12
21 diff -u -r1.11 -r1.12
22 --- ChangeLog 2 Jul 2008 21:49:29 -0000 1.11
23 +++ ChangeLog 8 Sep 2008 02:50:42 -0000 1.12
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/mingw-runtime
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.11 2008/07/02 21:49:29 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.12 2008/09/08 02:50:42 vapier Exp $
29 +
30 +*mingw-runtime-3.15 (08 Sep 2008)
31 +
32 + 08 Sep 2008; Mike Frysinger <vapier@g.o>
33 + +mingw-runtime-3.15.ebuild:
34 + Version bump.
35
36 02 Jul 2008; Mike Frysinger <vapier@g.o> mingw-runtime-3.14.ebuild:
37 Workaround portage IUSE deficiencies by adding the expanded
38
39
40
41 1.1 dev-util/mingw-runtime/mingw-runtime-3.15.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-3.15.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-3.15.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mingw-runtime-3.15.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-3.15.ebuild,v 1.1 2008/09/08 02:50:42 vapier Exp $
51
52 # This version does not work as the configure script expects the installed
53 # cross-compiler to be able to link binaries ... except we haven't provided
54 # any of the crt objects yet so it is impossible to link binaries.
55 # Older mingw-runtime packages hacked around the issue, but this version seems
56 # to have dropped said hack thus breaking the package.
57
58 export CBUILD=${CBUILD:-${CHOST}}
59 export CTARGET=${CTARGET:-${CHOST}}
60 if [[ ${CTARGET} == ${CHOST} ]] ; then
61 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
62 export CTARGET=${CATEGORY/cross-}
63 fi
64 fi
65
66 inherit eutils flag-o-matic
67
68 MY_P="mingwrt-${PV}-mingw32"
69 DESCRIPTION="Free Win32 runtime and import library definitions"
70 HOMEPAGE="http://www.mingw.org/"
71 SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.gz"
72
73 LICENSE="BSD"
74 SLOT="0"
75 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
76 IUSE="crosscompile_opts_headers-only"
77 RESTRICT="strip"
78
79 DEPEND=""
80
81 S=${WORKDIR}/${MY_P}
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_unpack() {
97 unpack ${A}
98 cd "${S}"
99 sed -i \
100 -e "/W32API_INCLUDE/s:=.*:='-I /usr/${CTARGET}/usr/include':" \
101 $(find -name configure) || die
102 epatch "${FILESDIR}"/${PN}-3.12-DESTDIR.patch
103 }
104
105 src_compile() {
106 just_headers && return 0
107
108 CHOST=${CTARGET} strip-unsupported-flags
109 econf --host=${CTARGET} || die
110 emake || die
111 }
112
113 src_install() {
114 if just_headers ; then
115 insinto /usr/${CTARGET}/usr/include
116 doins -r include/* || die
117 else
118 local insdir
119 is_crosscompile \
120 && insdir=${D}/usr/${CTARGET} \
121 || insdir=${D}
122 emake install DESTDIR="${insdir}" || die
123 env -uRESTRICT CHOST=${CTARGET} prepallstrip
124 rm -rf "${insdir}"/usr/doc
125 dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
126 fi
127 is_crosscompile && dosym usr /usr/${CTARGET}/mingw
128 }