summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-09-17 07:03:45 +0000
committerMike Frysinger <vapier@gentoo.org>2006-09-17 07:03:45 +0000
commit966d1afa0701d141c0dcd7812a7135f624fa2124 (patch)
treed23e20356a6014e04d329a3b2363fea66f36c7ad /dev-util
parentStable on ppc64; bug #147698 (diff)
downloadgentoo-2-966d1afa0701d141c0dcd7812a7135f624fa2124.tar.gz
gentoo-2-966d1afa0701d141c0dcd7812a7135f624fa2124.tar.bz2
gentoo-2-966d1afa0701d141c0dcd7812a7135f624fa2124.zip
initial import for crossdev based mingw32 toolchain
(Portage version: 2.1.1)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/mingw-runtime/ChangeLog8
-rw-r--r--dev-util/mingw-runtime/Manifest28
-rw-r--r--dev-util/mingw-runtime/files/digest-mingw-runtime-3.103
-rw-r--r--dev-util/mingw-runtime/files/digest-mingw-runtime-3.93
-rw-r--r--dev-util/mingw-runtime/files/mingw-runtime-3.9-DESTDIR.patch36
-rw-r--r--dev-util/mingw-runtime/metadata.xml8
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.10.ebuild72
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.9.ebuild70
8 files changed, 228 insertions, 0 deletions
diff --git a/dev-util/mingw-runtime/ChangeLog b/dev-util/mingw-runtime/ChangeLog
new file mode 100644
index 000000000000..e0adade6488c
--- /dev/null
+++ b/dev-util/mingw-runtime/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-util/mingw-runtime
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw-runtime/ChangeLog,v 1.1 2006/09/17 07:03:45 vapier Exp $
+
+*mingw-runtime-3.10 (17 Sep 2006)
+
+ 17 Sep 2006; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by me.
diff --git a/dev-util/mingw-runtime/Manifest b/dev-util/mingw-runtime/Manifest
new file mode 100644
index 000000000000..3660aaff4186
--- /dev/null
+++ b/dev-util/mingw-runtime/Manifest
@@ -0,0 +1,28 @@
+AUX mingw-runtime-3.9-DESTDIR.patch 1004 RMD160 35dbaf28bccb18d6472e2af73ccc8925091751dc SHA1 ba5a6d82aed1c72cf8ce0a0a2b216405a697d20f SHA256 0bb79aaff724272a3642ae83a1c42da95226e63f502f6de9a629d9330a06cd48
+MD5 d9c9d95f6e4735b1210b17a59ffc453d files/mingw-runtime-3.9-DESTDIR.patch 1004
+RMD160 35dbaf28bccb18d6472e2af73ccc8925091751dc files/mingw-runtime-3.9-DESTDIR.patch 1004
+SHA256 0bb79aaff724272a3642ae83a1c42da95226e63f502f6de9a629d9330a06cd48 files/mingw-runtime-3.9-DESTDIR.patch 1004
+DIST mingw-runtime-3.10-src.tar.gz 338373 RMD160 b8c20dfec6f188a50a51a7fd2c4c3a1228554daa SHA1 c01496252895fa3e37e93ac4fc7b5332fa6e2245 SHA256 eefa03102b49a529c7fa30a531487ded69ac57384ae3a0f07fd0a24af5c9ea2d
+DIST mingw-runtime-3.9-src.tar.gz 301241 RMD160 b50c14fb566f94a9eee40cc2e716c67aa8bece29 SHA1 e324d7afa3bdff5069eb44ad09051a8fda5f54b0 SHA256 e3b1aaa2405a8aa5dbbd2eb0e286c03dcb6e0b9ad6c0f8b64ea02dc3bd3470fc
+EBUILD mingw-runtime-3.10.ebuild 1866 RMD160 48320afbaa2feb338b447fac3924dee50ceba7e9 SHA1 a98c1343ee38e747283ed1735cf3d08be5cdacec SHA256 b6d9e30627da44f5731854906e0167c8611c068830c5fe255f16cb198d01a21a
+MD5 6fe931c14b7b1a85f86964131063fa21 mingw-runtime-3.10.ebuild 1866
+RMD160 48320afbaa2feb338b447fac3924dee50ceba7e9 mingw-runtime-3.10.ebuild 1866
+SHA256 b6d9e30627da44f5731854906e0167c8611c068830c5fe255f16cb198d01a21a mingw-runtime-3.10.ebuild 1866
+EBUILD mingw-runtime-3.9.ebuild 1616 RMD160 bcb42a4e64ffa4790c636ddf8dc97124d8e88c14 SHA1 facc5c68dc36c4a75cc44ed14aa556f93f2052bb SHA256 fb17b58b485e30d14df0b4a1b113ec6a30e89fadf85e4758c6702af77c15c165
+MD5 85e97afbcee9990a9d2e6724a1e6fffa mingw-runtime-3.9.ebuild 1616
+RMD160 bcb42a4e64ffa4790c636ddf8dc97124d8e88c14 mingw-runtime-3.9.ebuild 1616
+SHA256 fb17b58b485e30d14df0b4a1b113ec6a30e89fadf85e4758c6702af77c15c165 mingw-runtime-3.9.ebuild 1616
+MISC ChangeLog 253 RMD160 bc51ee0cfd4e9e8658f9933ed0ba33af3db35b43 SHA1 4b52ec86daeaa1d5948cdddf0cc00c69c2807f29 SHA256 e4d2b637ce7a5d28048e40f31fb8c17fe65a0db0c2da30ff2501da9e87cb06bb
+MD5 60c0cf828077ef1698de051962c703ce ChangeLog 253
+RMD160 bc51ee0cfd4e9e8658f9933ed0ba33af3db35b43 ChangeLog 253
+SHA256 e4d2b637ce7a5d28048e40f31fb8c17fe65a0db0c2da30ff2501da9e87cb06bb ChangeLog 253
+MISC metadata.xml 223 RMD160 36e6a5940590832029aac6ed270f60d5fa1baae2 SHA1 0508f80e0b5a4b8e1ee231a8598b77408790c6c9 SHA256 b2f3120f8e01640fb311c3e50a5c37b69ff39fc4cb9fc4524456231143d9b46a
+MD5 5cb5b78617763221de65594c062356bb metadata.xml 223
+RMD160 36e6a5940590832029aac6ed270f60d5fa1baae2 metadata.xml 223
+SHA256 b2f3120f8e01640fb311c3e50a5c37b69ff39fc4cb9fc4524456231143d9b46a metadata.xml 223
+MD5 25bee3d9b6c2a48a4172a4b5905a58c8 files/digest-mingw-runtime-3.10 268
+RMD160 ed51469b765a19b2d78f39b0b3fc6dbb52517413 files/digest-mingw-runtime-3.10 268
+SHA256 1a53e3a7535b33e61513c1c7b825de437a7c18e3a133a93d6569400c14d830e7 files/digest-mingw-runtime-3.10 268
+MD5 04e91ddce8a3d6d49718a360d094f88d files/digest-mingw-runtime-3.9 265
+RMD160 b22798b7f18ee32d2789c297f9154d8e2fea5891 files/digest-mingw-runtime-3.9 265
+SHA256 cfd69ae054434425d59eed64b731441c2c4aeea16d8a5eca4b3b26bc1717afcc files/digest-mingw-runtime-3.9 265
diff --git a/dev-util/mingw-runtime/files/digest-mingw-runtime-3.10 b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.10
new file mode 100644
index 000000000000..f3064ed921f2
--- /dev/null
+++ b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.10
@@ -0,0 +1,3 @@
+MD5 9225684e663eafa900b4075731c25f4c mingw-runtime-3.10-src.tar.gz 338373
+RMD160 b8c20dfec6f188a50a51a7fd2c4c3a1228554daa mingw-runtime-3.10-src.tar.gz 338373
+SHA256 eefa03102b49a529c7fa30a531487ded69ac57384ae3a0f07fd0a24af5c9ea2d mingw-runtime-3.10-src.tar.gz 338373
diff --git a/dev-util/mingw-runtime/files/digest-mingw-runtime-3.9 b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.9
new file mode 100644
index 000000000000..952c3ad35105
--- /dev/null
+++ b/dev-util/mingw-runtime/files/digest-mingw-runtime-3.9
@@ -0,0 +1,3 @@
+MD5 9111435bbc9b78b5a5f08ac8d6310a5a mingw-runtime-3.9-src.tar.gz 301241
+RMD160 b50c14fb566f94a9eee40cc2e716c67aa8bece29 mingw-runtime-3.9-src.tar.gz 301241
+SHA256 e3b1aaa2405a8aa5dbbd2eb0e286c03dcb6e0b9ad6c0f8b64ea02dc3bd3470fc mingw-runtime-3.9-src.tar.gz 301241
diff --git a/dev-util/mingw-runtime/files/mingw-runtime-3.9-DESTDIR.patch b/dev-util/mingw-runtime/files/mingw-runtime-3.9-DESTDIR.patch
new file mode 100644
index 000000000000..da2fc91b79ee
--- /dev/null
+++ b/dev-util/mingw-runtime/files/mingw-runtime-3.9-DESTDIR.patch
@@ -0,0 +1,36 @@
+--- Makefile.in
++++ Makefile.in
+@@ -58,6 +58,10 @@
+ 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)
+
+ # The Mingw headers are installed under a subdirectory of
+ # $(tooldir)/include when configuring in Cygwin.
+@@ -199,6 +199,7 @@
+ all_dlls_host: $(DLLS)
+
+ install_dlls_host:
++ $(mkinstalldirs) $(inst_bindir)
+ for i in $(DLLS); do \
+ $(INSTALL_PROGRAM) $$i $(inst_bindir)/$$i ; \
+ done
+@@ -401,12 +401,14 @@
+ $(mkinstalldirs) $(inst_docdir)
+
+ install: all install-dirs $(install_dlls_host)
++ $(mkinstalldirs) $(inst_libdir)
+ for i in $(LIBS); do \
+ $(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \
+ done
+ for i in $(CRT0S); do \
+ $(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \
+ done
++ $(mkinstalldirs) $(inst_docdir)
+ for i in $(INSTDOCS); do \
+ $(INSTALL_DATA) $(srcdir)/$$i $(inst_docdir)/$$i ; \
+ done
diff --git a/dev-util/mingw-runtime/metadata.xml b/dev-util/mingw-runtime/metadata.xml
new file mode 100644
index 000000000000..03c1702c15bf
--- /dev/null
+++ b/dev-util/mingw-runtime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>toolchain</herd>
+<maintainer>
+ <email>cretin@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.10.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.10.ebuild
new file mode 100644
index 000000000000..edce0cc437cf
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.10.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2006 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.10.ebuild,v 1.1 2006/09/17 07:03:45 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
+
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+SRC_URI="mirror://sourceforge/mingw/${P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="-*"
+IUSE=""
+
+DEPEND=""
+
+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.9-DESTDIR.patch
+}
+
+src_compile() {
+ just_headers && return 0
+
+ strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET} \
+ || die
+ emake || die
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ emake install DESTDIR="${D}" || die
+ rm -rf "${D}"/usr/${CTARGET}/doc
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ dosym usr/include /usr/${CTARGET}/sys-include
+}
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.9.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.9.ebuild
new file mode 100644
index 000000000000..63ab78fe0b54
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.9.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2006 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.9.ebuild,v 1.1 2006/09/17 07:03:45 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 eutils
+
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+SRC_URI="mirror://sourceforge/mingw/${P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+
+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}"
+ edos2unix \
+ $(find -name configure) \
+ $(find -name Makefile.in) \
+ mkinstalldirs
+ sed -i \
+ -e "/W32API_INCLUDE/s:=.*:='-I /usr/${CTARGET}/usr/include':" \
+ $(find -name configure) || die
+ epatch "${FILESDIR}"/${P}-DESTDIR.patch
+}
+
+src_compile() {
+ just_headers && return 0
+
+ strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET} \
+ || die
+ emake || die
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ emake install DESTDIR="${D}" || die
+ rm -rf "${D}"/usr/${CTARGET}/doc
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ dosym usr/include /usr/${CTARGET}/sys-include
+}