diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-09 22:42:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-09 22:42:36 +0000 |
commit | ab915187dbc85b79865bbc2050574794ed7e5df8 (patch) | |
tree | 8d18cf11cc75d2875b40a303300ca4c690a3aafe /dev-util/mingw64-runtime | |
parent | stable x86, bug 295904 (diff) | |
download | historical-ab915187dbc85b79865bbc2050574794ed7e5df8.tar.gz historical-ab915187dbc85b79865bbc2050574794ed7e5df8.tar.bz2 historical-ab915187dbc85b79865bbc2050574794ed7e5df8.zip |
Initial ebuild based on mingw-runtime by Suertreus #271197.
Package-Manager: portage-2.2_rc55/cvs/Linux x86_64
Diffstat (limited to 'dev-util/mingw64-runtime')
-rw-r--r-- | dev-util/mingw64-runtime/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/mingw64-runtime/Manifest | 14 | ||||
-rw-r--r-- | dev-util/mingw64-runtime/metadata.xml | 5 | ||||
-rw-r--r-- | dev-util/mingw64-runtime/mingw64-runtime-20090419.ebuild | 61 |
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-util/mingw64-runtime/ChangeLog b/dev-util/mingw64-runtime/ChangeLog new file mode 100644 index 000000000000..3e051e6db767 --- /dev/null +++ b/dev-util/mingw64-runtime/ChangeLog @@ -0,0 +1,10 @@ +# 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 $ + +*mingw64-runtime-20090419 (09 Dec 2009) + + 09 Dec 2009; Mike Frysinger <vapier@gentoo.org> + +mingw64-runtime-20090419.ebuild, +metadata.xml: + Initial ebuild based on mingw-runtime by Suertreus #271197. + diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest new file mode 100644 index 000000000000..44d045ecdc36 --- /dev/null +++ b/dev-util/mingw64-runtime/Manifest @@ -0,0 +1,14 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST mingw-w64-snapshot-20090419.tar.bz2 4315304 RMD160 8246623e3fd4a24a0699e3135f50d2e4032316ec SHA1 9ee1e2612315057f97312838bc7a0f6b8e491250 SHA256 1bc0c9ac6a371e6345e46be022459e7aec70c9adac3e1bb092c4a16b4a8ea16a +EBUILD mingw64-runtime-20090419.ebuild 1569 RMD160 10a1f5426042cee084cd7a8d1ff52f75e7efa89d SHA1 9cc6e09bc28ab9a880a42632834191160141de4e SHA256 9b8d2bfd57eed6169cd05300a9bb6edfb83d8a54d520cec7394a26c8f0fc28d5 +MISC ChangeLog 426 RMD160 765c8f1ddb87fb6e09ebf76ffb3f689c15b7c75a SHA1 8110bb2b2e933489a3e0b4b1ad0af7db7ea19918 SHA256 4c76e6ac14abe7d9e917b48e9a447809acbe87fc438bcbcdc039f9c7c0f4c9b4 +MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.13 (GNU/Linux) + +iEYEARECAAYFAksgJ/wACgkQlPl3HsVfCDqcuQCfXkubF7ZjRTK74gjyFgmygChp +x4oAni9WAksxvEf03k3EkmMVCLeWyE6c +=lhrp +-----END PGP SIGNATURE----- diff --git a/dev-util/mingw64-runtime/metadata.xml b/dev-util/mingw64-runtime/metadata.xml new file mode 100644 index 000000000000..fb4199eb7afe --- /dev/null +++ b/dev-util/mingw64-runtime/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>toolchain</herd> +</pkgmetadata> diff --git a/dev-util/mingw64-runtime/mingw64-runtime-20090419.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-20090419.ebuild new file mode 100644 index 000000000000..7bb22b111bfe --- /dev/null +++ b/dev-util/mingw64-runtime/mingw64-runtime-20090419.ebuild @@ -0,0 +1,61 @@ +# 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-20090419.ebuild,v 1.1 2009/12/09 22:42:36 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 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-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() { + just_headers && return 0 + + CHOST=${CTARGET} strip-unsupported-flags + econf --host=${CTARGET} || die + emake || die +} + +src_install() { + insinto /usr/${CTARGET}/usr/include + doins -r ../mingw-w64-headers/{,*/}include/* || die + is_crosscompile \ + && dosym usr /usr/${CTARGET}/mingw \ + && dosym usr/include /usr/${CTARGET}/sys-include + just_headers && return 0 + + local insdir + emake install DESTDIR="${D}" || die + env -uRESTRICT CHOST=${CTARGET} prepallstrip + rm -rf "${D}"/usr/doc + dodoc ChangeLog +} |