mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libzip, bump version (#1286)
This commit is contained in:
committed by
waddlesplash
parent
39861c4667
commit
cb25ac0840
102
dev-libs/libzip/libzip-1.2.0.recipe
Normal file
102
dev-libs/libzip/libzip-1.2.0.recipe
Normal file
@@ -0,0 +1,102 @@
|
||||
SUMMARY="A C library for reading, creating, and modifying zip archives"
|
||||
DESCRIPTION="libzip is a C library for reading, creating, and modifying zip \
|
||||
archives."
|
||||
HOMEPAGE="http://www.nih.at/libzip/"
|
||||
COPYRIGHT="1999-2016 Dieter Baron and Thomas Klausner"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.nih.at/libzip/libzip-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="6cf9840e427db96ebf3936665430bab204c9ebbd0120c326459077ed9c907d9f"
|
||||
PATCHES="libzip-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libzip$secondaryArchSuffix = $portVersion
|
||||
lib:libzip$secondaryArchSuffix = 5.0.0 compat >= 5.0.0
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:zipcmp
|
||||
cmd:zipmerge
|
||||
cmd:ziptool
|
||||
"
|
||||
fi
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libzip${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libzip$secondaryArchSuffix = 5.0.0 compat >= 5.0.0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libzip$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoheader
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i -e 's/^LN=ln -f$/&rs/' man/Makefile.am
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -vfi
|
||||
runConfigure ./configure --disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libzip.la
|
||||
|
||||
prepareInstalledDevelLibs libzip
|
||||
fixPkgconfig
|
||||
|
||||
# Move zipconf.h from lib/libzip/include/ to develop/headers/libzip/
|
||||
mkdir -p $includeDir/libzip
|
||||
mv $libDir/libzip/include/zipconf.h $includeDir/libzip
|
||||
rmdir $libDir/libzip/include $libDir/libzip
|
||||
|
||||
# Adjust libincludedir to make it point to where zipconf.h was moved.
|
||||
sed -i -e "s,^\(libincludedir=\)$libDir"'\(/libzip\)/include$,\1${prefix}/'"${relativeIncludeDir}\2," \
|
||||
$developLibDir/pkgconfig/libzip.pc
|
||||
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
maybe_manDir_man3=$manDir/man3
|
||||
else
|
||||
maybe_manDir_man3=
|
||||
rm -rf $binDir
|
||||
rm -rf $documentationDir
|
||||
fi
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$maybe_manDir_man3
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
30
dev-libs/libzip/patches/libzip-1.2.0.patchset
Normal file
30
dev-libs/libzip/patches/libzip-1.2.0.patchset
Normal file
@@ -0,0 +1,30 @@
|
||||
From 83469244d644593a2ef27f179102b0b4e1975caf Mon Sep 17 00:00:00 2001
|
||||
From: fbrosson <fbrosson@localhost>
|
||||
Date: Sat, 28 May 2016 09:50:37 +0000
|
||||
Subject: gcc2 patch
|
||||
|
||||
|
||||
diff --git a/src/zipcmp.c b/src/zipcmp.c
|
||||
index cf9b572..032c838 100644
|
||||
--- a/src/zipcmp.c
|
||||
+++ b/src/zipcmp.c
|
||||
@@ -313,6 +313,7 @@ list_directory(const char *name, struct archive *a)
|
||||
FTS *fts;
|
||||
FTSENT *ent;
|
||||
zip_uint64_t nalloc;
|
||||
+ size_t prefix_length;
|
||||
|
||||
char * const names[2] = { (char *)name, NULL };
|
||||
|
||||
@@ -321,7 +322,7 @@ list_directory(const char *name, struct archive *a)
|
||||
fprintf(stderr, "%s: can't open directory '%s': %s\n", prg, name, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
- size_t prefix_length = strlen(name)+1;
|
||||
+ prefix_length = strlen(name)+1;
|
||||
|
||||
nalloc = 0;
|
||||
|
||||
--
|
||||
2.7.0
|
||||
|
||||
Reference in New Issue
Block a user