Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 52164a345665
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 99c35e84455e
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 25, 2021

  1. quazip, bump version (#6324)

    Begasus authored Oct 25, 2021
    Copy the full SHA
    99c35e8 View commit details
Showing with 82 additions and 0 deletions.
  1. +82 −0 dev-libs/quazip/quazip1-1.1.recipe
82 changes: 82 additions & 0 deletions dev-libs/quazip/quazip1-1.1.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
SUMMARY="Simple C\+\+ wrapper over Gilles Vollant\'s ZIP/UNZIP package"
DESCRIPTION="QuaZIP is the C++ wrapper for Gilles Vollant\'s ZIP/UNZIP \
package (AKA Minizip) using Trolltech's Qt library."
HOMEPAGE="https://github.com/stachenov/quazip"
COPYRIGHT="2005-2014 Sergey A. Tachenov"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/stachenov/quazip/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="54edce9c11371762bd4f0003c2937b5d8806a2752dd9c0fd9085e90792612ad0"
SOURCE_FILENAME="quazip1-$portVersion.tar.gz"
SOURCE_DIR="quazip-$portVersion"

ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"

libVersion="1.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"

PROVIDES="
quazip1$secondaryArchSuffix = $portVersion
lib:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"

PROVIDES_devel="
quazip1${secondaryArchSuffix}_devel = $portVersion
devel:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
quazip1$secondaryArchSuffix == $portVersion base
devel:libQt5Core$secondaryArchSuffix
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"

defineDebugInfoPackage quazip1$secondaryArchSuffix \
"$libDir"/libquazip1-qt5.so.$libVersion

BUILD()
{
cmake -B build -S . \
$cmakeDirArgs \
-DCMAKE_BUILD_TYPE=None

make -C build $jobArgs
}

INSTALL()
{
make -C build install

# prepare develop/lib
prepareInstalledDevelLib libquazip1-qt5
fixPkgconfig

# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}

TEST()
{
make check
# There is no cmake compatible test.
}