diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-22 13:49:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-22 13:49:35 +0000 |
commit | 1d5b12b2777c997a7c2a5ead7f46798d6f0f6489 (patch) | |
tree | ffd166567f087f159eeab66b3253a3855cba9da1 /dev-util/mingw64-runtime | |
parent | Fix SRC_URI and homepage (diff) | |
download | gentoo-2-1d5b12b2777c997a7c2a5ead7f46798d6f0f6489.tar.gz gentoo-2-1d5b12b2777c997a7c2a5ead7f46798d6f0f6489.tar.bz2 gentoo-2-1d5b12b2777c997a7c2a5ead7f46798d6f0f6489.zip |
Version bump #297819 by Alon Bar-Lev.
(Portage version: 2.2_rc60/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/mingw64-runtime')
-rw-r--r-- | dev-util/mingw64-runtime/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/mingw64-runtime/mingw64-runtime-20091222.ebuild | 68 |
2 files changed, 75 insertions, 1 deletions
diff --git a/dev-util/mingw64-runtime/ChangeLog b/dev-util/mingw64-runtime/ChangeLog index 3e051e6db767..ec642cfeaa1d 100644 --- a/dev-util/mingw64-runtime/ChangeLog +++ b/dev-util/mingw64-runtime/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/mingw64-runtime # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.1 2009/12/09 22:42:36 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/ChangeLog,v 1.2 2009/12/22 13:49:35 vapier Exp $ + +*mingw64-runtime-20091222 (22 Dec 2009) + + 22 Dec 2009; Mike Frysinger <vapier@gentoo.org> + +mingw64-runtime-20091222.ebuild: + Version bump #297819 by Alon Bar-Lev. *mingw64-runtime-20090419 (09 Dec 2009) diff --git a/dev-util/mingw64-runtime/mingw64-runtime-20091222.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-20091222.ebuild new file mode 100644 index 000000000000..b1402df495d7 --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-20091222.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-20091222.ebuild,v 1.1 2009/12/22 13:49:35 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 flag-o-matic + +DESCRIPTION="Free Win64 runtime and import library definitions" +HOMEPAGE="http://mingw-w64.sourceforge.net/" +SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64-trunk-snapshot-${PV}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only" +RESTRICT="strip" + +S=${WORKDIR}/trunk/mingw-w64-crt + +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_compile() { + # install the local headers as the crt step wants latest + pushd ../mingw-w64-headers >/dev/null + # directx sdk triggers failure, see upstream #2919341 + CHOST=${CTARGET} econf --enable-sdk=ddk || die + emake install DESTDIR="${WORKDIR}/sysroot" || die + popd >/dev/null + + just_headers && return 0 + + CHOST=${CTARGET} strip-unsupported-flags + append-cppflags -isystem "${WORKDIR}/sysroot/usr/${CTARGET}/include" + CHOST=${CTARGET} econf || die + emake || die +} + +src_install() { + insinto /usr/${CTARGET}/usr/include + doins -r "${WORKDIR}"/sysroot/usr/${CTARGET}/include/* || die + is_crosscompile \ + && dosym usr /usr/${CTARGET}/${CTARGET} \ + && dosym usr/include /usr/${CTARGET}/sys-include + just_headers && return 0 + + emake install DESTDIR="${D}" || die + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${D}"/usr/doc + dodoc ChangeLog +} |