aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-12-06 18:35:10 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-12-06 18:35:10 -0500
commitcb9c5e4d7343cb3ce0fd6f0a1305afbe03c2e585 (patch)
tree5b55478ef081108b2cf3ba742e4f5bf4501d72ec /dev-perl
parentx11-libs/vte: version bump to 0.54.2 (diff)
downloadmusl-cb9c5e4d7343cb3ce0fd6f0a1305afbe03c2e585.tar.gz
musl-cb9c5e4d7343cb3ce0fd6f0a1305afbe03c2e585.tar.bz2
musl-cb9c5e4d7343cb3ce0fd6f0a1305afbe03c2e585.zip
dev-perl/Sys-CPU: musl doesn't have <sys/unistd.h>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/Sys-CPU/Manifest1
-rw-r--r--dev-perl/Sys-CPU/Sys-CPU-0.610.0-r1.ebuild16
-rw-r--r--dev-perl/Sys-CPU/files/Sys-CPU-0.61-fix-unistd-h.patch11
-rw-r--r--dev-perl/Sys-CPU/metadata.xml12
4 files changed, 40 insertions, 0 deletions
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>perl@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>