summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-02 23:18:10 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-02 23:18:10 +0000
commit8436aaa0dcd189cff7250198f44e5b15e21d821f (patch)
tree20d825a42c5cc93f6a5c36a5e1a20f26dbc4f339 /dev-util/w32api
parentktoblzcheck bump (diff)
downloadgentoo-2-8436aaa0dcd189cff7250198f44e5b15e21d821f.tar.gz
gentoo-2-8436aaa0dcd189cff7250198f44e5b15e21d821f.tar.bz2
gentoo-2-8436aaa0dcd189cff7250198f44e5b15e21d821f.zip
Version bump #173118 by Dennis Schridde.
(Portage version: 2.1.2.3)
Diffstat (limited to 'dev-util/w32api')
-rw-r--r--dev-util/w32api/ChangeLog7
-rw-r--r--dev-util/w32api/files/digest-w32api-3.93
-rw-r--r--dev-util/w32api/w32api-3.9.ebuild63
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-util/w32api/ChangeLog b/dev-util/w32api/ChangeLog
index bfe71b56835f..7b5d2707a3c7 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.4 2007/03/19 13:35:37 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/ChangeLog,v 1.5 2007/04/02 23:18:09 vapier Exp $
+
+*w32api-3.9 (02 Apr 2007)
+
+ 02 Apr 2007; Mike Frysinger <vapier@gentoo.org> +w32api-3.9.ebuild:
+ Version bump #173118 by Dennis Schridde.
19 Mar 2007; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
Remove cretin from metadata.xml due to retirement.
diff --git a/dev-util/w32api/files/digest-w32api-3.9 b/dev-util/w32api/files/digest-w32api-3.9
new file mode 100644
index 000000000000..1fc4767bac92
--- /dev/null
+++ b/dev-util/w32api/files/digest-w32api-3.9
@@ -0,0 +1,3 @@
+MD5 be0b0219645a4ee0f3495c2abf90b5ad w32api-3.9-src.tar.gz 1192048
+RMD160 a0c674c91ca7be2d0bd019e7ac77d4750b884665 w32api-3.9-src.tar.gz 1192048
+SHA256 6f4d5dff0d3de31f566592afb34c572455227e45100e9e7f647cc5d16eacb661 w32api-3.9-src.tar.gz 1192048
diff --git a/dev-util/w32api/w32api-3.9.ebuild b/dev-util/w32api/w32api-3.9.ebuild
new file mode 100644
index 000000000000..86004685aac5
--- /dev/null
+++ b/dev-util/w32api/w32api-3.9.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/w32api/w32api-3.9.ebuild,v 1.1 2007/04/02 23:18:09 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"
+ 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
+}