commit: cb9c5e4d7343cb3ce0fd6f0a1305afbe03c2e585 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Thu Dec 6 23:35:10 2018 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Thu Dec 6 23:35:10 2018 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=cb9c5e4d
dev-perl/Sys-CPU: musl doesn't have <sys/unistd.h> Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-perl/Sys-CPU/Manifest | 1 + dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild | 16 ++++++++++++++++ dev-perl/Sys-CPU/files/Sys-CPU-0.61-fix-unistd-h.patch | 11 +++++++++++ dev-perl/Sys-CPU/metadata.xml | 12 ++++++++++++ 4 files changed, 40 insertions(+) diff --git a/dev-perl/Sys-CPU/Manifest b/dev-perl/Sys-CPU/Manifest new file mode 100644 index 0000000..43d1cd2 --- /dev/null +++ b/dev-perl/Sys-CPU/Manifest @@ -0,0 +1 @@ +DIST Sys-CPU-0.61.tar.gz 6497 BLAKE2B c425b80a241a8493b1812efe01108d4d15ddd386993591960d80e73edb28f21453fff842b7f8bf4c5c999908eac383925ceaaa413da407d6559cb205d7650226 SHA512 391e113c87d9044cd43c47f9f78a782fab65566a32c028c01f7f3335a5065b6755586ea3143356510c8d28a7d1ad572cc6203ec189eaaa379967bdbd0a0bd7bc diff --git a/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild b/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild new file mode 100644 index 0000000..c404e1d --- /dev/null +++ b/dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=MZSANFORD +DIST_VERSION=0.61 +inherit perl-module + +DESCRIPTION="Access CPU info. number, etc on Win and UNIX" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +PATCHES=( "${FILESDIR}"/${PN}-${DIST_VERSION}-fix-unistd-h.patch ) diff --git a/dev-perl/Sys-CPU/files/Sys-CPU-0.61-fix-unistd-h.patch b/dev-perl/Sys-CPU/files/Sys-CPU-0.61-fix-unistd-h.patch new file mode 100644 index 0000000..d19b642 --- /dev/null +++ b/dev-perl/Sys-CPU/files/Sys-CPU-0.61-fix-unistd-h.patch @@ -0,0 +1,11 @@ +diff -Naur Sys-CPU-0.61.orig/CPU.xs Sys-CPU-0.61/CPU.xs +--- Sys-CPU-0.61.orig/CPU.xs 2013-11-27 17:40:07.000000000 -0500 ++++ Sys-CPU-0.61/CPU.xs 2018-12-06 18:29:18.319275699 -0500 +@@ -24,7 +24,6 @@ + #include <winreg.h> + #else /* other (try unix) */ + #include <unistd.h> +- #include <sys/unistd.h> + #endif + #if defined(__sun) || defined(__sun__) + #include <sys/processor.h> diff --git a/dev-perl/Sys-CPU/metadata.xml b/dev-perl/Sys-CPU/metadata.xml new file mode 100644 index 0000000..9ddf28e --- /dev/null +++ b/dev-perl/Sys-CPU/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>p...@gentoo.org</email> + <name>Gentoo Perl Project</name> + </maintainer> + <upstream> + <remote-id type="cpan">Sys-CPU</remote-id> + <remote-id type="cpan-module">Sys::CPU</remote-id> + </upstream> +</pkgmetadata>