mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
rhash: add compat recipe for soname 0
fix compat version
This commit is contained in:
22
app-crypt/rhash/patches/rhash-1.4.2.patchset
Normal file
22
app-crypt/rhash/patches/rhash-1.4.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 2db8b9e337e073f52c762f12373632044fefe340 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sat, 31 Oct 2020 12:41:12 +0100
|
||||
Subject: Haiku have no alligned_alloc
|
||||
|
||||
|
||||
diff --git a/librhash/util.h b/librhash/util.h
|
||||
index 6accc7b..0a4db35 100644
|
||||
--- a/librhash/util.h
|
||||
+++ b/librhash/util.h
|
||||
@@ -39,7 +39,7 @@ extern "C" {
|
||||
# define rhash_aligned_alloc(alignment, size) _aligned_malloc((size), (alignment))
|
||||
# define rhash_aligned_free(ptr) _aligned_free(ptr)
|
||||
|
||||
-#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__)
|
||||
+#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__) && !defined(__HAIKU__)
|
||||
|
||||
# define HAS_STDC_ALIGNED_ALLOC
|
||||
# include <stdlib.h>
|
||||
--
|
||||
2.28.0
|
||||
|
||||
@@ -9,7 +9,7 @@ Hash sums are used to ensure and verify integrity of large volumes of data for\
|
||||
HOMEPAGE="https://github.com/rhash/RHash"
|
||||
COPYRIGHT="2005-2020 Aleksey Kravchenko"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/rhash/RHash/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a"
|
||||
SOURCE_DIR="RHash-$portVersion"
|
||||
@@ -36,7 +36,7 @@ fi
|
||||
|
||||
PROVIDES="
|
||||
rhash$secondaryArchSuffix = $portVersion
|
||||
lib:librhash$secondaryArchSuffix = 0
|
||||
lib:librhash$secondaryArchSuffix = 1
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -74,7 +74,7 @@ fi
|
||||
|
||||
PROVIDES_devel="
|
||||
rhash${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:librhash$secondaryArchSuffix = 0
|
||||
devel:librhash$secondaryArchSuffix = 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
|
||||
54
app-crypt/rhash/rhash0-1.4.2.recipe
Normal file
54
app-crypt/rhash/rhash0-1.4.2.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="Utility for verifying hash sums of files"
|
||||
DESCRIPTION="RHash (Recursive Hasher) is a console utility for computing and \
|
||||
verifying hash sums of files. It supports CRC32, MD4, MD5, SHA1, SHA256, \
|
||||
SHA512, Tiger, DC++ TTH, BitTorrent BTIH, ED2K, AICH, GOST R 34.11-94, \
|
||||
RIPEMD-160, HAS-160, EDON-R 256/512, Whirlpool and Snefru-128/256 algorithms. \
|
||||
Hash sums are used to ensure and verify integrity of large volumes of data for\
|
||||
a long-term storing or transferring.
|
||||
"
|
||||
HOMEPAGE="https://github.com/rhash/RHash"
|
||||
COPYRIGHT="2005-2020 Aleksey Kravchenko"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/rhash/RHash/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="600d00f5f91ef04194d50903d3c79412099328c42f28ff43a0bdb777b00bec62"
|
||||
SOURCE_DIR="RHash-$portVersion"
|
||||
PATCHES="rhash-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
rhash0$secondaryArchSuffix = $portVersion
|
||||
lib:librhash$secondaryArchSuffix = 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./configure --prefix="$prefix" \
|
||||
--libdir="$libDir" --localedir="$dataDir"/locale --mandir="$manDir" \
|
||||
--sysconfdir="$sysconfDir"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
make -C librhash install-so-link
|
||||
|
||||
rm -rf $manDir $prefix/bin
|
||||
rm "$settingsDir"/rhashrc
|
||||
}
|
||||
Reference in New Issue
Block a user