public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/darwin-libc-headers/
Date: Mon, 11 Nov 2019 14:14:23 +0000 (UTC)	[thread overview]
Message-ID: <1573481656.75b53feec86f01987efdb7777e6c38ab4034b60f.grobian@gentoo> (raw)

commit:     75b53feec86f01987efdb7777e6c38ab4034b60f
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 11 14:07:36 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Nov 11 14:14:16 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75b53fee

sys-libs/darwin-libc-headers: initial version, ebuild by me

Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-libs/darwin-libc-headers/Manifest              |  6 +++
 .../darwin-libc-headers-1158.50.2.ebuild           | 62 ++++++++++++++++++++++
 .../darwin-libc-headers-1244.50.9.ebuild           | 62 ++++++++++++++++++++++
 .../darwin-libc-headers-1272.250.1.ebuild          | 61 +++++++++++++++++++++
 sys-libs/darwin-libc-headers/metadata.xml          | 18 +++++++
 5 files changed, 209 insertions(+)

diff --git a/sys-libs/darwin-libc-headers/Manifest b/sys-libs/darwin-libc-headers/Manifest
new file mode 100644
index 00000000000..b3d6735ef29
--- /dev/null
+++ b/sys-libs/darwin-libc-headers/Manifest
@@ -0,0 +1,6 @@
+DIST Libc-1158.50.2.tar.gz 1876052 BLAKE2B 0bc7d8cdc343c6c67d54f4a15b1add6aafb59526ab19021cacc892b2ac652b5a8faa7d9319e5009d7097944f424cfce8b006fc7d8d3ec34b66c6c5b307056e91 SHA512 8d6bf09122f47184ce588ee1b6388fe7cf7cb9dc689310ac7ec56f616cecacc3667f76bfde4325e2a5558ea56ee20d89c626ff9ecd4e5cb7c466220290601a9c
+DIST Libc-1244.50.9.tar.gz 1989821 BLAKE2B 96d8be589318523d6a7f39c46a7a59bf8652e4924e1442130926ab285e4fb2a8f09bd674b304feae1907f747ab7bf3dffee1d1e990ce40ba1c5a4b8c03e5087c SHA512 425229c77d24b2fb6e69cd036460642191c7c6c7887b1e84f2c8f78a2791624a04c9d34bd93443ee7cf09381b0b5043db3bf25bb5f75bff5dd2c042ac1bf7882
+DIST Libc-1272.250.1.tar.gz 2020635 BLAKE2B 7ec6be323928e169a23de08858cfb8f42f0289710538163a43c8543337ad5b1eef214d858388700d773ec75adef6010a94c760a6c0fdb0892a5159d7667d8401 SHA512 787934b4c25cb27dd624d73553baf1af93dee1568535326f8499d2fecf30b396c8e3e2c5f060ec00b9ed098ad1143b3fe1c272b234533fb8889585ae1decab45
+DIST libmalloc-116.50.8.tar.gz 186880 BLAKE2B 00ec1cf6dc494fad1e817d942323da86f4de6ab35d92702b6c98b7b0fdb765e756f566298d3369165b0cdf687d43a655be64e3015f884c4d1cd7b7a286669de6 SHA512 a2a49a1d12e66618b124917617c942a51ac36b7b4a12c218b5c979b9d05db822949fc8ffada8901f551f5c2e7fce9abf1d3aeb4a6507f5870a9eab5b9f69ec18
+DIST libmalloc-140.50.6.tar.gz 208453 BLAKE2B 40b7f0052e81bc7862b7bffd302a7868f1f0e6dc11c799370842457635d32bbc61e75753b2b6ebaf2dceaf26b43d7bf4efc718df91c91e0f5572929cbc9bed1d SHA512 9d39f9758f85cfa61835f9deaa4ae4958569aac0da006c5f0e87aaab2cd902b60f60e537fa0d9250401b7177f8c186e8c8e6498b48ee3eaf856daf103bf61412
+DIST libmalloc-166.251.2.tar.gz 303618 BLAKE2B daa53d57ad98e71e12d7f9e3fa4762743c5500ab354cec0b5b14e643ce2243a4b65ccd0d5a77b14730cd29cec753a761d0660794a717316e5750e98ddcc69a92 SHA512 4e46651b37b87bfa2494714df161939083d6f50663cc37ed34504339866bb0957ea571508e4023b7873935eed4a6f4b8318f6ecea1dfc3f28b96ae57daee875e

