aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxdch47 <xdch47@posteo.de>2018-11-09 22:39:25 +0100
committerAnthony G. Basile <blueness@gentoo.org>2018-11-09 18:41:18 -0500
commit787eb1aea5b97233b58592bf4909058b90f0a326 (patch)
tree1f49c62585546c8414c19eb57445087333b0ed9c /dev-perl
parentnet-im/prosody: add metadata.xml and make repoman happy (diff)
downloadmusl-787eb1aea5b97233b58592bf4909058b90f0a326.tar.gz
musl-787eb1aea5b97233b58592bf4909058b90f0a326.tar.bz2
musl-787eb1aea5b97233b58592bf4909058b90f0a326.zip
dev-perl/Crypt-Rijndael: adapt for musl
Package-Manager: Portage-2.3.49, Repoman-2.3.11 RepoMan-Options: --force Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/Crypt-Rijndael/Crypt-Rijndael-1.130.0.ebuild29
-rw-r--r--dev-perl/Crypt-Rijndael/Manifest1
-rw-r--r--dev-perl/Crypt-Rijndael/files/musl-int-types.patch15
-rw-r--r--dev-perl/Crypt-Rijndael/metadata.xml12
4 files changed, 57 insertions, 0 deletions
diff --git a/dev-perl/Crypt-Rijndael/Crypt-Rijndael-1.130.0.ebuild b/dev-perl/Crypt-Rijndael/Crypt-Rijndael-1.130.0.ebuild
new file mode 100644
index 0000000..ab00912
--- /dev/null
+++ b/dev-perl/Crypt-Rijndael/Crypt-Rijndael-1.130.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR=LEONT
+MODULE_VERSION=1.13
+inherit perl-module
+
+DESCRIPTION="Crypt::CBC compliant Rijndael encryption module"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+DEPEND="
+ virtual/perl-ExtUtils-MakeMaker
+ test? (
+ virtual/perl-Test-Simple
+ )
+"
+
+SRC_TEST="do parallel"
+
+src_prepare() {
+ use elibc_musl && epatch "${FILESDIR}"/musl-int-types.patch
+ default
+}
diff --git a/dev-perl/Crypt-Rijndael/Manifest b/dev-perl/Crypt-Rijndael/Manifest
new file mode 100644
index 0000000..bddbce8
--- /dev/null
+++ b/dev-perl/Crypt-Rijndael/Manifest
@@ -0,0 +1 @@
+DIST Crypt-Rijndael-1.13.tar.gz 71724 BLAKE2B 8b35819e0909f8eaf3952e95ef5d48440411abe267b23f9cad2d6a8f33f4376159376192747febf884d097255519baea58489b7ffcbd2bb024befc2c2e320d01 SHA512 46eea4eb6568d9bb70685314c6a29214552787c8cf138adb77271d07b85c16d83ee3faa53e6c3b7d0abb5cb735827407e970f954ae93123dfeaebb5fb34f1329
diff --git a/dev-perl/Crypt-Rijndael/files/musl-int-types.patch b/dev-perl/Crypt-Rijndael/files/musl-int-types.patch
new file mode 100644
index 0000000..126c0a2
--- /dev/null
+++ b/dev-perl/Crypt-Rijndael/files/musl-int-types.patch
@@ -0,0 +1,15 @@
+diff --git a/rijndael.h b/rijndael.h
+index de3992c..2a7940b 100644
+--- a/rijndael.h
++++ b/rijndael.h
+@@ -75,8 +75,8 @@ systems */
+ /* I expect this to be the usual case */
+ #if ! defined(_CRYPT_RIJNDAEL_H_TYPES) && ( defined(_SYS_TYPES_H) || defined(_SYS_TYPES_H_) )
+ #define _CRYPT_RIJNDAEL_H_TYPES
+- typedef __uint32_t UINT32;
+- typedef __uint8_t UINT8;
++ typedef uint32_t UINT32;
++ typedef uint8_t UINT8;
+ #endif
+
+ #if defined(__CYGWIN__) && ! defined(_CRYPT_RIJNDAEL_H_TYPES)
diff --git a/dev-perl/Crypt-Rijndael/metadata.xml b/dev-perl/Crypt-Rijndael/metadata.xml
new file mode 100644
index 0000000..a940b9f
--- /dev/null
+++ b/dev-perl/Crypt-Rijndael/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">Crypt-Rijndael</remote-id>
+ <remote-id type="cpan-module">Crypt::Rijndael</remote-id>
+ </upstream>
+</pkgmetadata>