summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-libs/quazip
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-libs/quazip')
-rw-r--r--dev-libs/quazip/Manifest2
-rw-r--r--dev-libs/quazip/files/quazip-0.4.4-zlib.patch27
-rw-r--r--dev-libs/quazip/files/quazip-0.5.1-prll.patch11
-rw-r--r--dev-libs/quazip/files/quazip-0.5.1-zlib.patch31
-rw-r--r--dev-libs/quazip/metadata.xml11
-rw-r--r--dev-libs/quazip/quazip-0.6.2-r1.ebuild53
-rw-r--r--dev-libs/quazip/quazip-0.7.1.ebuild73
7 files changed, 208 insertions, 0 deletions
diff --git a/dev-libs/quazip/Manifest b/dev-libs/quazip/Manifest
new file mode 100644
index 000000000000..ef22797e0f74
--- /dev/null
+++ b/dev-libs/quazip/Manifest
@@ -0,0 +1,2 @@
+DIST quazip-0.6.2.tar.gz 423027 SHA256 adf4047213662a0362090edaaee4283216df2034ab5923697f9aa81d081c0b43 SHA512 32eb0b8faadb5f08086874c8ac33e3ea794a8a2e9c2904d0965cb5b15aec6280080aa19a032a19701e367873e8c3b613834823bb077b8fd254c5db4939917e49 WHIRLPOOL dc4fcab4b062631960236ef7cd9c0f43e5d419e34c3880b3caf02965f8a8302d622a1dc25f081cc2bcc5d3db96494b3d178a8f1d4b678cb452503af23e14e193
+DIST quazip-0.7.1.tar.gz 390629 SHA256 78c984103555c51e6f7ef52e3a2128e2beb9896871b2cc4d4dbd4d64bff132de SHA512 58e044019505075aa89f112672c04c54875d98b353ac5a39b6eb3e1f08ea27bd9900126d902c282b87910e4bae5ab9da79942b9add7a5535625c187331445acc WHIRLPOOL bf683e90fd58ae4d94d72f4b4530754eb1944df03adccd4e0302fe7ec82afe07fd54c9d6975ba4f1b30e3d14928fbcc6c987ec612deeb6b66be9c86c5e5d9787
diff --git a/dev-libs/quazip/files/quazip-0.4.4-zlib.patch b/dev-libs/quazip/files/quazip-0.4.4-zlib.patch
new file mode 100644
index 000000000000..a84dcab8c376
--- /dev/null
+++ b/dev-libs/quazip/files/quazip-0.4.4-zlib.patch
@@ -0,0 +1,27 @@
+From f7d821a6837b4cc9defa02f271256796394fd8c3 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Wed, 21 Sep 2011 14:37:31 +0200
+Subject: [PATCH] Allow compilation with zlib-1.2.5.1-r1
+
+---
+ quazip/ioapi.h | 4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/quazip/ioapi.h b/quazip/ioapi.h
+index 716dd4b..a4ac8d7 100644
+--- a/quazip/ioapi.h
++++ b/quazip/ioapi.h
+@@ -37,6 +37,10 @@
+ extern "C" {
+ #endif
+
++#ifndef OF
++# define OF(x) x
++#endif
++
+ typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, voidpf file, int mode));
+ typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque, voidpf stream, void* buf, uLong size));
+ typedef uLong (ZCALLBACK *write_file_func) OF((voidpf opaque, voidpf stream, const void* buf, uLong size));
+--
+1.7.6.1
+
diff --git a/dev-libs/quazip/files/quazip-0.5.1-prll.patch b/dev-libs/quazip/files/quazip-0.5.1-prll.patch
new file mode 100644
index 000000000000..48c55023838a
--- /dev/null
+++ b/dev-libs/quazip/files/quazip-0.5.1-prll.patch
@@ -0,0 +1,11 @@
+ quazip.pro | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/quazip.pro b/quazip.pro
+index 28aa9ab..62a22bd 100644
+--- a/quazip.pro
++++ b/quazip.pro
+@@ -1,2 +1,3 @@
+ TEMPLATE=subdirs
+ SUBDIRS=quazip qztest
++qztest.depends=quazip
diff --git a/dev-libs/quazip/files/quazip-0.5.1-zlib.patch b/dev-libs/quazip/files/quazip-0.5.1-zlib.patch
new file mode 100644
index 000000000000..690590e765b5
--- /dev/null
+++ b/dev-libs/quazip/files/quazip-0.5.1-zlib.patch
@@ -0,0 +1,31 @@
+diff -up quazip-0.5.1/qztest/testquagzipfile.cpp.zl quazip-0.5.1/qztest/testquagzipfile.cpp
+--- quazip-0.5.1/qztest/testquagzipfile.cpp.zl 2012-09-05 17:24:35.000000000 +0200
++++ quazip-0.5.1/qztest/testquagzipfile.cpp 2013-03-03 14:27:05.168659773 +0100
+@@ -8,9 +8,9 @@ void TestQuaGzipFile::read()
+ {
+ QDir curDir;
+ curDir.mkpath("tmp");
+- voidp gzFile = gzopen("tmp/test.gz", "wb");
+- gzwrite(gzFile, "test", 4);
+- gzclose(gzFile);
++ gzFile File = gzopen("tmp/test.gz", "wb");
++ gzwrite(File, "test", 4);
++ gzclose(File);
+ QuaGzipFile testFile("tmp/test.gz");
+ 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 File = gzopen("tmp/test.gz", "rb");
+ char buf[5];
+ buf[4] = '\0';
+- QCOMPARE(gzread(gzFile, buf, 5), 4);
+- gzclose(gzFile);
++ QCOMPARE(gzread(File, buf, 5), 4);
++ gzclose(File);
+ QCOMPARE(static_cast<const char*>(buf), "test");
+ curDir.remove("tmp/test.gz");
+ curDir.rmdir("tmp");
diff --git a/dev-libs/quazip/metadata.xml b/dev-libs/quazip/metadata.xml
new file mode 100644
index 000000000000..3a49663f2818
--- /dev/null
+++ b/dev-libs/quazip/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">quazip</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/quazip/quazip-0.6.2-r1.ebuild b/dev-libs/quazip/quazip-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..9382111c965b
--- /dev/null
+++ b/dev-libs/quazip/quazip-0.6.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib qt4-r2
+
+DESCRIPTION="A simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package"
+HOMEPAGE="http://quazip.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ sys-libs/zlib[minizip]
+ dev-qt/qtcore:4"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:4 )"
+
+S="${WORKDIR}"/${P}
+
+DOCS="NEWS.txt README.txt"
+HTML_DOCS=( doc/html/. )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.1-prll.patch
+)
+
+src_prepare() {
+ sed \
+ -e "s:\/lib$:\/$(get_libdir):g" \
+ -i ${PN}/${PN}.pro || die
+
+ echo "PREFIX=${EPREFIX}/usr" >> ${PN}/${PN}.pri || die
+
+ use test || sed -e 's:qztest::g' -i ${PN}.pro || die
+ qt4-r2_src_prepare
+}
+
+src_test() {
+ cd qztest || die
+ LD_LIBRARY_PATH="${S}"/${PN} ./qztest || die
+}
+
+src_install() {
+ insinto /usr/share/cmake/Modules
+ doins FindQuaZip.cmake
+ qt4-r2_src_install
+}
diff --git a/dev-libs/quazip/quazip-0.7.1.ebuild b/dev-libs/quazip/quazip-0.7.1.ebuild
new file mode 100644
index 000000000000..ff9f96d01860
--- /dev/null
+++ b/dev-libs/quazip/quazip-0.7.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib qmake-utils
+
+DESCRIPTION="A simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package"
+HOMEPAGE="http://quazip.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="test qt4 qt5"
+
+REQUIRED_USE="^^ ( qt4 qt5 )"
+
+RDEPEND="
+ sys-libs/zlib[minizip]
+ qt4? ( dev-qt/qtcore:4 )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ )
+ "
+DEPEND="${RDEPEND}
+ test? (
+ qt4? ( dev-qt/qttest:4 )
+ qt5? ( dev-qt/qttest:5 )
+ )"
+
+S="${WORKDIR}"/${P}
+
+DOCS="NEWS.txt README.txt"
+HTML_DOCS=( doc/html/. )
+
+MULTIBUILD_VARIANTS=( qt4 qt5 )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.1-prll.patch
+)
+
+src_prepare() {
+ sed \
+ -e "s:\/lib/:\/$(get_libdir)\/:g" \
+ -i ${PN}/${PN}.pro || die
+
+ echo "PREFIX=${EPREFIX}/usr" >> ${PN}/${PN}.pri || die
+
+ use test || sed -e 's:qztest::g' -i ${PN}.pro || die
+}
+
+src_configure() {
+ if use qt5; then
+ eqmake5
+ else
+ eqmake4
+ fi
+}
+
+src_test() {
+ cd qztest || die
+ LD_LIBRARY_PATH="${S}"/${PN} ./qztest || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
+ einstalldocs
+ insinto /usr/share/cmake/Modules
+ doins FindQuaZip.cmake
+}