From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/cygwin/Manifest | 7 +++ dev-libs/cygwin/cygwin-1.5.25.15.ebuild | 91 +++++++++++++++++++++++++++++++++ dev-libs/cygwin/metadata.xml | 8 +++ 3 files changed, 106 insertions(+) create mode 100644 dev-libs/cygwin/Manifest create mode 100644 dev-libs/cygwin/cygwin-1.5.25.15.ebuild create mode 100644 dev-libs/cygwin/metadata.xml (limited to 'dev-libs/cygwin') diff --git a/dev-libs/cygwin/Manifest b/dev-libs/cygwin/Manifest new file mode 100644 index 000000000000..2b9a3d5a182a --- /dev/null +++ b/dev-libs/cygwin/Manifest @@ -0,0 +1,7 @@ +DIST cygwin-1.5.25-15-src.tar.bz2 11486150 SHA256 d10b2b08ad1fccfbf220855f5df673f972581c76408b85f07e4a2b72ae8ecafc SHA512 464553b06f74ffad464361b0bddb2eacc581abfb68f2154bba8f70334274ec63901b1f46f73cf930b05256467196e1b1ab8003215bb12ea6a42ad73fd9ac229a WHIRLPOOL 36e43e1bb0db72601ed0f3835c29f52fb95cec85c4e06bba43b088b9d077e6de13c1d0b5b743e2123243d75fe32dd6ff0b0ab95a855b03c3dadc181b5d377d1f +DIST cygwin-1.5.25-15.tar.bz2 1427096 SHA256 f21bc33798038f97c47f0d1962eb032707985146d98197257b963ffaf4a92bfc SHA512 72f677cd9140d4f61808203a56234e47b8e3a6e18438ff2c8d47d45472d6cc671e4dc42603967e62a1b2293d4bd9d4e1d95652746f939a6d5e1f1ec2f6c96105 WHIRLPOOL 2189e74137d8c40444212528c1215d92c99d51bd6cad5c7de8bb38b7aab05c6db4972f2936c241739f2b6933f93cf2b2df35d75500c2f56ada2be5411753ec7d +DIST w32api-3.12-1.tar.bz2 1229076 SHA256 dc7ae451b6dac6e52a9a4b28123fa099602f35172fd5920770ea8957929d2bf4 SHA512 739f1f71163cac83ed892dda157f25bb30e70f2c1b134df069a6ece5fb5784e4394d597b078a8a913b8b66fb0f617495aeb94ceab2f1e5a25dab712a010f3f29 WHIRLPOOL 7f220a1ba2bccf78261020e8e5e497888725d7193517dbec0805ea636176d95ea7341a6ab208ee452f76c9839dce6f892d1f43c0b159d3019f85904ecb0ce3b6 +EBUILD cygwin-1.5.25.15.ebuild 2264 SHA256 dfd8b2f798c84ab426bf2d78d27babf489ea1c6a53643f260830b8bff4626c37 SHA512 c275caa96013b67cf3788fb8f2e364be3d36eba60fabb88ae3c13a8651e3967880e87aae02d657973eea4d473a0e00f96f3f17ed869d69dee9502ee453ea3454 WHIRLPOOL b4989a1d8e9a0c3e91283f52e38d3de3c3034d4526d344a172ba88e698dc1f67c7021bb9074b19ff3d8287aeab2330fe3d1c90335652506d7f8fcd4d54e8cf22 +MISC ChangeLog 2432 SHA256 c6d123d1f8f0cd52790a61f265775410cb7ed0f48c95352f5cc11cd1b5371adc SHA512 74a695795c293454d763f8b29c4f19a39aa5802ceb6a0d469e918489c1f4fd9bd97c8b8d217cb1d215a34a0dc45705c5975d0d14dd553647c3247d7997b0c932 WHIRLPOOL 6eaae210e1309b2a71195c6041c3b37b775abfcfb0e0363a855476a2cf6892d2afb4900f2c8810026445d221cef01cb3c7c94ed19f8ff7c615cbcc3f11e991e4 +MISC ChangeLog-2015 479 SHA256 96e46bd5acf5100c5442846e5f8d439f5d7438ccbf44094fe24bb7ae90e2d70a SHA512 3239aa63d4ea1b11e02dcf3713c294b6c6fc591e954d9505f41e10c381c721eb6f0415d96601498871a6699c3369776573e1b142848245c8b64aad2dbfb41b46 WHIRLPOOL e7b5bd9bac0bb99ec5bc8d5974febcc5c9fc08541406d58d58bbcd71505c6a09081170d4d8057122fbce7f317b54e7e62590990aa71f9348b08d83e6c50c0ad4 +MISC metadata.xml 257 SHA256 fcb691c3299a07a5fe4f936baa5aa146b8aa3cb9491ba88fd12547cb540b02c2 SHA512 fd85d9cf15f6b7db96e4d184e32ae6f1503a5b70cb4cb1ce930ba13a1d5d4c4b24971781e95b7f3f9ead58b31760f84c368bc6fa2a793b4b5baf78259b047ff1 WHIRLPOOL 62b62e3e5489b8983ddd7bfc6017411d5e02f9710763206baa84b826388c8685fe7bdc0bb6a76c029e73ae4c160e9af6c8544406dc70a203c7c3d65d4aa15400 diff --git a/dev-libs/cygwin/cygwin-1.5.25.15.ebuild b/dev-libs/cygwin/cygwin-1.5.25.15.ebuild new file mode 100644 index 000000000000..bc05e39d191e --- /dev/null +++ b/dev-libs/cygwin/cygwin-1.5.25.15.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit flag-o-matic toolchain-funcs + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi + +W32API_BIN="3.12-1" +MY_P="${PN}-${PV%.*}-${PV##*.}" +DESCRIPTION="Linux-like environment for Windows" +HOMEPAGE="http://cygwin.com/" +SRC_URI="!crosscompile_opts_headers-only? ( ftp://sourceware.org/pub/cygwin/release/cygwin/${MY_P}-src.tar.bz2 ) + crosscompile_opts_headers-only? ( + ftp://sourceware.org/pub/cygwin/release/w32api/w32api-${W32API_BIN}.tar.bz2 + ftp://sourceware.org/pub/cygwin/release/cygwin/${MY_P}.tar.bz2 + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crosscompile_opts_headers-only" +RESTRICT="strip" + +DEPEND="" + +S=${WORKDIR} + +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} + if just_headers ; then + mv usr/lib/w32api/* usr/lib/ || die + else + rm -rf ${MY_P}/etc # scrub garbage + fi +} + +src_compile() { + if just_headers ; then + return 0 + + # steps to install via src pkg + cd winsup/cygwin + econf || die + else + CHOST=${CTARGET} strip-unsupported-flags + mkdir "${WORKDIR}"/build + cd "${WORKDIR}"/build + ECONF_SOURCE=${S} \ + econf --prefix=/usr/${CTARGET}/usr || die + emake || die + fi +} + +src_install() { + if just_headers ; then + # cygwin guys do not support bootstrapping. thus the cygwin src pkg + # blows and cannot be bootstrapped. use the binaries -- the only + # thing upstream supports. + insinto /usr/${CTARGET} + doins -r * || die + return 0 + + # steps to install via src pkg + insinto /usr/${CTARGET}/usr/include + doins -r winsup/w32api/include/* || die + doins -r newlib/libc/include/* || die + dosym usr/include /usr/${CTARGET}/sys-include + cd winsup/cygwin + emake install-headers tooldir="${D}"/usr/${CTARGET}/usr || die + else + cd "${WORKDIR}"/build + emake install DESTDIR="${D}" || die + env -uRESTRICT CHOST=${CTARGET} prepallstrip + fi +} diff --git a/dev-libs/cygwin/metadata.xml b/dev-libs/cygwin/metadata.xml new file mode 100644 index 000000000000..e396f3755977 --- /dev/null +++ b/dev-libs/cygwin/metadata.xml @@ -0,0 +1,8 @@ + + + + + toolchain@gentoo.org + Gentoo Toolchain Project + + -- cgit v1.2.3