summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-20 03:46:26 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-20 03:46:26 +0000
commitfedad861a9eee7e828a321b05c6db2902f52bff0 (patch)
tree5c7e8b25e566b356d167e56d5e3750f2c6d9ec41 /dev-util/w32api
parentAdding new version (diff)
downloadgentoo-2-fedad861a9eee7e828a321b05c6db2902f52bff0.tar.gz
gentoo-2-fedad861a9eee7e828a321b05c6db2902f52bff0.tar.bz2
gentoo-2-fedad861a9eee7e828a321b05c6db2902f52bff0.zip
Version bump #205991 by Dennis Schridde.
(Portage version: 2.1.4)
Diffstat (limited to 'dev-util/w32api')
-rw-r--r--dev-util/w32api/ChangeLog9
-rw-r--r--dev-util/w32api/files/digest-w32api-3.113
-rw-r--r--dev-util/w32api/w32api-3.11.ebuild63
3 files changed, 73 insertions, 2 deletions
diff --git a/dev-util/w32api/ChangeLog b/dev-util/w32api/ChangeLog
index 984637e49c3e..2f0342adb01d 100644
--- a/dev-util/w32api/ChangeLog
+++ b/dev-util/w32api/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/w32api
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.6 2007/10/06 22:37:07 vapier Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.7 2008/01/20 03:46:25 vapier Exp $
+
+*w32api-3.11 (20 Jan 2008)
+
+ 20 Jan 2008; Mike Frysinger <vapier@gentoo.org> +w32api-3.11.ebuild:
+ Version bump #205991 by Dennis Schridde.
*w32api-3.10 (06 Oct 2007)
diff --git a/dev-util/w32api/files/digest-w32api-3.11 b/dev-util/w32api/files/digest-w32api-3.11
new file mode 100644
index 000000000000..05e923b507e9
--- /dev/null
+++ b/dev-util/w32api/files/digest-w32api-3.11
@@ -0,0 +1,3 @@
+MD5 bc37e4e6973f603c317a40602f7f35d9 w32api-3.11-src.tar.gz 1196762
+RMD160 6995c5c71c3076ee0fd3f544afc6642dcf0a225f w32api-3.11-src.tar.gz 1196762
+SHA256 852fee2c0aa5cd9ff529c1ba1d28668796c7c3dc959376f6a207a0b178ac5225 w32api-3.11-src.tar.gz 1196762
diff --git a/dev-util/w32api/w32api-3.11.ebuild b/dev-util/w32api/w32api-3.11.ebuild
new file mode 100644
index 000000000000..0e7da9d8bd87
--- /dev/null
+++ b/dev-util/w32api/w32api-3.11.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/w32api-3.11.ebuild,v 1.1 2008/01/20 03:46:25 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 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=""
+RESTRICT="strip"
+
+DEPEND=""
+
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration; do not emerge this directly"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-3.7-DESTDIR.patch
+}
+
+src_compile() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ 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
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ dodoc CONTRIBUTIONS ChangeLog README.w32api TODO
+ fi
+}