summaryrefslogtreecommitdiff
path: root/dev-perl/perl-headers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/perl-headers
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/perl-headers')
-rw-r--r--dev-perl/perl-headers/Manifest4
-rw-r--r--dev-perl/perl-headers/files/README.gentoo23
-rw-r--r--dev-perl/perl-headers/metadata.xml15
-rw-r--r--dev-perl/perl-headers/perl-headers-0.0.1.ebuild42
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-perl/perl-headers/Manifest b/dev-perl/perl-headers/Manifest
new file mode 100644
index 000000000000..9905cc54a8cc
--- /dev/null
+++ b/dev-perl/perl-headers/Manifest
@@ -0,0 +1,4 @@
+AUX README.gentoo 1175 BLAKE2B e498f2e1d6412f8c0454081395fcdaf995b9f79e373ab3dae7ed3183622b2db8bc18ea46e29f07a55cae92b0a0c468a24065c66f350292cab1d7b7747a079e35 SHA512 572e519c4f8ff15865c9e42f1df6941ea5c20b86d75e9a5baf9ac5fe42e1e769c3a440c310170c9cdafcdd113d4eeb079e605c22be2bc46bae98d84b5c9caf0f
+DIST perl-headers-0.0.1.tar.gz 2141 BLAKE2B 48f32c486427c30d7eba06d103a9e72d19f817dfb2a55db6aca1e28670cf03d4180dbe6e5b3031133bd517045b827bb76d085dfd786a1263dc1773fdcabb210c SHA512 a9a44a957d863c6d99c0facb324a32e3fee55ec50e34481dbe37c09f6afe103b0cae234ca83d4d591a01d1e620d262b0e9beae53001db1fdde885f9a57234c7f
+EBUILD perl-headers-0.0.1.ebuild 904 BLAKE2B 8d373fd8edbc0b77f512f92084fe919ab38d1d7365eafc8cfa82149076a8e652d8276377d75ebc6c4d284e881862c4d8138ce57fad4ed954f945200a49443a98 SHA512 6859367a391a978500bd072f147d95791179e6ba11c37514d495cb25c5bb72dbf91479a6ea49e576ac5c58d76148bbfb2571bfb851e4c539a4f974e458b67064
+MISC metadata.xml 601 BLAKE2B 0eb5d014e3970d6ae5cee77db58ad7fbc924a034ffa71ba15b18507c2bc29122b3c54074494aff0cb6005506b339659d0bd851ecb7ba020d65af5442f43faef8 SHA512 377c7dcab7f0aea413af089c8a2da457c514122564c1b24ec41103f16bb9ec9b86600019bd839efd54ac20ca1785f898d6141f1dce3570b74af90bd2237dc33f
diff --git a/dev-perl/perl-headers/files/README.gentoo b/dev-perl/perl-headers/files/README.gentoo
new file mode 100644
index 000000000000..5bbe5dc18452
--- /dev/null
+++ b/dev-perl/perl-headers/files/README.gentoo
@@ -0,0 +1,23 @@
+This package contains .ph files that are mostly generated by the perl h2ph
+command by inspecting existing .h files on your system.
+
+Due to the nature of these files, they are likely to be incomplete, and many
+of them may not even load in Perl, and many things that rely on C intrinsics
+like "sizeof" or macro expansion may be very broken.
+
+It is strongly recommended you build this package with:
+
+ USE="debug sizeof-warning"
+
+As this will give better context when things break, and will at least notify
+you when some constant relies on a missing "sizeof" entry ( and where ).
+
+Missing "sizeof" entries and broken constants need a lot of love, so please
+file bugs at https://github.com/gentoo-perl/perl-headers/issues ( or on
+gentoo bugzilla ) if you find anything that you know how to fix.
+
+However, the logic is kinda broken in a lot of places, and there's not a lot
+that can be done about it as we're reliant on the vernerable quality of h2ph,
+and this package is provided mostly as a kindness to people who need it, and
+were already relying on the equivalent logic that we shipped with perl itself
+prior to 5.24 ( where it was horribly broken and nobody really noticed )
diff --git a/dev-perl/perl-headers/metadata.xml b/dev-perl/perl-headers/metadata.xml
new file mode 100644
index 000000000000..dbe923e71b35
--- /dev/null
+++ b/dev-perl/perl-headers/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <use>
+ <flag name="debug">Add source locations in generated .ph files to assist with debugging when errors occur</flag>
+ <flag name="sizeof-warning">Include logic to warn when a .ph file tries to use a sizeof() that is unknown</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">gentoo-perl/perl-headers</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-perl/perl-headers/perl-headers-0.0.1.ebuild b/dev-perl/perl-headers/perl-headers-0.0.1.ebuild
new file mode 100644
index 000000000000..0269d8e9421f
--- /dev/null
+++ b/dev-perl/perl-headers/perl-headers-0.0.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit perl-functions flag-o-matic readme.gentoo-r1
+
+MY_GITV="${PV}"
+
+DESCRIPTION="Generated .ph equivalents of system headers"
+HOMEPAGE="https://github.com/gentoo-perl/${PN}"
+SRC_URI="https://github.com/gentoo-perl/${PN}/archive/${MY_GITV}.tar.gz -> ${PN}-${MY_GITV}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-1+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+debug +sizeof-warning"
+
+RDEPEND="dev-lang/perl:="
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+"
+
+S="${WORKDIR}/${PN}-${MY_GITV}"
+
+src_compile() {
+ use sizeof-warning && append-cppflags "-DSIZEOF_WARNING=1"
+ emake H2PHARGS="$(usex debug " -h" "")"
+}
+
+src_install() {
+ readme.gentoo_create_doc
+ perl_set_version
+ insinto "${ARCH_LIB}"
+ doins -r "${S}/headers/"*
+ doins -r "${S}/appended/"*
+
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}