From: Fabian Groffen Date: Mon, 11 Nov 2019 14:08:35 +0000 (+0100) Subject: sys-kernel/xnu-headers: initial version, ebuild by me X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f52b09f58d782f9c852fb1b10e977e181863524;p=gentoo.git sys-kernel/xnu-headers: initial version, ebuild by me Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Fabian Groffen --- diff --git a/sys-kernel/xnu-headers/Manifest b/sys-kernel/xnu-headers/Manifest new file mode 100644 index 000000000000..85c5e747399d --- /dev/null +++ b/sys-kernel/xnu-headers/Manifest @@ -0,0 +1,3 @@ +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 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 @@ + + + + + grobian@gentoo.org + Fabian Groffen + + + prefix@gentoo.org + Gentoo Prefix + + + Install the manpages + + + /usr/include headers provided by XNU on macOS (Darwin) systems + + diff --git a/sys-kernel/xnu-headers/xnu-headers-3789.70.16.ebuild b/sys-kernel/xnu-headers/xnu-headers-3789.70.16.ebuild new file mode 100644 index 000000000000..f9ba384a3ea5 --- /dev/null +++ b/sys-kernel/xnu-headers/xnu-headers-3789.70.16.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +LICENSE="APSL-2" +SLOT="10.12" +KEYWORDS="~x64-macos" +IUSE="+man" + +S=${WORKDIR}/xnu-${PV} + +src_compile() { + : ; # nothing to compile +} + +src_install() { + insinto /usr/include + doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h + + cd bsd || die + + get_datafiles() { + local f="$1"/Makefile + sed -n -e '/^DATAFILES \?=/,/^$/p' "${f}" \ + | sed -e '1s/^DATAFILES \?=//' -e '/\s*#/d' \ + | sed -e 's/\\$//' + } + + local d + local files + for d in 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] +} diff --git a/sys-kernel/xnu-headers/xnu-headers-4570.71.2.ebuild b/sys-kernel/xnu-headers/xnu-headers-4570.71.2.ebuild new file mode 100644 index 000000000000..580717e9b339 --- /dev/null +++ b/sys-kernel/xnu-headers/xnu-headers-4570.71.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +LICENSE="APSL-2" +SLOT="10.13" +KEYWORDS="~x64-macos" +IUSE="+man" + +S=${WORKDIR}/xnu-${PV} + +src_compile() { + : ; # nothing to compile +} + +src_install() { + insinto /usr/include + doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h + + cd bsd || die + + get_datafiles() { + local f="$1"/Makefile + sed -n -e '/^DATAFILES \?=/,/^$/p' "${f}" \ + | sed -e '1s/^DATAFILES \?=//' -e '/\s*#/d' \ + | sed -e 's/\\$//' + } + + local d + local files + for d in arm 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] +} diff --git a/sys-kernel/xnu-headers/xnu-headers-4903.241.1.ebuild b/sys-kernel/xnu-headers/xnu-headers-4903.241.1.ebuild new file mode 100644 index 000000000000..12902e0c2553 --- /dev/null +++ b/sys-kernel/xnu-headers/xnu-headers-4903.241.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +LICENSE="APSL-2" +SLOT="10.14" +KEYWORDS="~x64-macos" +IUSE="+man" + +S=${WORKDIR}/xnu-${PV} + +src_compile() { + : ; # nothing to compile +} + +src_install() { + insinto /usr/include + doins EXTERNAL_HEADERS/AssertMacros.h EXTERNAL_HEADERS/Availability*.h + + cd bsd || die + + get_datafiles() { + local f="$1"/Makefile + sed -n -e '/^DATAFILES \?=/,/^$/p' "${f}" \ + | sed -e '1s/^DATAFILES \?=//' -e '/\s*#/d' \ + | sed -e 's/\\$//' + } + + local d + local files + for d in arm 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] +}