summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-07 11:35:17 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-07 11:35:17 +0000
commit85ad5d57f4387f64aa5b7808b1fffa754cabf45b (patch)
tree6f165a49bcdeb5d59a533fcf061b5e8c5b7a6cea /dev-util/mingw-runtime
parentInstall hostutils (ldd/ldconfig) for cross-compilers #172207. (diff)
downloadgentoo-2-85ad5d57f4387f64aa5b7808b1fffa754cabf45b.tar.gz
gentoo-2-85ad5d57f4387f64aa5b7808b1fffa754cabf45b.tar.bz2
gentoo-2-85ad5d57f4387f64aa5b7808b1fffa754cabf45b.zip
Version bump #173120 by Dennis Schridde.
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-util/mingw-runtime')
-rw-r--r--dev-util/mingw-runtime/ChangeLog8
-rw-r--r--dev-util/mingw-runtime/files/digest-mingw-runtime-3.123
-rw-r--r--dev-util/mingw-runtime/files/mingw-runtime-3.12-DESTDIR.patch22
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.12.ebuild80
4 files changed, 112 insertions, 1 deletions
diff --git a/dev-util/mingw-runtime/ChangeLog b/dev-util/mingw-runtime/ChangeLog
index 647d83a6d246..8b5f398eea78 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.6 2007/03/19 13:43:04 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.7 2007/04/07 11:35:17 vapier Exp $
+
+*mingw-runtime-3.12 (07 Apr 2007)
+
+ 07 Apr 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/mingw-runtime-3.12-DESTDIR.patch, +mingw-runtime-3.12.ebuild:
+ Version bump #173120 by Dennis Schridde.
19 Mar 2007; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
Remove cretin from metadata.xml due to retirement.
diff --git a/dev-util/mingw-runtime/files/digest-mingw-runtime-3.12 b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.12
new file mode 100644
index 000000000000..7878afd1767b
--- /dev/null
+++ b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.12
@@ -0,0 +1,3 @@
+MD5 a9fdbd5162aa1ae0171c47f929adf938 mingw-runtime-3.12-src.tar.gz 386213
+RMD160 c9079d8cf5cb17e551aec0109cf6c57b22e0f5b7 mingw-runtime-3.12-src.tar.gz 386213
+SHA256 f366a1fdd2cde7b1ba2a624b0557bf24bab695d0e322823d28e393e7f7b43cc4 mingw-runtime-3.12-src.tar.gz 386213
diff --git a/dev-util/mingw-runtime/files/mingw-runtime-3.12-DESTDIR.patch b/dev-util/mingw-runtime/files/mingw-runtime-3.12-DESTDIR.patch
new file mode 100644
index 000000000000..bf31c9c248bf
--- /dev/null
+++ b/dev-util/mingw-runtime/files/mingw-runtime-3.12-DESTDIR.patch
@@ -0,0 +1,22 @@
+--- Makefile.in
++++ Makefile.in
+@@ -58,6 +58,11 @@
+ inst_libdir:=$(libdir)
+ inst_docdir:=$(prefix)/doc/mingw-runtime
+ endif
++inst_bindir:=$(DESTDIR)$(inst_bindir)
++inst_includedir:=$(DESTDIR)$(inst_includedir)
++inst_libdir:=$(DESTDIR)$(inst_libdir)
++inst_docdir:=$(DESTDIR)$(inst_docdir)
++mandir:=$(DESTDIR)$(mandir)
+
+ # The Mingw headers are installed under a subdirectory of
+ # $(tooldir)/include when configuring in Cygwin.
+@@ -199,6 +199,6 @@
+ all_dlls_host: $(DLLS)
+
+-install_dlls_host:
++install_dlls_host: install-dirs
+ for i in $(DLLS); do \
+ $(INSTALL_PROGRAM) $$i $(inst_bindir)/$$i ; \
+ done
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.12.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.12.ebuild
new file mode 100644
index 000000000000..ddb89ae176c1
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.12.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2007 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.12.ebuild,v 1.1 2007/04/07 11:35:17 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
+}