diff options
author | nivit <nivit@FreeBSD.org> | 2013-08-28 23:40:54 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2013-08-28 23:40:54 +0800 |
commit | 25d02aaae9079d79e94bb67f8fd78e36b41cd1bb (patch) | |
tree | 90c9f688b26b7819470188e1ed36a0214fafb668 /archivers/quazip | |
parent | 99051adc9e214220dd279a553e29d5e39c2a12f8 (diff) | |
download | freebsd-ports-gnome-25d02aaae9079d79e94bb67f8fd78e36b41cd1bb.tar.gz freebsd-ports-gnome-25d02aaae9079d79e94bb67f8fd78e36b41cd1bb.tar.zst freebsd-ports-gnome-25d02aaae9079d79e94bb67f8fd78e36b41cd1bb.zip |
- Unbreak the port by a patch suitable for the newer zlib
PR: ports/181360
Submitted by: marino
Diffstat (limited to 'archivers/quazip')
-rw-r--r-- | archivers/quazip/Makefile | 2 | ||||
-rw-r--r-- | archivers/quazip/files/patch-qztest__testquagzipfile.cpp | 28 |
2 files changed, 19 insertions, 11 deletions
diff --git a/archivers/quazip/Makefile b/archivers/quazip/Makefile index a6afaac30626..704ae7be4fd1 100644 --- a/archivers/quazip/Makefile +++ b/archivers/quazip/Makefile @@ -12,8 +12,6 @@ COMMENT= Qt/C++ wrapper for ZIP/UNZIP package LICENSE= LGPL21 -BROKEN= Does not build - QMAKE_ARGS= PREFIX=${PREFIX} ${QMAKE_PRO} QMAKE_PRO= ${WRKSRC}/${PORTNAME}.pro diff --git a/archivers/quazip/files/patch-qztest__testquagzipfile.cpp b/archivers/quazip/files/patch-qztest__testquagzipfile.cpp index 8e58f5e6f2e7..52f103078049 100644 --- a/archivers/quazip/files/patch-qztest__testquagzipfile.cpp +++ b/archivers/quazip/files/patch-qztest__testquagzipfile.cpp @@ -1,20 +1,30 @@ ---- ./qztest/testquagzipfile.cpp.orig 2013-06-15 14:53:18.000000000 +0200 -+++ ./qztest/testquagzipfile.cpp 2013-06-15 14:51:57.000000000 +0200 -@@ -8,7 +8,7 @@ +--- qztest/testquagzipfile.cpp.orig 2012-09-05 15:24:35.000000000 +0000 ++++ qztest/testquagzipfile.cpp +@@ -8,9 +8,9 @@ void TestQuaGzipFile::read() { QDir curDir; curDir.mkpath("tmp"); - voidp gzFile = gzopen("tmp/test.gz", "wb"); -+ gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "wb"); - gzwrite(gzFile, "test", 4); - gzclose(gzFile); +- gzwrite(gzFile, "test", 4); +- gzclose(gzFile); ++ gzFile gzf = gzopen("tmp/test.gz", "wb"); ++ gzwrite(gzf, "test", 4); ++ gzclose(gzf); QuaGzipFile testFile("tmp/test.gz"); -@@ -32,7 +32,7 @@ + QVERIFY(testFile.open(QIODevice::ReadOnly)); + char buf[5]; +@@ -32,11 +32,11 @@ void TestQuaGzipFile::write() QCOMPARE(testFile.write("test", 4), static_cast<qint64>(4)); testFile.close(); QVERIFY(!testFile.isOpen()); - voidp gzFile = gzopen("tmp/test.gz", "rb"); -+ gzFile_s* /*voidp*/ gzFile = gzopen("tmp/test.gz", "rb"); ++ gzFile gzf = gzopen("tmp/test.gz", "rb"); char buf[5]; buf[4] = '\0'; - QCOMPARE(gzread(gzFile, buf, 5), 4); +- QCOMPARE(gzread(gzFile, buf, 5), 4); +- gzclose(gzFile); ++ QCOMPARE(gzread(gzf, buf, 5), 4); ++ gzclose(gzf); + QCOMPARE(static_cast<const char*>(buf), "test"); + curDir.remove("tmp/test.gz"); + curDir.rmdir("tmp"); |