summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-11-11 15:07:36 +0100
committerFabian Groffen <grobian@gentoo.org>2019-11-11 15:14:16 +0100
commit75b53feec86f01987efdb7777e6c38ab4034b60f (patch)
tree3ad5be72f558f6747bd9461a014668fb4f86999d
parentsys-kernel/gentoo-sources: Linux patch 4.14.153 (diff)
downloadgentoo-75b53feec86f01987efdb7777e6c38ab4034b60f.tar.gz
gentoo-75b53feec86f01987efdb7777e6c38ab4034b60f.tar.bz2
gentoo-75b53feec86f01987efdb7777e6c38ab4034b60f.zip
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@gentoo.org>
-rw-r--r--sys-libs/darwin-libc-headers/Manifest6
-rw-r--r--sys-libs/darwin-libc-headers/darwin-libc-headers-1158.50.2.ebuild62
-rw-r--r--sys-libs/darwin-libc-headers/darwin-libc-headers-1244.50.9.ebuild62
-rw-r--r--sys-libs/darwin-libc-headers/darwin-libc-headers-1272.250.1.ebuild61
-rw-r--r--sys-libs/darwin-libc-headers/metadata.xml18
5 files changed, 209 insertions, 0 deletions
diff --git a/sys-libs/darwin-libc-headers/Manifest b/sys-libs/darwin-libc-headers/Manifest
new file mode 100644
index 000000000000..b3d6735ef293
--- /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 000000000000..6244f28f39ba
--- /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 000000000000..8de7e71d9cd5
--- /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 000000000000..05521a152d47
--- /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 000000000000..7cbcb2c481e0
--- /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>