blob: 8e61bb66d1f4f12eddbe60a0660e6039c6a5d0ad (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
}
|