diff options
author | Stefan Jones <cretin@gentoo.org> | 2003-10-02 10:23:38 +0000 |
---|---|---|
committer | Stefan Jones <cretin@gentoo.org> | 2003-10-02 10:23:38 +0000 |
commit | e215a6ad68f0504eca6473c22a52746dd57125ee (patch) | |
tree | 168a53ae38171b0f8233c3a81f6489c6323d8cc4 /dev-util/xmingw-gcc | |
parent | Bump (diff) | |
download | historical-e215a6ad68f0504eca6473c22a52746dd57125ee.tar.gz historical-e215a6ad68f0504eca6473c22a52746dd57125ee.tar.bz2 historical-e215a6ad68f0504eca6473c22a52746dd57125ee.zip |
New ebuild
Diffstat (limited to 'dev-util/xmingw-gcc')
-rw-r--r-- | dev-util/xmingw-gcc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/xmingw-gcc/Manifest | 4 | ||||
-rw-r--r-- | dev-util/xmingw-gcc/files/digest-xmingw-gcc-3.3.1 | 4 | ||||
-rw-r--r-- | dev-util/xmingw-gcc/files/gcc-3.3.1-includefix.diff | 21 | ||||
-rw-r--r-- | dev-util/xmingw-gcc/xmingw-gcc-3.3.1.ebuild | 60 |
5 files changed, 97 insertions, 0 deletions
diff --git a/dev-util/xmingw-gcc/ChangeLog b/dev-util/xmingw-gcc/ChangeLog new file mode 100644 index 000000000000..e6f5df9fa388 --- /dev/null +++ b/dev-util/xmingw-gcc/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-util/xmingw-gcc +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-gcc/ChangeLog,v 1.1 2003/10/02 10:19:39 cretin Exp $ + +* xmingw-gcc-3.3.1 (01 Oct 2003) + + 01 Oct 2003; Stefan Jones <cretin@gentoo.org> : + Initial ebuild diff --git a/dev-util/xmingw-gcc/Manifest b/dev-util/xmingw-gcc/Manifest new file mode 100644 index 000000000000..b5e024b7f22f --- /dev/null +++ b/dev-util/xmingw-gcc/Manifest @@ -0,0 +1,4 @@ +MD5 799d6c961981e2818fd7d0566535be4a xmingw-gcc-3.3.1.ebuild 1726 +MD5 22bad980f347db2267d2c5de86afc363 ChangeLog 321 +MD5 d71c6facc23b16c6ba56b97cbb4efbf8 files/digest-xmingw-gcc-3.3.1 279 +MD5 f15585878583770a2d6c7d0ce5014264 files/gcc-3.3.1-includefix.diff 798 diff --git a/dev-util/xmingw-gcc/files/digest-xmingw-gcc-3.3.1 b/dev-util/xmingw-gcc/files/digest-xmingw-gcc-3.3.1 new file mode 100644 index 000000000000..978e83cd55e4 --- /dev/null +++ b/dev-util/xmingw-gcc/files/digest-xmingw-gcc-3.3.1 @@ -0,0 +1,4 @@ +MD5 1135a104e9fa36fdf7c663598fab5c40 gcc-3.3.1.tar.bz2 23544362 +MD5 881d91809e79452b593d12b73130913f gcc-3.3.1-20030804-1-src.diff.gz 73048 +MD5 80a8eacd4dcb130bda42c42d35a4e564 mingw-runtime-3.1-src.tar.gz 263369 +MD5 931b25da6223bd72ada13e83443cc6ed w32api-2.4-src.tar.gz 946314 diff --git a/dev-util/xmingw-gcc/files/gcc-3.3.1-includefix.diff b/dev-util/xmingw-gcc/files/gcc-3.3.1-includefix.diff new file mode 100644 index 000000000000..3a90c8ab5212 --- /dev/null +++ b/dev-util/xmingw-gcc/files/gcc-3.3.1-includefix.diff @@ -0,0 +1,21 @@ +Stefan Jones <cretin@gentoo.org>: + Some more include dirs are needed in certain places when bootstraping + a clean system to make g++ + +--- gcc-3.3.1/gcc/config/i386/t-cygming.jj 2003-10-01 21:26:15.614537232 +0100 ++++ gcc-3.3.1/gcc/config/i386/t-cygming 2003-10-01 21:29:59.550493792 +0100 +@@ -8,7 +8,8 @@ + # If we are building next to winsup, this will let us find the real + # limits.h when building libgcc2. Otherwise, winsup must be installed + # first. +-LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include ++LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include \ ++ -I$(srcdir)/../winsup/cygwin/include + + LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c + +@@ -19,3 +20,4 @@ + STMP_FIXPROTO= + STMP_FIXINC=stmp-fixinc + ++CRTSTUFF_CFLAGS += -isystem $(srcdir)/../winsup/cygwin/include diff --git a/dev-util/xmingw-gcc/xmingw-gcc-3.3.1.ebuild b/dev-util/xmingw-gcc/xmingw-gcc-3.3.1.ebuild new file mode 100644 index 000000000000..f4b43099be60 --- /dev/null +++ b/dev-util/xmingw-gcc/xmingw-gcc-3.3.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-gcc/xmingw-gcc-3.3.1.ebuild,v 1.1 2003/10/02 10:19:39 cretin Exp $ + +DESCRIPTION="The GNU Compiler Collection - i386-mingw32msvc-gcc only" + +HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" + +P=${P/xmingw-/} + +MINGW_PATCH=gcc-3.3.1-20030804-1-src.diff.gz +RUNTIME=mingw-runtime-3.1 +W32API=w32api-2.4 + +SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.bz2 + mirror://sourceforge/mingw/${MINGW_PATCH} + mirror://sourceforge/mingw/${RUNTIME}-src.tar.gz + mirror://sourceforge/mingw/${W32API}-src.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="x86" +IUSE="" +DEPEND="dev-util/xmingw-binutils" + +S=${WORKDIR}/${P} + +export PATH=$PATH:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin +unset CFLAGS CXXFLAGS + +src_unpack() { + unpack ${P}.tar.bz2 + unpack ${RUNTIME}-src.tar.gz + unpack ${W32API}-src.tar.gz + cd ${S}; gzip -dc ${DISTDIR}/${MINGW_PATCH} | patch -p1 + patch -p1 < ${FILESDIR}/gcc-3.3.1-includefix.diff + + mkdir -p ${S}/winsup/cygwin ${S}/winsup/w32api + cd ${S}/winsup/cygwin;ln -s ${WORKDIR}/${RUNTIME}/include . + cd ${S}/winsup/w32api;ln -s ${WORKDIR}/${W32API}/include . +} + +src_compile() { + cd ${S} + if has_version dev-util/xmingw-runtime \ + && has_version dev-util/xmingw-w32api + then + lang=c,c++ + else + lang=c + fi + + ./configure --target=i386-mingw32msvc --prefix=/opt/xmingw --enable-languages=${lang} --disable-shared --disable-nls --enable-threads --with-gcc --with-gnu-ld --with-gnu-as --disable-win32-registry --enable-sjlj-exceptions --without-x --without-newlib || die + + make || die +} + +src_install() { + make DESTDIR=${D} install || die +} |