diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-09-17 07:04:05 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-09-17 07:04:05 +0000 |
commit | d2d257ed2e78c8bf062451426a262faf4da5268b (patch) | |
tree | 3b61de821dbcbb5df0dc2018f5ab625792b4b4f6 /dev-util/w32api | |
parent | initial import for crossdev based mingw32 toolchain (diff) | |
download | gentoo-2-d2d257ed2e78c8bf062451426a262faf4da5268b.tar.gz gentoo-2-d2d257ed2e78c8bf062451426a262faf4da5268b.tar.bz2 gentoo-2-d2d257ed2e78c8bf062451426a262faf4da5268b.zip |
initial import for crossdev based mingw32 toolchain
(Portage version: 2.1.1)
Diffstat (limited to 'dev-util/w32api')
-rw-r--r-- | dev-util/w32api/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/w32api/Manifest | 20 | ||||
-rw-r--r-- | dev-util/w32api/files/digest-w32api-3.7 | 3 | ||||
-rw-r--r-- | dev-util/w32api/files/w32api-3.7-DESTDIR.patch | 33 | ||||
-rw-r--r-- | dev-util/w32api/metadata.xml | 8 | ||||
-rw-r--r-- | dev-util/w32api/w32api-3.7.ebuild | 61 |
6 files changed, 133 insertions, 0 deletions
diff --git a/dev-util/w32api/ChangeLog b/dev-util/w32api/ChangeLog new file mode 100644 index 000000000000..31da7157c46b --- /dev/null +++ b/dev-util/w32api/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-util/w32api +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.1 2006/09/17 07:04:05 vapier Exp $ + +*w32api-3.7 (17 Sep 2006) + + 17 Sep 2006; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/dev-util/w32api/Manifest b/dev-util/w32api/Manifest new file mode 100644 index 000000000000..3958ddb06952 --- /dev/null +++ b/dev-util/w32api/Manifest @@ -0,0 +1,20 @@ +AUX w32api-3.7-DESTDIR.patch 877 RMD160 d742e957f3f2e98f2e3d219593324ee56e0b5a29 SHA1 98f050e760f429b234764c5458287e80943bc4a9 SHA256 d461787c12f0784c88295ffc804847d838343ecf553db4c6467da7b597ea8d59 +MD5 9b20c4d6f6acc3a456adeaff1ae6d85f files/w32api-3.7-DESTDIR.patch 877 +RMD160 d742e957f3f2e98f2e3d219593324ee56e0b5a29 files/w32api-3.7-DESTDIR.patch 877 +SHA256 d461787c12f0784c88295ffc804847d838343ecf553db4c6467da7b597ea8d59 files/w32api-3.7-DESTDIR.patch 877 +DIST w32api-3.7-src.tar.gz 1110397 RMD160 ad864a0ef280fc027bb00093f270cd84ff14547f SHA1 b63ef3cd0690ba211ddee560ddb5c8444587c6cb SHA256 337950a4c5a56264242d6ec2026c8bcb06b4256ef345b7fb0aa5883b1107572d +EBUILD w32api-3.7.ebuild 1345 RMD160 9601a7dc56bd601a85e388e8093d29fd896b9c4b SHA1 b457dec537920b222d8a7240c19fca89e095f839 SHA256 aa2f1d07cd09c502cb13a6db8a346801881dc8fd71244ed59aa055c5f32e4f16 +MD5 953b3901338e382088a2ded588765690 w32api-3.7.ebuild 1345 +RMD160 9601a7dc56bd601a85e388e8093d29fd896b9c4b w32api-3.7.ebuild 1345 +SHA256 aa2f1d07cd09c502cb13a6db8a346801881dc8fd71244ed59aa055c5f32e4f16 w32api-3.7.ebuild 1345 +MISC ChangeLog 238 RMD160 076a6e1130f4bb6ef66844bd99b8f28301a67dac SHA1 686f28b6b0d829a85f2de5739e58987c4eb0e37b SHA256 0ad1c40d16e4f29430a2dc378c78b785cb5ac453b2ae63bad3e966032a398f6f +MD5 5421a87968d23152d95b16ebc99fa1cb ChangeLog 238 +RMD160 076a6e1130f4bb6ef66844bd99b8f28301a67dac ChangeLog 238 +SHA256 0ad1c40d16e4f29430a2dc378c78b785cb5ac453b2ae63bad3e966032a398f6f ChangeLog 238 +MISC metadata.xml 223 RMD160 36e6a5940590832029aac6ed270f60d5fa1baae2 SHA1 0508f80e0b5a4b8e1ee231a8598b77408790c6c9 SHA256 b2f3120f8e01640fb311c3e50a5c37b69ff39fc4cb9fc4524456231143d9b46a +MD5 5cb5b78617763221de65594c062356bb metadata.xml 223 +RMD160 36e6a5940590832029aac6ed270f60d5fa1baae2 metadata.xml 223 +SHA256 b2f3120f8e01640fb311c3e50a5c37b69ff39fc4cb9fc4524456231143d9b46a metadata.xml 223 +MD5 eb5fce3c7a74828f88ddba298b4f77e3 files/digest-w32api-3.7 247 +RMD160 a1d395de121e4eab72a2756eb405e628767c5063 files/digest-w32api-3.7 247 +SHA256 9e2443f1c9e90307a1f80c7933679fa415a3820a9db58409b5ad37cc1e47e32b files/digest-w32api-3.7 247 diff --git a/dev-util/w32api/files/digest-w32api-3.7 b/dev-util/w32api/files/digest-w32api-3.7 new file mode 100644 index 000000000000..550c84104f25 --- /dev/null +++ b/dev-util/w32api/files/digest-w32api-3.7 @@ -0,0 +1,3 @@ +MD5 d799c407b4c1b480d0339994d01f355d w32api-3.7-src.tar.gz 1110397 +RMD160 ad864a0ef280fc027bb00093f270cd84ff14547f w32api-3.7-src.tar.gz 1110397 +SHA256 337950a4c5a56264242d6ec2026c8bcb06b4256ef345b7fb0aa5883b1107572d w32api-3.7-src.tar.gz 1110397 diff --git a/dev-util/w32api/files/w32api-3.7-DESTDIR.patch b/dev-util/w32api/files/w32api-3.7-DESTDIR.patch new file mode 100644 index 000000000000..de7645961a14 --- /dev/null +++ b/dev-util/w32api/files/w32api-3.7-DESTDIR.patch @@ -0,0 +1,33 @@ +--- w32api-3.7/lib/Makefile.in ++++ w32api-3.7/lib/Makefile.in +@@ -46,6 +46,8 @@ + inst_includedir:=$(includedir) + inst_libdir:=$(libdir) + endif ++inst_includedir:=$(DESTDIR)$(inst_includedir) ++inst_libdir:=$(DESTDIR)$(inst_libdir) + + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ +--- w32api-3.7/lib/directx/Makefile.in ++++ w32api-3.7/lib/directx/Makefile.in +@@ -42,6 +42,8 @@ + inst_includedir:=$(includedir) + inst_libdir:=$(libdir) + endif ++inst_includedir:=$(DESTDIR)$(inst_includedir) ++inst_libdir:=$(DESTDIR)$(inst_libdir) + + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ +--- w32api-3.7/lib/ddk/Makefile.in ++++ w32api-3.7/lib/ddk/Makefile.in +@@ -42,6 +42,8 @@ + inst_includedir:=$(includedir)/ddk + inst_libdir:=$(libdir) + endif ++inst_includedir:=$(DESTDIR)$(inst_includedir) ++inst_libdir:=$(DESTDIR)$(inst_libdir) + + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ diff --git a/dev-util/w32api/metadata.xml b/dev-util/w32api/metadata.xml new file mode 100644 index 000000000000..03c1702c15bf --- /dev/null +++ b/dev-util/w32api/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>toolchain</herd> +<maintainer> + <email>cretin@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/dev-util/w32api/w32api-3.7.ebuild b/dev-util/w32api/w32api-3.7.ebuild new file mode 100644 index 000000000000..233cd57b4064 --- /dev/null +++ b/dev-util/w32api/w32api-3.7.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/w32api-3.7.ebuild,v 1.1 2006/09/17 07:04:05 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 + +DESCRIPTION="Free Win32 runtime and import library definitions" +HOMEPAGE="http://www.mingw.org/" +SRC_URI="mirror://sourceforge/mingw/${P}-src.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" + +just_headers() { + use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] +} + +pkg_setup() { + if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then + die "Invalid configuration" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-DESTDIR.patch +} + +src_compile() { + just_headers && return 0 + + unset CFLAGS CXXFLAGS LDFLAGS + econf \ + --host=${CTARGET} \ + --prefix=/usr/${CTARGET}/usr \ + || die + emake || die +} + +src_install() { + if just_headers ; then + insinto /usr/${CTARGET}/usr/include + doins -r include/* || die + else + emake install DESTDIR="${D}" || die + dodoc CONTRIBUTIONS ChangeLog README.w32api TODO + fi +} |