diff --git a/sys-libs/darwin-libc-headers/darwin-libc-headers-1158.50.2.ebuild b/sys-libs/darwin-libc-headers/darwin-libc-headers-1158.50.2.ebuild
new file mode 100644
index 00000000000..6244f28f39b
--- /dev/null
+++ b/sys-libs/darwin-libc-headers/darwin-libc-headers-1158.50.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MPV=116.50.8
+DESCRIPTION="Darwin system headers from Libc ${PV}, macOS 10.12.6"
+HOMEPAGE="https://opensource.apple.com/source/Libc"
+SRC_URI="https://opensource.apple.com/tarballs/Libc/Libc-${PV}.tar.gz
+	https://opensource.apple.com/tarballs/libmalloc/libmalloc-${MPV}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="10.12"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+BDEPEND="sys-apps/darwin-miscutils"
+
+S=${WORKDIR}/Libc-${PV}
+
+src_prepare() {
+	default
+
+	# convert BSD find to GNU find syntax
+	sed -i \
+		-e 's/find -E ${SRCROOT}/find ${SRCROOT} -regextype posix-extended/' \
+		xcodescripts/manpages.sh || die
+	chmod 755 xcodescripts/manpages.sh || die
+
+	# add libmalloc manpage stuff to Libc to automate the installation
+	cp "${WORKDIR}"/libmalloc-${MPV}/man/*.3 man/ || die
+	cat "${WORKDIR}"/libmalloc-${MPV}/man/manpages.lst \
+		>> man/manpages.lst || die
+}
+
+src_compile() {
+	: ;  # nothing to do
+}
+
+src_install() {
+	run_xcode_ish() {
+		env ARCHS="x86_64 i386" \
+			PLATFORM_NAME=macosx \
+			VARIANT_PLATFORM_NAME=macosx \
+			DERIVED_FILES_DIR="${T}" \
+			SRCROOT="${S}" \
+			DSTROOT="${ED}" \
+			PUBLIC_HEADERS_FOLDER_PATH="/usr/include" \
+			PRIVATE_HEADERS_FOLDER_PATH="remove-me" \
+			"$@"
+	}
+
+	run_xcode_ish ./xcodescripts/headers.sh || die
+	if use man ; then
+		run_xcode_ish ./xcodescripts/manpages.sh || die
+	fi
+
+	insinto /usr/include
+	doins -r "${WORKDIR}"/libmalloc-${MPV}/include/malloc
+
+	rm -Rf "${ED}"/remove-me "${ED}"/System || die
+}

diff --git a/sys-libs/darwin-libc-headers/darwin-libc-headers-1244.50.9.ebuild b/sys-libs/darwin-libc-headers/darwin-libc-headers-1244.50.9.ebuild
new file mode 100644
index 00000000000..8de7e71d9cd
--- /dev/null
+++ b/sys-libs/darwin-libc-headers/darwin-libc-headers-1244.50.9.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MPV=140.50.6
+DESCRIPTION="Darwin system headers from Libc ${PV}, macOS 10.13.6"
+HOMEPAGE="https://opensource.apple.com/source/Libc"
+SRC_URI="https://opensource.apple.com/tarballs/Libc/Libc-${PV}.tar.gz
+	https://opensource.apple.com/tarballs/libmalloc/libmalloc-${MPV}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="0/10.13"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+BDEPEND="sys-apps/darwin-miscutils"
+
+S=${WORKDIR}/Libc-${PV}
+
+src_prepare() {
+	default
+
+	# convert BSD find to GNU find syntax
+	sed -i \
+		-e 's/find -E ${SRCROOT}/find ${SRCROOT} -regextype posix-extended/' \
+		xcodescripts/manpages.sh || die
+	chmod 755 xcodescripts/manpages.sh || die
+
+	# add libmalloc manpage stuff to Libc to automate the installation
+	cp "${WORKDIR}"/libmalloc-${MPV}/man/*.3 man/ || die
+	cat "${WORKDIR}"/libmalloc-${MPV}/man/manpages.lst \
+		>> man/manpages.lst || die
+}
+
+src_compile() {
+	: ;  # nothing to do
+}
+
+src_install() {
+	run_xcode_ish() {
+		env ARCHS="x86_64 i386" \
+			PLATFORM_NAME=macosx \
+			VARIANT_PLATFORM_NAME=macosx \
+			DERIVED_FILES_DIR="${T}" \
+			SRCROOT="${S}" \
+			DSTROOT="${ED}" \
+			PUBLIC_HEADERS_FOLDER_PATH="/usr/include" \
+			PRIVATE_HEADERS_FOLDER_PATH="remove-me" \
+			"$@"
+	}
+
+	run_xcode_ish ./xcodescripts/headers.sh || die
+	if use man ; then
+		run_xcode_ish ./xcodescripts/manpages.sh || die
+	fi
+
+	insinto /usr/include
+	doins -r "${WORKDIR}"/libmalloc-${MPV}/include/malloc
+
+	rm -Rf "${ED}"/remove-me "${ED}"/System || die
+}

diff --git a/sys-libs/darwin-libc-headers/darwin-libc-headers-1272.250.1.ebuild b/sys-libs/darwin-libc-headers/darwin-libc-headers-1272.250.1.ebuild
new file mode 100644
index 00000000000..05521a152d4
--- /dev/null
+++ b/sys-libs/darwin-libc-headers/darwin-libc-headers-1272.250.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MPV=166.251.2
+DESCRIPTION="Darwin system headers from Libc ${PV}, macOS 10.14.4"
+HOMEPAGE="https://opensource.apple.com/source/Libc"
+SRC_URI="https://opensource.apple.com/tarballs/Libc/Libc-${PV}.tar.gz
+	https://opensource.apple.com/tarballs/libmalloc/libmalloc-${MPV}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="0/10.14"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+BDEPEND="sys-apps/darwin-miscutils"
+
+S=${WORKDIR}/Libc-${PV}
+
+src_prepare() {
+	default
+
+	# convert BSD find to GNU find syntax
+	sed -i \
+		-e 's/find -E ${SRCROOT}/find ${SRCROOT} -regextype posix-extended/' \
+		xcodescripts/manpages.sh || die
+
+	# add libmalloc manpage stuff to Libc to automate the installation
+	cp "${WORKDIR}"/libmalloc-${MPV}/man/*.3 man/ || die
+	cat "${WORKDIR}"/libmalloc-${MPV}/man/manpages.lst \
+		>> man/manpages.lst || die
+}
+
+src_compile() {
+	: ;  # nothing to do
+}
+
+src_install() {
+	run_xcode_ish() {
+		env ARCHS="x86_64 i386" \
+			PLATFORM_NAME=macosx \
+			VARIANT_PLATFORM_NAME=macosx \
+			DERIVED_FILES_DIR="${T}" \
+			SRCROOT="${S}" \
+			DSTROOT="${ED}" \
+			PUBLIC_HEADERS_FOLDER_PATH="/usr/include" \
+			PRIVATE_HEADERS_FOLDER_PATH="remove-me" \
+			"$@"
+	}
+
+	run_xcode_ish ./xcodescripts/headers.sh || die
+	if use man ; then
+		run_xcode_ish ./xcodescripts/manpages.sh || die
+	fi
+
+	insinto /usr/include
+	doins -r "${WORKDIR}"/libmalloc-${MPV}/include/malloc
+
+	rm -Rf "${ED}"/remove-me "${ED}"/System || die
+}

diff --git a/sys-libs/darwin-libc-headers/metadata.xml b/sys-libs/darwin-libc-headers/metadata.xml
new file mode 100644
index 00000000000..7cbcb2c481e
--- /dev/null
+++ b/sys-libs/darwin-libc-headers/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>grobian@gentoo.org</email>
+		<name>Fabian Groffen</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>prefix@gentoo.org</email>
+		<name>Gentoo Prefix</name>
+	</maintainer>
+	<use>
+		<flag name="man">Install the manpages</flag>
+	</use>
+	<longdescription lang="en">
+		/usr/include headers provided by Libc on macOS (Darwin) systems
+	</longdescription>
+</pkgmetadata>


             reply	other threads:[~2019-11-11 14:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-11 14:14 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-11-14  8:53 [gentoo-commits] repo/gentoo:master commit in: sys-libs/darwin-libc-headers/ Fabian Groffen
2019-12-14 14:54 Fabian Groffen
2019-12-22 14:50 Fabian Groffen
2019-12-25 14:33 Fabian Groffen
2020-12-23  8:35 Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573481656.75b53feec86f01987efdb7777e6c38ab4034b60f.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox