summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-02-18 19:52:50 +0000
committerMike Frysinger <vapier@gentoo.org>2013-02-18 19:52:50 +0000
commiteb1194f9f27cd42d0d01b45e4a84c73c314402b6 (patch)
tree74383a820e3a2229b9228f50f3434c125735e094 /dev-util/mingw64-runtime
parentFix ar being called directly (bug #457758). (diff)
downloadgentoo-2-eb1194f9f27cd42d0d01b45e4a84c73c314402b6.tar.gz
gentoo-2-eb1194f9f27cd42d0d01b45e4a84c73c314402b6.tar.bz2
gentoo-2-eb1194f9f27cd42d0d01b45e4a84c73c314402b6.zip
Version bump #457684 by Dennis Schridde.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'dev-util/mingw64-runtime')
-rw-r--r--dev-util/mingw64-runtime/ChangeLog10
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-2.0.7.ebuild74
2 files changed, 81 insertions, 3 deletions
diff --git a/dev-util/mingw64-runtime/ChangeLog b/dev-util/mingw64-runtime/ChangeLog
index 04028010e25e..87935987eb9b 100644
--- a/dev-util/mingw64-runtime/ChangeLog
+++ b/dev-util/mingw64-runtime/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/mingw64-runtime
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.10 2012/06/06 19:58:24 vapier Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.11 2013/02/18 19:52:50 vapier Exp $
+
+*mingw64-runtime-2.0.7 (18 Feb 2013)
+
+ 18 Feb 2013; Mike Frysinger <vapier@gentoo.org> +mingw64-runtime-2.0.7.ebuild:
+ Version bump #457684 by Dennis Schridde.
06 Jun 2012; Mike Frysinger <vapier@gentoo.org> mingw64-runtime-2.0.1.ebuild:
Always provide mingw symlink in sysroot for gcc #419601 by Alon Bar-Lev.
@@ -56,4 +61,3 @@
09 Dec 2009; Mike Frysinger <vapier@gentoo.org>
+mingw64-runtime-20090419.ebuild, +metadata.xml:
Initial ebuild based on mingw-runtime by Suertreus #271197.
-
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-2.0.7.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-2.0.7.ebuild
new file mode 100644
index 000000000000..44b9ec8063bd
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-2.0.7.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-2.0.7.ebuild,v 1.1 2013/02/18 19:52:50 vapier Exp $
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64-v${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+S=${WORKDIR}/mingw-w64-v${PV}/mingw-w64-crt
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ find "${WORKDIR}" -type f -exec touch -r . {} +
+}
+
+src_compile() {
+ # install the local headers as the crt step wants latest
+ pushd ../mingw-w64-headers >/dev/null
+ CHOST=${CTARGET} econf --enable-sdk || die
+ emake install DESTDIR="${WORKDIR}/sysroot" || die
+ popd >/dev/null
+
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ append-cppflags -isystem "${WORKDIR}/sysroot/usr/${CTARGET}/include"
+ CHOST=${CTARGET} econf || die
+ emake || die
+}
+
+src_install() {
+ insinto /usr/${CTARGET}/usr/include
+ doins -r "${WORKDIR}"/sysroot/usr/${CTARGET}/include/* || die
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+ just_headers && return 0
+
+ emake install DESTDIR="${D}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${D}"/usr/doc
+}