summaryrefslogtreecommitdiff
path: root/sys-kernel/xnu-headers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-18 10:15:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-18 10:15:03 +0000
commitb284a3168fa91a038925d2ecf5e4791011ea5e7d (patch)
tree16fe44748708acacd909d4e2e160a09a7f6d936a /sys-kernel/xnu-headers
parent77398e424e45d9e98c1cef3c43bdadb9d56e81ef (diff)
gentoo resync : 18.11.2019
Diffstat (limited to 'sys-kernel/xnu-headers')
-rw-r--r--sys-kernel/xnu-headers/Manifest10
-rw-r--r--sys-kernel/xnu-headers/metadata.xml18
-rw-r--r--sys-kernel/xnu-headers/xnu-headers-3789.70.16-r2.ebuild110
-rw-r--r--sys-kernel/xnu-headers/xnu-headers-4570.71.2-r2.ebuild110
-rw-r--r--sys-kernel/xnu-headers/xnu-headers-4903.241.1-r2.ebuild110
5 files changed, 358 insertions, 0 deletions
diff --git a/sys-kernel/xnu-headers/Manifest b/sys-kernel/xnu-headers/Manifest
new file mode 100644
index 000000000000..2060f848a5ce
--- /dev/null
+++ b/sys-kernel/xnu-headers/Manifest
@@ -0,0 +1,10 @@
+DIST AvailabilityVersions-26.50.4.tar.gz 888 BLAKE2B da3b41975c0259e23276bc8b3782fd8a97560d99d7c8c4e70bf31e619519ca2f684818f998449cef481f01966292bb9656e3899786645cbb506de96552b231bb SHA512 6b617b83108f03c1b7e571d4ed0b28151d6534e522fd412924a17d5273602334b9a720c126e03468bb23a052d6701e5158d462fc0de249c1615c76ff67f5b21f
+DIST AvailabilityVersions-32.60.1.tar.gz 947 BLAKE2B 5a0dd8947f5a20f4f3634535221f73eeed868d2a438530358d7da4618e48b24eaad6a75e87600af7a05bcf41e33cf18c36994af8cdf0e7d1412629affad15788 SHA512 6ba592b1621ef3766f8a230da944ad78775003d1ae64ffe0123862f22055eaa7a34ccc70945fe221170b2e9ab3147ddf968b45c063da01a1e34bbc539fcc4a3c
+DIST AvailabilityVersions-33.200.4.tar.gz 1321 BLAKE2B 3999fc45187e8ad98ee51ed0bfab4534d97d3f980bf0271e6f4185286eb6689ad237fbb589dca57cd37f5f6e5aeab4313f28065586aae12a22c6500e69e8e869 SHA512 7d2f94e676c6f05d5ddbcfcf52829387a453e99408ffaaae5b2eb001f23e53fc5ca3bb313e3ff011b08f40f990d606fcfcc94a4801fd862895def2889b0b7817
+DIST xnu-3789.70.16.tar.gz 10381005 BLAKE2B 16355a687f634820d0c639261254dec05ae7485e3b5fb6e264d2fbc848765cd3730f1cd8294808f44dff1117039d8b2eddfa5ebac35cf0c9752ea6f0655ec64b SHA512 d0b34305f5ca62cc66647366371fe7e99b18ab2f5d7c9f45d46be601d7a6e63b5f1c4e26cb5333ff829553e2332a3f5f9b1da35223fadfa95024587352e93dca
+DIST xnu-4570.71.2.tar.gz 11596858 BLAKE2B 0ccc47911e31e73472fa15263177ef72601d256917ce94000c06b916d34f2e0238f8dec6bd064247fbaf7c6a55e9b5a31a91ecb311a3b00d401448ed4dba1e14 SHA512 b4e76d10ae1fba17ab0deff523938e825e53eda922b6518805059442d248447f928bca4a2237851dd18c31e4bfb5ae1b4889b3c2a6eea186ccb5a0552204548e
+DIST xnu-4903.241.1.tar.gz 11985285 BLAKE2B fbc95bc398618a012f3b0f11bfef039f2bb3b7c17f123ab08e7943e9ab4f79f219227d44d72551b915577398b32b3338ac9938b37377037f2b00037b5fc7c854 SHA512 1878c44bcfd4eea65c8f98ae95dda1febe1bd9d3aa4d71eca62a3c320d604957e69b4b46338dabd4000781cedd515ea463c86f6311a84654b0ef7a6498ecfe29
+EBUILD xnu-headers-3789.70.16-r2.ebuild 2728 BLAKE2B 11163b6fc519a7df23905ca3087af0169f814b985a3730ce5f268ffcbf95aeb63c22cfdfdbea31133349fbdd9109f001cb37a8e89af9e0c5eac16c5daaaa5b8b SHA512 acada92496a79de9d581c3ce548a00debf9a72be1f14742d7cb65aa9771694df4574c80d4a13f20044a06f29e6b8dcd2024ac647da69aa9c71d58b83e2e61cfe
+EBUILD xnu-headers-4570.71.2-r2.ebuild 2742 BLAKE2B b2b5b1c1cff3456c83c84c5a2d483fa57db3d3f11e63ef1a8df036a008fc3d38f06bdfff288ef47c77cf9d42fcd0b8b4f02ce2b4fde27891d07ff1b01aa2c076 SHA512 ba8fe635086937fce370fe84328475ba58f115e0682fde3249e44cdbdb0798e37bfab366a2989c49025c100b3b130dbe8d57a852e1d6399cd12ff9892f6b3d5b
+EBUILD xnu-headers-4903.241.1-r2.ebuild 2743 BLAKE2B 2acc151907c42b55fe442426b4e52cd7a418d6ded42adbfb7376b38502174aa71eeea30abd3d8203518764bd703af9379c68a516d629026c6469cb0636b65d98 SHA512 9972603fe6c55478864586a1392a5961f3469e744a0d286d5cc7beb5b30de851967cca321abf2b71ddd943e9c32748ec03c65456f62a818617ccb16c6402213e
+MISC metadata.xml 532 BLAKE2B 0f532d4dae27d51cafe01e3fb9dbcca98c4bd44f32b13531347c8d5906ab5fedd4ca308d34f55d74b2b57fc03905ad63938a1cb2eb1f6d95e4f3d93e06839e07 SHA512 549080cd68d6cbb266ca4a14a113069301c234ba9f878e3048883d486b6e1833522d03a6985f083a8606e3fa3fdede8c5b2f6268837ed59bb85899d927531493
diff --git a/sys-kernel/xnu-headers/metadata.xml b/sys-kernel/xnu-headers/metadata.xml
new file mode 100644
index 000000000000..5af4fc21eaa9
--- /dev/null
+++ b/sys-kernel/xnu-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 XNU on macOS (Darwin) systems
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-kernel/xnu-headers/xnu-headers-3789.70.16-r2.ebuild b/sys-kernel/xnu-headers/xnu-headers-3789.70.16-r2.ebuild
new file mode 100644
index 000000000000..64fd0c53ce05
--- /dev/null
+++ b/sys-kernel/xnu-headers/xnu-headers-3789.70.16-r2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+AVM="AvailabilityVersions-26.50.4"
+DESCRIPTION="System headers provided by XNU-${PV}, macOS 10.12.6"
+HOMEPAGE="https://opensource.apple.com/source/xnu"
+SRC_URI="https://opensource.apple.com/tarballs/xnu/xnu-${PV}.tar.gz
+ https://opensource.apple.com/tarballs/${AVM%-*}/${AVM}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="10.12"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+S=${WORKDIR}/xnu-${PV}
+
+src_prepare() {
+ default
+
+ # we don't install availability.pl, but generation needs it
+ local avpl="${WORKDIR}/${AVM}/availability.pl"
+ sed -i -e 's:${SDKROOT}/usr/local/libexec/availability.pl:'"${avpl}"':' \
+ bsd/sys/make_symbol_aliasing.sh || die
+}
+
+src_compile() {
+ # crappy scripts that just about do the job
+ ./bsd/kern/makesyscalls.sh \
+ bsd/kern/syscalls.master header >& /dev/null || die
+ ./bsd/sys/make_posix_availability.sh \
+ _posix_availability.h >& /dev/null || die
+ ./bsd/sys/make_symbol_aliasing.sh \
+ dummy _symbol_aliasing.h >& /dev/null || die
+}
+
+src_install() {
+ insinto /usr/include
+ doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h
+ doins libsyscall/wrappers/gethostuuid.h
+ doins -r libsyscall/mach/mach
+
+ # generated during src_compile
+ insinto /usr/include/sys
+ doins syscall.h _posix_availability.h _symbol_aliasing.h
+
+ pushd bsd > /dev/null || die
+
+ get_files_list() {
+ local s="$1"
+ local f="$2"/Makefile
+ sed -n -e '/^'"${s}"' \?=/,/^$/p' "${f}" \
+ | sed -e '1s/^'"${s}"' \?=//' -e '/\s*#/d' \
+ | sed -e 's/\\$//' -e '/^[A-Z]\+ \?=/,/^$/d'
+ }
+
+ get_datafiles() {
+ local entry
+ get_files_list DATAFILES "$@" | while read entry ; do
+ [[ ${entry} == '${'?*'}' ]] \
+ && get_files_list ${entry:2:-1} "$@" \
+ || echo "${entry}"
+ done
+ }
+
+ local d
+ local files
+ for d in bsm i386 machine miscfs/{devfs,specfs,union} net \
+ netinet{,6} netkey nfs sys{,/_types} uuid vfs ;
+ do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ use man && doman man/man*/*.[234579]
+
+ popd > /dev/null || die
+
+ pushd osfmk > /dev/null || die
+
+ for d in mach{,/i386,/machine} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ for d in i386 ; do
+ insinto /usr/include/${d}
+ files=( $(get_files_list INSTALL_MD_LIST ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+
+ pushd libkern > /dev/null || die
+
+ for d in libkern{,/i386,/machine,/c++,/crypto} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+}
diff --git a/sys-kernel/xnu-headers/xnu-headers-4570.71.2-r2.ebuild b/sys-kernel/xnu-headers/xnu-headers-4570.71.2-r2.ebuild
new file mode 100644
index 000000000000..706a54fbe08a
--- /dev/null
+++ b/sys-kernel/xnu-headers/xnu-headers-4570.71.2-r2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+AVM="AvailabilityVersions-32.60.1"
+DESCRIPTION="System headers provided by XNU-${PV}, macOS 10.13.6"
+HOMEPAGE="https://opensource.apple.com/source/xnu"
+SRC_URI="https://opensource.apple.com/tarballs/xnu/xnu-${PV}.tar.gz
+ https://opensource.apple.com/tarballs/${AVM%-*}/${AVM}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="10.13"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+S=${WORKDIR}/xnu-${PV}
+
+src_prepare() {
+ default
+
+ # we don't install availability.pl, but generation needs it
+ local avpl="${WORKDIR}/${AVM}/availability.pl"
+ sed -i -e 's:${SDKROOT}/usr/local/libexec/availability.pl:'"${avpl}"':' \
+ bsd/sys/make_symbol_aliasing.sh || die
+}
+
+src_compile() {
+ # crappy scripts that just about do the job
+ ./bsd/kern/makesyscalls.sh \
+ bsd/kern/syscalls.master header >& /dev/null || die
+ ./bsd/sys/make_posix_availability.sh \
+ _posix_availability.h >& /dev/null || die
+ ./bsd/sys/make_symbol_aliasing.sh \
+ dummy _symbol_aliasing.h >& /dev/null || die
+}
+
+src_install() {
+ insinto /usr/include
+ doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h
+ doins libsyscall/wrappers/gethostuuid.h
+ doins -r libsyscall/mach/mach
+
+ # generated during src_compile
+ insinto /usr/include/sys
+ doins syscall.h _posix_availability.h _symbol_aliasing.h
+
+ pushd bsd > /dev/null || die
+
+ get_files_list() {
+ local s="$1"
+ local f="$2"/Makefile
+ sed -n -e '/^'"${s}"' \?=/,/^$/p' "${f}" \
+ | sed -e '1s/^'"${s}"' \?=//' -e '/\s*#/d' \
+ | sed -e 's/\\$//' -e '/^[A-Z]\+ \?=/,/^$/d'
+ }
+
+ get_datafiles() {
+ local entry
+ get_files_list DATAFILES "$@" | while read entry ; do
+ [[ ${entry} == '${'?*'}' ]] \
+ && get_files_list ${entry:2:-1} "$@" \
+ || echo "${entry}"
+ done
+ }
+
+ local d
+ local files
+ for d in arm bsm i386 machine miscfs/{devfs,specfs,union} net \
+ netinet{,6} netkey nfs sys{,/_types} uuid vfs ;
+ do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ use man && doman man/man*/*.[234579]
+
+ popd > /dev/null || die
+
+ pushd osfmk > /dev/null || die
+
+ for d in mach{,/arm,/i386,/machine} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ for d in i386 ; do
+ insinto /usr/include/${d}
+ files=( $(get_files_list INSTALL_MD_LIST ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+
+ pushd libkern > /dev/null || die
+
+ for d in libkern{,/arm,/i386,/machine,/c++,/crypto} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+}
diff --git a/sys-kernel/xnu-headers/xnu-headers-4903.241.1-r2.ebuild b/sys-kernel/xnu-headers/xnu-headers-4903.241.1-r2.ebuild
new file mode 100644
index 000000000000..208bdea9b248
--- /dev/null
+++ b/sys-kernel/xnu-headers/xnu-headers-4903.241.1-r2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+AVM="AvailabilityVersions-33.200.4"
+DESCRIPTION="System headers provided by XNU-${PV}, macOS 10.14.3"
+HOMEPAGE="https://opensource.apple.com/source/xnu"
+SRC_URI="https://opensource.apple.com/tarballs/xnu/xnu-${PV}.tar.gz
+ https://opensource.apple.com/tarballs/${AVM%-*}/${AVM}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="10.14"
+KEYWORDS="~x64-macos"
+IUSE="+man"
+
+S=${WORKDIR}/xnu-${PV}
+
+src_prepare() {
+ default
+
+ # we don't install availability.pl, but generation needs it
+ local avpl="${WORKDIR}/${AVM}/availability.pl"
+ sed -i -e 's:${SDKROOT}/usr/local/libexec/availability.pl:'"${avpl}"':' \
+ bsd/sys/make_symbol_aliasing.sh || die
+}
+
+src_compile() {
+ # crappy scripts that just about do the job
+ ./bsd/kern/makesyscalls.sh \
+ bsd/kern/syscalls.master header >& /dev/null || die
+ ./bsd/sys/make_posix_availability.sh \
+ _posix_availability.h >& /dev/null || die
+ ./bsd/sys/make_symbol_aliasing.sh \
+ dummy _symbol_aliasing.h >& /dev/null || die
+}
+
+src_install() {
+ insinto /usr/include
+ doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h
+ doins libsyscall/wrappers/gethostuuid.h
+ doins -r libsyscall/mach/mach
+
+ # generated during src_compile
+ insinto /usr/include/sys
+ doins syscall.h _posix_availability.h _symbol_aliasing.h
+
+ pushd bsd > /dev/null || die
+
+ get_files_list() {
+ local s="$1"
+ local f="$2"/Makefile
+ sed -n -e '/^'"${s}"' \?=/,/^$/p' "${f}" \
+ | sed -e '1s/^'"${s}"' \?=//' -e '/\s*#/d' \
+ | sed -e 's/\\$//' -e '/^[A-Z]\+ \?=/,/^$/d'
+ }
+
+ get_datafiles() {
+ local entry
+ get_files_list DATAFILES "$@" | while read entry ; do
+ [[ ${entry} == '${'?*'}' ]] \
+ && get_files_list ${entry:2:-1} "$@" \
+ || echo "${entry}"
+ done
+ }
+
+ local d
+ local files
+ for d in arm bsm i386 machine miscfs/{devfs,specfs,union} net \
+ netinet{,6} netkey nfs sys{,/_types} uuid vfs ;
+ do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ use man && doman man/man*/*.[234579]
+
+ popd > /dev/null || die
+
+ pushd osfmk > /dev/null || die
+
+ for d in mach{,/arm,/i386,/machine} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ for d in i386 ; do
+ insinto /usr/include/${d}
+ files=( $(get_files_list INSTALL_MD_LIST ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+
+ pushd libkern > /dev/null || die
+
+ for d in libkern{,/arm,/i386,/machine,/c++,/crypto} ; do
+ insinto /usr/include/${d}
+ files=( $(get_datafiles ${d}) )
+ einfo "${d}:" ${files[*]}
+ doins ${files[@]/#/$d/}
+ done
+
+ popd > /dev/null || die
+}