summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-20 03:44:40 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-20 03:44:40 +0000
commit8c886945c536f06d4dab11b7829bfd2c735baa78 (patch)
tree446f7351a0e8467afef4c703586aeb0b6b472e05 /dev-util
parentVersion bump as per bug 206460. (diff)
downloadgentoo-2-8c886945c536f06d4dab11b7829bfd2c735baa78.tar.gz
gentoo-2-8c886945c536f06d4dab11b7829bfd2c735baa78.tar.bz2
gentoo-2-8c886945c536f06d4dab11b7829bfd2c735baa78.zip
Version bump #205990 by Dennis Schridde.
(Portage version: 2.1.4)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/mingw-runtime/ChangeLog10
-rw-r--r--dev-util/mingw-runtime/files/digest-mingw-runtime-3.143
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.14.ebuild80
3 files changed, 91 insertions, 2 deletions
diff --git a/dev-util/mingw-runtime/ChangeLog b/dev-util/mingw-runtime/ChangeLog
index d1924dcc4f07..a64528d17de7 100644
--- a/dev-util/mingw-runtime/ChangeLog
+++ b/dev-util/mingw-runtime/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/mingw-runtime
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.9 2007/10/06 22:39:37 vapier Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.10 2008/01/20 03:44:40 vapier Exp $
+
+*mingw-runtime-3.14 (20 Jan 2008)
+
+ 20 Jan 2008; Mike Frysinger <vapier@gentoo.org>
+ +mingw-runtime-3.14.ebuild:
+ Version bump #205990 by Dennis Schridde.
*mingw-runtime-3.13 (06 Oct 2007)
diff --git a/dev-util/mingw-runtime/files/digest-mingw-runtime-3.14 b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.14
new file mode 100644
index 000000000000..5d8578545553
--- /dev/null
+++ b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.14
@@ -0,0 +1,3 @@
+MD5 7d049a8331efcfe34600c0cda6934ac6 mingw-runtime-3.14-src.tar.gz 397183
+RMD160 9557df1bb6869734194a8d48d188763834ae6ff7 mingw-runtime-3.14-src.tar.gz 397183
+SHA256 a145a90d0824c65cfc11c3fc843ba484585983e1e8ee14b79f4d09cf1d38b98b mingw-runtime-3.14-src.tar.gz 397183
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.14.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.14.ebuild
new file mode 100644
index 000000000000..885ad9baa2d2
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.14.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/mingw-runtime-3.14.ebuild,v 1.1 2008/01/20 03:44:40 vapier Exp $
+
+# This version does not work as the configure script expects the installed
+# cross-compiler to be able to link binaries ... except we haven't provided
+# any of the crt objects yet so it is impossible to link binaries.
+# Older mingw-runtime packages hacked around the issue, but this version seems
+# to have dropped said hack thus breaking the package.
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+SRC_URI="mirror://sourceforge/mingw/${PN}-${PV/_p/-}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}-${PV%_p*}
+
+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}
+ cd "${S}"
+ sed -i \
+ -e "/W32API_INCLUDE/s:=.*:='-I /usr/${CTARGET}/usr/include':" \
+ $(find -name configure) || die
+ epatch "${FILESDIR}"/${PN}-3.12-DESTDIR.patch
+}
+
+src_compile() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf --host=${CTARGET} || die
+ emake || die
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ local insdir
+ is_crosscompile \
+ && insdir=${D}/usr/${CTARGET} \
+ || insdir=${D}
+ emake install DESTDIR="${insdir}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${insdir}"/usr/doc
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ is_crosscompile && dosym usr /usr/${CTARGET}/mingw
+}