diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-29 09:07:21 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-29 09:07:21 +0000 |
commit | 5580d1c7a275b2a153b54cbb0fdd5021e5b6dc70 (patch) | |
tree | 3fbf77cb236cb3ccb32d4253a22284f1d97125b0 /main | |
parent | 8f6f2e3166478b14b208ecfb94ddf01d69dd7bdc (diff) | |
download | aports-5580d1c7a275b2a153b54cbb0fdd5021e5b6dc70.tar.bz2 aports-5580d1c7a275b2a153b54cbb0fdd5021e5b6dc70.tar.xz |
main/perl-crypt-rijndael: use stdint.h to build against musl
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-crypt-rijndael/APKBUILD | 17 | ||||
-rw-r--r-- | main/perl-crypt-rijndael/use-stdint_h.patch | 18 |
2 files changed, 31 insertions, 4 deletions
diff --git a/main/perl-crypt-rijndael/APKBUILD b/main/perl-crypt-rijndael/APKBUILD index 35f5821e6..617968a58 100644 --- a/main/perl-crypt-rijndael/APKBUILD +++ b/main/perl-crypt-rijndael/APKBUILD @@ -12,12 +12,18 @@ cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz + use-stdint_h.patch" _builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } @@ -32,6 +38,9 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="c26594420342f4ccddc535b878962db9 Crypt-Rijndael-1.11.tar.gz" -sha256sums="8f8833bc8839e0d4aa3c26d86d2f39ceb9b13e52a9f5e4fd928da2e71989d3b4 Crypt-Rijndael-1.11.tar.gz" -sha512sums="57a20811351e4376b10aed11fe6cb932575d2b5d0155d01780f69598b06b28e9eb3036ae322fbc844dd2dda37db2d02a61462caf5d5af5d6dd4ac585c348262a Crypt-Rijndael-1.11.tar.gz" +md5sums="c26594420342f4ccddc535b878962db9 Crypt-Rijndael-1.11.tar.gz +d5dd40f32be1a088e787956c2251c8b8 use-stdint_h.patch" +sha256sums="8f8833bc8839e0d4aa3c26d86d2f39ceb9b13e52a9f5e4fd928da2e71989d3b4 Crypt-Rijndael-1.11.tar.gz +71328eea00aa2cbce45fe2b29c0af131205f034e5e62e353fdb8e144ea22fc8d use-stdint_h.patch" +sha512sums="57a20811351e4376b10aed11fe6cb932575d2b5d0155d01780f69598b06b28e9eb3036ae322fbc844dd2dda37db2d02a61462caf5d5af5d6dd4ac585c348262a Crypt-Rijndael-1.11.tar.gz +4f96e3f326c48bdca94aa721468f6c927a6af39ab9683bc69058a9330d733c96e656883890cf9f2c4588173784d248238dec82a49e8261c0cd9e1d794764d97e use-stdint_h.patch" diff --git a/main/perl-crypt-rijndael/use-stdint_h.patch b/main/perl-crypt-rijndael/use-stdint_h.patch new file mode 100644 index 000000000..76471bee9 --- /dev/null +++ b/main/perl-crypt-rijndael/use-stdint_h.patch @@ -0,0 +1,18 @@ +Only in Crypt-Rijndael-1.11: Rijndael.o +Only in Crypt-Rijndael-1.11: _rijndael.o +Only in Crypt-Rijndael-1.11: blib/arch/auto/Crypt/Rijndael/Rijndael.so +Only in Crypt-Rijndael-1.11: blib/man3/Crypt::Rijndael.3 +--- Crypt-Rijndael-1.11.orig/rijndael.h ++++ Crypt-Rijndael-1.11/rijndael.h +@@ -72,6 +72,11 @@ + typedef u_char UINT8; + #endif + ++#include <stdint.h> ++#define _CRYPT_RIJNDAEL_H_TYPES ++typedef uint32_t UINT32; ++typedef uint8_t UINT8; ++ + /* 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 |