# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Henry Spencer's regular expression library for xmingw cross-compiler" HOMEPAGE="http://arglist.com/regex/" SRC_URI="http://arglist.com/regex/rxspencer-alpha${PV}.g3.tar.gz" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=dev-util/xmingw-runtime-3.2 dev-util/xmingw-w32api dev-util/xmingw-gcc" S="${WORKDIR}/rxspencer-alpha${PV}.g3" src_unpack() { unpack "${A}" cd "${S}" autoreconf libtoolize --force } src_compile() { export PATH="/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin:$PATH" export CC="i386-mingw32msvc-gcc" unset CFLAGS unset CPPFLAGS unset LDFLAGS export CFLAGS="-I/opt/xmingw/i386-mingw32msvc/include" ./configure \ --prefix=/opt/xmingw/i386-mingw32msvc \ --target=i386-mingw32msvc \ --host=i386-mingw32msvc \ || die "configure failed" emake || die "make failed" } src_install() { make prefix=${D}/opt/xmingw/i386-mingw32msvc install || die "make install failed" ln -s rxspencer/regex.h ${D}/opt/xmingw/i386-mingw32msvc/include/regex.h }