1 |
commit: 91a42c15bfe50eb75791deab29deb83c4469ca05 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 25 16:18:30 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 25 20:54:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91a42c15 |
7 |
|
8 |
dev-libs/quazip: 0.8 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
dev-libs/quazip/Manifest | 1 + |
14 |
.../quazip-0.8-revert-FindQuaZip-location.patch | 23 ++++++++++ |
15 |
dev-libs/quazip/quazip-0.8.ebuild | 50 ++++++++++++++++++++++ |
16 |
3 files changed, 74 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/quazip/Manifest b/dev-libs/quazip/Manifest |
19 |
index 21e5d49acaa..824bcc1e54d 100644 |
20 |
--- a/dev-libs/quazip/Manifest |
21 |
+++ b/dev-libs/quazip/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST quazip-0.7.6.tar.gz 149029 BLAKE2B 7eb99f550dc06d8d2911b22214294accaa5126657598bfd60614267715ea968790f470cea2820e1a78a8581ab0d4b75c90589c0da1ae815067e083e389020762 SHA512 4325a69918216bb66c6a7c53589ef73473c3752151522a135dd9c92dbf722b29656aea7be0314c84399a214391eca79296ecda5811ab31845d8cf53c010110d1 |
24 |
+DIST quazip-0.8.tar.gz 150570 BLAKE2B 7478e80f250b5fd1dd3a09af2fec1c023de59a17020fb5d05eb0e6ed7276ff21341d8a80cec6944034fd3bc93e5e5c8bf38bb4a9735654388eca672527e7856e SHA512 f007760613d1f1899eb99cfb1ec49fee97d6a3a427b0cf6fe1421ebdfdefe7fc0317aebcca6bb79396fd8b32e8cda2ab65c019f1b7b85682bdea3e22900bbc8b |
25 |
|
26 |
diff --git a/dev-libs/quazip/files/quazip-0.8-revert-FindQuaZip-location.patch b/dev-libs/quazip/files/quazip-0.8-revert-FindQuaZip-location.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..1d96af6791f |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/quazip/files/quazip-0.8-revert-FindQuaZip-location.patch |
31 |
@@ -0,0 +1,23 @@ |
32 |
+From 6f5e2159dc7ee898ef08a9e3e3a8e0248d2d0caf Mon Sep 17 00:00:00 2001 |
33 |
+From: Andreas Sturmlechner <asturm@g.o> |
34 |
+Date: Sat, 25 May 2019 18:13:58 +0200 |
35 |
+Subject: [PATCH] Revert "Install the FindQuaZip.cmake in the right prefix" |
36 |
+ |
37 |
+This reverts commit d5eaa8be998da2430ffd43e0eefa617cf1550ca3. |
38 |
+--- |
39 |
+ CMakeLists.txt | 2 +- |
40 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
41 |
+ |
42 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
43 |
+index a43fefe..539caa4 100644 |
44 |
+--- a/CMakeLists.txt |
45 |
++++ b/CMakeLists.txt |
46 |
+@@ -60,4 +60,4 @@ set(QUAZIP_LIB_TARGET_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX} CACHE |
47 |
+ |
48 |
+ add_subdirectory(quazip) |
49 |
+ |
50 |
+-install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION share/cmake) |
51 |
++install(FILES FindQuaZip.cmake RENAME FindQuaZip${QUAZIP_LIB_VERSION_SUFFIX}.cmake DESTINATION ${CMAKE_ROOT}/Modules) |
52 |
+-- |
53 |
+2.21.0 |
54 |
+ |
55 |
|
56 |
diff --git a/dev-libs/quazip/quazip-0.8.ebuild b/dev-libs/quazip/quazip-0.8.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..34df694c62a |
59 |
--- /dev/null |
60 |
+++ b/dev-libs/quazip/quazip-0.8.ebuild |
61 |
@@ -0,0 +1,50 @@ |
62 |
+# Copyright 1999-2019 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=7 |
66 |
+ |
67 |
+inherit cmake-utils flag-o-matic qmake-utils |
68 |
+ |
69 |
+DESCRIPTION="Simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package" |
70 |
+HOMEPAGE="https://stachenov.github.io/quazip/" |
71 |
+SRC_URI="https://github.com/stachenov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="LGPL-2.1-with-linking-exception" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
76 |
+IUSE="static-libs" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ dev-qt/qtcore:5 |
80 |
+ dev-qt/qtnetwork:5 |
81 |
+ sys-libs/zlib[minizip] |
82 |
+" |
83 |
+DEPEND="${RDEPEND}" |
84 |
+ |
85 |
+PATCHES=( "${FILESDIR}/${P}-revert-FindQuaZip-location.patch" ) |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ cmake-utils_src_prepare |
89 |
+ if ! use static-libs ; then |
90 |
+ sed -e "/^install/ s/quazip_static//" -i quazip/CMakeLists.txt || die |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ local libdir=$(get_libdir) |
96 |
+ local -x CXXFLAGS="${CXXFLAGS}" |
97 |
+ append-cxxflags -std=c++11 -fPIC |
98 |
+ |
99 |
+ local mycmakeargs=( |
100 |
+ -DBUILD_WITH_QT4=OFF |
101 |
+ -DLIB_SUFFIX=${libdir/lib/} |
102 |
+ ) |
103 |
+ cmake-utils_src_configure |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ cmake-utils_src_install |
108 |
+ |
109 |
+ # compatibility with not yet fixed rdeps (Gentoo bug #598136) |
110 |
+ dosym libquazip5.so /usr/$(get_libdir)/libquazip.so |
111 |
+} |