/[gentoo-x86]/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild
Gentoo

Contents of /dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 1 06:02:10 2015 UTC (5 years ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Mark ~hppa (bug #553704).

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --ignore-arches, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild,v 1.2 2015/06/29 17:35:06 pesa Exp $
4
5 EAPI=5
6
7 inherit multibuild qmake-utils
8
9 MY_P=qt-solutions-${PV#*_p}
10
11 DESCRIPTION="QFile extension with advisory locking functions"
12 HOMEPAGE="https://code.qt.io/cgit/qt-solutions/qt-solutions.git/"
13 SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
14
15 LICENSE="|| ( LGPL-2.1 GPL-3 )"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc +qt4 qt5"
19
20 REQUIRED_USE="|| ( qt4 qt5 )"
21
22 DEPEND="
23 qt4? ( dev-qt/qtcore:4 )
24 qt5? ( dev-qt/qtcore:5 )
25 "
26 RDEPEND="${DEPEND}"
27
28 S=${WORKDIR}/${MY_P}/${PN}
29
30 pkg_setup() {
31 MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
32 }
33
34 src_prepare() {
35 echo 'SOLUTIONS_LIBRARY = yes' > config.pri
36 echo 'QT -= gui' >> src/qtlockedfile.pri
37
38 sed -i -e "s/-head/-${PV%.*}/" common.pri || die
39 sed -i -e '/SUBDIRS+=example/d' ${PN}.pro || die
40
41 multibuild_copy_sources
42 }
43
44 src_configure() {
45 myconfigure() {
46 if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
47 eqmake4
48 fi
49 if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then
50 eqmake5
51 fi
52 }
53 multibuild_foreach_variant run_in_build_dir myconfigure
54 }
55
56 src_compile() {
57 multibuild_foreach_variant run_in_build_dir default
58 }
59
60 src_install() {
61 dodoc README.TXT
62 use doc && dodoc -r doc/html
63
64 myinstall() {
65 # libraries
66 dolib.so lib/*
67
68 # headers
69 insinto "$(${MULTIBUILD_VARIANT}_get_headerdir)"/QtSolutions
70 doins src/QtLockedFile src/${PN}.h
71
72 # .prf files
73 insinto "$(${MULTIBUILD_VARIANT}_get_mkspecsdir)"/features
74 doins "${FILESDIR}"/${PN}.prf
75 }
76 multibuild_foreach_variant run_in_build_dir myinstall
77 }

  ViewVC Help
Powered by ViewVC 1.1.20