diff options
Diffstat (limited to 'dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild')
-rw-r--r-- | dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild b/dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild new file mode 100644 index 000000000000..b06a0af55861 --- /dev/null +++ b/dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.15.90.0.2.ebuild,v 1.1 2004/04/15 10:22:55 cretin Exp $ + +inherit eutils + +MY_P=${P/xmingw-/} +S=${WORKDIR}/${MY_P} +MINGW_PATCH=binutils-2.15.90-20040222-1-src.diff.gz + +DESCRIPTION="Tools necessary to build Win32 programs" +HOMEPAGE="http://sources.redhat.com/binutils/" +SRC_URI="mirror://kernel/linux/devel/binutils/${MY_P}.tar.bz2 + mirror://sourceforge/mingw/${MINGW_PATCH}" + +LICENSE="GPL-2 | LGPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${MY_P}.tar.bz2 + cd ${S} + epatch "${DISTDIR}/${MINGW_PATCH}" +} + +src_compile() { + ./configure \ + --target=i386-mingw32msvc \ + --prefix=/opt/xmingw || die "configure failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" +} |