diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-perl/perl-headers |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-perl/perl-headers')
-rw-r--r-- | dev-perl/perl-headers/Manifest | 5 | ||||
-rw-r--r-- | dev-perl/perl-headers/files/README.gentoo | 23 | ||||
-rw-r--r-- | dev-perl/perl-headers/metadata.xml | 15 | ||||
-rw-r--r-- | dev-perl/perl-headers/perl-headers-0.0.1.ebuild | 42 |
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-perl/perl-headers/Manifest b/dev-perl/perl-headers/Manifest new file mode 100644 index 000000000000..d239071db018 --- /dev/null +++ b/dev-perl/perl-headers/Manifest @@ -0,0 +1,5 @@ +AUX README.gentoo 1175 SHA256 a98dec9502836ffac2811c2d3bd610dc14d0f9201b98c04a57705b2f689d3eb5 SHA512 572e519c4f8ff15865c9e42f1df6941ea5c20b86d75e9a5baf9ac5fe42e1e769c3a440c310170c9cdafcdd113d4eeb079e605c22be2bc46bae98d84b5c9caf0f WHIRLPOOL df316a1375026f586efdc49c5b0750e4b05ebf8dfd14db0b50d3f32c4b008e1df4f829a0df8dec62c46bc2263d01868164c784a87dbabdf672f35c7c93a3d5f9 +DIST perl-headers-0.0.1.tar.gz 2141 SHA256 57ed0b2a90c0ede060e696dd18ad21d03bd36e430b774e02422975d7e5925953 SHA512 a9a44a957d863c6d99c0facb324a32e3fee55ec50e34481dbe37c09f6afe103b0cae234ca83d4d591a01d1e620d262b0e9beae53001db1fdde885f9a57234c7f WHIRLPOOL df5823605dc326ce7880530384d67bbe0a496b629b4618526b5f712be1ceabd65c223618937a080cc15fed0e712cb8e0f2ccccc93bb15bd48b7036e8f6556507 +EBUILD perl-headers-0.0.1.ebuild 904 SHA256 9ec5bbeaac7418d4e8fe86795d98ca64817a7db3af8ddbf1e1f858e4dc4fcb92 SHA512 6859367a391a978500bd072f147d95791179e6ba11c37514d495cb25c5bb72dbf91479a6ea49e576ac5c58d76148bbfb2571bfb851e4c539a4f974e458b67064 WHIRLPOOL acda2b8aa2e57e3f91ac2b80d31ec91c16f1fcc44f9d69854a8c28b321bcaf1a9f69dc5a04300ac4fd1a60d387782a5cd648e8394f312f9996cd44e0fbd1a751 +MISC ChangeLog 644 SHA256 7da5f55574ace7a4620ca675082866344dc6338a5d6e0c8c5fab7af6b09dbb17 SHA512 1ed834b21600a60393dc57a2adbf031670a18fd3fc8647cf5fdf638c9459090d7e9d9721b683b81ad68e0571a9da3efa9822047e1937ee61f84f98ad0c7ecb62 WHIRLPOOL 2262d475b835051718c7bd0f8a561cd46e93eec9fb8cb9ca247aa756aa0d90a939ebb3fbec5b1a2f10af406118fab2c8be636b26cc68dc95fca6b4dc629873c5 +MISC metadata.xml 601 SHA256 e5caf5a5f6a29061ffc52903eda7f70bad794d45dd9ac5fb906a184c691d384a SHA512 377c7dcab7f0aea413af089c8a2da457c514122564c1b24ec41103f16bb9ec9b86600019bd839efd54ac20ca1785f898d6141f1dce3570b74af90bd2237dc33f WHIRLPOOL f6512fc1cd4e3d274bf1204cae125622aabcb93aeaedf4b61a35d892baf9ce0916ad1719b07fafc25b51541f01835cafd61ebc2abe5e371e897bfd9ab32f59ae 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 +} |