summaryrefslogtreecommitdiff
path: root/dev-util/w32api
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/w32api
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/w32api')
-rw-r--r--dev-util/w32api/Manifest7
-rw-r--r--dev-util/w32api/metadata.xml11
-rw-r--r--dev-util/w32api/w32api-3.17.2.ebuild63
-rw-r--r--dev-util/w32api/w32api-4.0.3.1.ebuild67
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-util/w32api/Manifest b/dev-util/w32api/Manifest
new file mode 100644
index 000000000000..188075d64173
--- /dev/null
+++ b/dev-util/w32api/Manifest
@@ -0,0 +1,7 @@
+DIST w32api-3.17-2-mingw32-src.tar.lzma 965844 SHA256 8b23391c9cc7f6884c9f6a3c6ad32fbe6530992ca54660d2f2adcef80db53027 SHA512 4fc8f319ab895366fb3757713e2724f8f4c90593687f1ccfdbfa6a52881ddc430167326e782117ae937c7e456e029132b971c3a041889bcfb876a84741475a1f WHIRLPOOL 2c5bc864f967fab73fde3eabdecdae1fad66dd14ffc2c66c69cbe39ba02f31cce94a63c4bf2a05ffe39dcd7bb1f58c372be6293761ff2c9a16ce23ddeec188be
+DIST w32api-4.0.3-1-mingw32-src.tar.lzma 1341804 SHA256 ea0ff65fae99624078f8c42754def4d63a97624779bab73e858683def7bc936f SHA512 9295b7e803b1551dfefbf527e98fa315d60c70f6b63b4565942f7bc3d6032483d5ec4f76265b376fc6776c5ecfd1ad47fd912764c390b0b6917b1ad382250977 WHIRLPOOL f0e6a9a90916f43ac8eddb0a4bd56514c4e598b6bc851364405f420836c6ae892850ffdf2ba80705ae349b20d6aa1370553353ab3df441feb34069b80ce56e2d
+EBUILD w32api-3.17.2.ebuild 1538 SHA256 d019a8f7a8d18b62845e74e6ce332d9f54b5d881a2ab3d80ff01d819be94dd50 SHA512 b800e604bd25daf552391ab5d01d3738c975bb67b3804ef8d0054bfd45d1dddb7432e65314f176a650ba27f69a73efde7be73b847be8336e0a675754c3b6fa84 WHIRLPOOL 7153828a597a9a455d1398b89607896022a8387a8fcf84e4790233d23ac3588c2a8d0b6e71ae3de3c679890aa488803c8fccfa4074f7076241ce8e58c4059ecd
+EBUILD w32api-4.0.3.1.ebuild 1634 SHA256 9b1bacdef4a0a2ca610eea3e047b56a5bcc7678e02bead234cd5da0229c5fb9a SHA512 dc5c1d2f8f3692ad3ab0c56938e29f4e2a984be0be4675a0be8bc0c306741c456a7b9d1a65f0ff6e377b0123d17a1454c2dc320323ff14a68c6da1141205210d WHIRLPOOL 3e2cbcb504662bbd76f184bcd179e54e82efcf95b12ac4adad7c075de0290b32bbc65aa32293632daff6c5d1c95d51563afe4139f76150cc2ff477410998021c
+MISC ChangeLog 2617 SHA256 d6daf3ce2a95971e2ff35c0c5167ca989061d11a619c767f9655b291e4d693b2 SHA512 067d0e06f4e1e3d2eb8b78955457c0d29a0d44d4aff009040532a4c7176d8d8e12bfbfed9d183a4b0cbc19c7ed5e5de52cc9e352eb9c9d37b093942cea8eb9ee WHIRLPOOL ceda35f03bf0affc1f7fd0eb519bf27b0a419528e1d4abdd4d029495bc41181ff37d0cb7d40c5554df84eb0bf585f05bde1ed739034c2419ee2cbc1d36187c87
+MISC ChangeLog-2015 2928 SHA256 44b16b1dafc136a568dd6e2645f49fb67045f82a3a0d5dc54cfb9aa69b7a260d SHA512 8d1a2939d3d8f96133b2ee1640825abe1ed93a3c1e484b5f72ce60fed0e779d73ff9799e06f13d314d51ecdd21da79e83d23bc3f70375942b0b3e016c9a0f891 WHIRLPOOL f9c1514c8eebbdc6be2770448fffb5bd57dee81a4d6bad05e711b07b9d3d0d5ae63086dcda3aa22d5dc66d6cf5c57c221888641190bf85e3ff8c4a4959119729
+MISC metadata.xml 336 SHA256 a0331895152c717fa18ca5b1dcfe6e508c1a658c70f7302ae94b35126eab361b SHA512 c15c4f7fe2796147558f99a89942b216159b291e18dfb02358f0985fef55e7ce166dbd0831ef24938a5bc76377634036932e0ce1526d01c2b07be35cac17cbf9 WHIRLPOOL 1243f7c570849051d8b915f29664c42cb68d91debad0496179187dff896f677e9a6bd560c8d9aa75e3ab8c5254843825c55d4b5b2abc620cc56135a5c8c1ad52
diff --git a/dev-util/w32api/metadata.xml b/dev-util/w32api/metadata.xml
new file mode 100644
index 000000000000..6c377f90be9b
--- /dev/null
+++ b/dev-util/w32api/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mingw</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/w32api/w32api-3.17.2.ebuild b/dev-util/w32api/w32api-3.17.2.ebuild
new file mode 100644
index 000000000000..c04ebdcfad70
--- /dev/null
+++ b/dev-util/w32api/w32api-3.17.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit eutils flag-o-matic
+
+MY_P="${P:0:${#P}-2}-${PV:0-1}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+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_compile() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET}/usr
+ 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
+
+ # Make sure diff cross-compilers don't collide #414075
+ mv "${D}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
+ fi
+}
diff --git a/dev-util/w32api/w32api-4.0.3.1.ebuild b/dev-util/w32api/w32api-4.0.3.1.ebuild
new file mode 100644
index 000000000000..0d8deb3895a8
--- /dev/null
+++ b/dev-util/w32api/w32api-4.0.3.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P="${P:0:${#P}-2}-${PV:0-1}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+# Collides with mingw-runtime-4.x
+#KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-m/.m}-src
+
+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_configure() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ filter-flags -frecord-gcc-switches
+ tc-export AR
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET}/usr \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/*
+ else
+ emake -j1 install DESTDIR="${D}"
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+
+ # Make sure diff cross-compilers don't collide #414075
+ mv "${D}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
+ fi
+}