summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@google.com>2020-09-28 09:52:49 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-10-10 10:22:32 +0300
commit32fa1fd73e5f62c262c5dcb076cbcd9b9ae81409 (patch)
treec6cfc5e7a3dc1f906b3e2d7df09a43191bbd8dfb /dev-libs/qtcompress
parentsci-astronomy/stellarium: drop 0.20.1 (diff)
downloadgentoo-32fa1fd73e5f62c262c5dcb076cbcd9b9ae81409.tar.gz
gentoo-32fa1fd73e5f62c262c5dcb076cbcd9b9ae81409.tar.bz2
gentoo-32fa1fd73e5f62c262c5dcb076cbcd9b9ae81409.zip
dev-libs/qtcompress: new package
Unbundled dependency of sci-astronomy/stellarium Bug: https://bugs.gentoo.org/745234 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/qtcompress')
-rw-r--r--dev-libs/qtcompress/Manifest1
-rw-r--r--dev-libs/qtcompress/files/qtcompress-0_p20180513-remove-zlib.patch10
-rw-r--r--dev-libs/qtcompress/files/qtcompress-0_p20180513-test-include.patch13
-rw-r--r--dev-libs/qtcompress/metadata.xml15
-rw-r--r--dev-libs/qtcompress/qtcompress-0_p20180513.ebuild64
5 files changed, 103 insertions, 0 deletions
diff --git a/dev-libs/qtcompress/Manifest b/dev-libs/qtcompress/Manifest
new file mode 100644
index 000000000000..dba886d100da
--- /dev/null
+++ b/dev-libs/qtcompress/Manifest
@@ -0,0 +1 @@
+DIST qtcompress-0_p20180513.tar.gz 251845 BLAKE2B eab320403b2b853fd12b9c10146bbdbbaad6053e57e7b72e7d80448c3913a6e4dbe898496dcec49631b8d0b371a9c7af20e30324dc960d91180cdf2fb4865121 SHA512 6a1d980f94d689063cbb8322e154d618de0002b956460303fe76cd0b6d14d6f9ea6925fe347aa91831eaa0364ea1c5ba50bdcbf5006b1651a23d93bb8867e336
diff --git a/dev-libs/qtcompress/files/qtcompress-0_p20180513-remove-zlib.patch b/dev-libs/qtcompress/files/qtcompress-0_p20180513-remove-zlib.patch
new file mode 100644
index 000000000000..de89e7ac2ae4
--- /dev/null
+++ b/dev-libs/qtcompress/files/qtcompress-0_p20180513-remove-zlib.patch
@@ -0,0 +1,10 @@
+diff --git a/src/compress/compress.pro b/src/compress/compress.pro
+index 14ec502..3105a7f 100644
+--- a/src/compress/compress.pro
++++ b/src/compress/compress.pro
+@@ -11,5 +11,3 @@ HEADERS += \
+ qtcompressglobal.h
+
+ SOURCES += qzip.cpp
+-
+-include(../3rdparty/zlib.pri)
diff --git a/dev-libs/qtcompress/files/qtcompress-0_p20180513-test-include.patch b/dev-libs/qtcompress/files/qtcompress-0_p20180513-test-include.patch
new file mode 100644
index 000000000000..cc7bec4ed1e1
--- /dev/null
+++ b/dev-libs/qtcompress/files/qtcompress-0_p20180513-test-include.patch
@@ -0,0 +1,13 @@
+--- a/tests/auto/unit/qzip/tst_qzip.cpp 2018-05-13 09:44:01.000000000 +0100
++++ b/tests/auto/unit/qzip/tst_qzip.cpp 2020-09-28 09:40:14.493025102 +0100
+@@ -41,8 +41,8 @@
+
+ #include <QtTest/QtTest>
+ #include <QDebug>
+-#include <QtCompress/qzipwriter.h>
+-#include <QtCompress/qzipreader.h>
++#include <qzipwriter.h>
++#include <qzipreader.h>
+
+ class tst_QZip : public QObject
+ {
diff --git a/dev-libs/qtcompress/metadata.xml b/dev-libs/qtcompress/metadata.xml
new file mode 100644
index 000000000000..a07b3622f7d5
--- /dev/null
+++ b/dev-libs/qtcompress/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexey+gentoo@asokolov.org</email>
+ <name>Alexey Sokolov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nezticle/qtcompress</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/qtcompress/qtcompress-0_p20180513.ebuild b/dev-libs/qtcompress/qtcompress-0_p20180513.ebuild
new file mode 100644
index 000000000000..1d0b1471137d
--- /dev/null
+++ b/dev-libs/qtcompress/qtcompress-0_p20180513.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils toolchain-funcs virtualx
+
+DESCRIPTION="A public API for QZip in an easy to use module"
+
+HOMEPAGE="https://github.com/nezticle/qtcompress"
+MY_COMMIT="23f8831826cd72aedf99fc3699148b6c994fd677"
+SRC_URI="https://github.com/nezticle/qtcompress/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 ) FDL-1.3"
+SLOT="0/5.11.0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+S="${WORKDIR}/qtcompress-${MY_COMMIT}"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ sys-libs/zlib
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-remove-zlib.patch"
+ "${FILESDIR}/${P}-test-include.patch"
+)
+
+src_prepare() {
+ default
+ # qtcompress is bundling its own zlib, remove it
+ rm -r src/3rdparty/ || die
+}
+
+src_configure() {
+ local pkg_config="$(tc-getPKG_CONFIG)"
+ eqmake5 \
+ "INCLUDEPATH+=$("${pkg_config}" --cflags zlib)" \
+ "LIBS+=$("${pkg_config}" --libs zlib)"
+}
+
+src_test() {
+ cd tests/auto/unit || die
+ eqmake5 \
+ "INCLUDEPATH+=${S}/src/compress"
+ emake
+ virtx qzip/target_wrapper.sh qzip/tst_qzip
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ rm "${ED}/usr/$(get_libdir)/libQt5Compress.la" || die
+ insinto /usr/include/qt5/QtCompress
+ doins src/compress/{qzipreader.h,qzipwriter.h,qtcompressglobal.h}
+}