blob: 3d21b5e373ec3f75f215472ab4d0e5730a86f338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils flag-o-matic qmake-utils
DESCRIPTION="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-with-linking-exception"
SLOT="0"
KEYWORDS="amd64 arm ~hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
IUSE="static-libs"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtnetwork:5
sys-libs/zlib[minizip]
"
DEPEND="${RDEPEND}"
DOCS=( NEWS.txt README.txt )
HTML_DOCS=( doc/html/. )
src_prepare() {
if ! use static-libs ; then
sed -e "/^install/ s/quazip_static//" -i quazip/CMakeLists.txt || die
fi
cmake-utils_src_prepare
}
src_configure() {
local libdir=$(get_libdir)
local -x CXXFLAGS="${CXXFLAGS}"
append-cxxflags -std=c++11 -fPIC
local mycmakeargs=(
-DBUILD_WITH_QT4=OFF
-DLIB_SUFFIX=${libdir/lib/}
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
# compatibility with not yet fixed rdeps (Gentoo bug #598136)
dosym libquazip5.so /usr/$(get_libdir)/libquazip.so
}
|