Gentoo Archives: gentoo-commits

From: "Dominik Kapusta (ayoy)" <ayoy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-declarative: metadata.xml ChangeLog qt-declarative-4.6.0.ebuild
Date: Sat, 26 Dec 2009 20:49:21
Message-Id: E1NOdZe-00049N-Ay@stork.gentoo.org
1 ayoy 09/12/26 20:49:18
2
3 Added: metadata.xml ChangeLog qt-declarative-4.6.0.ebuild
4 Log:
5 Initial commit for Qt Declarative module (bug #297573)
6 (Portage version: 2.2_rc61/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 x11-libs/qt-declarative/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>qt</herd>
20 <use>
21 <flag name='demos'>Install a set of demo applications</flag>
22 </use>
23 </pkgmetadata>
24
25
26
27 1.1 x11-libs/qt-declarative/ChangeLog
28
29 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/ChangeLog?rev=1.1&view=markup
30 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/ChangeLog?rev=1.1&content-type=text/plain
31
32 Index: ChangeLog
33 ===================================================================
34 # ChangeLog for x11-libs/qt-declarative
35 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
36 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-declarative/ChangeLog,v 1.1 2009/12/26 20:49:17 ayoy Exp $
37
38 *qt-declarative-4.6.0 (26 Dec 2009)
39
40 26 Dec 2009; Dominik Kapusta <ayoy@g.o>
41 +qt-declarative-4.6.0.ebuild, +metadata.xml:
42 Initial commit for Qt Declarative module (bug #297573)
43
44
45
46
47 1.1 x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: qt-declarative-4.6.0.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-declarative/qt-declarative-4.6.0.ebuild,v 1.1 2009/12/26 20:49:17 ayoy Exp $
57
58 EAPI="2"
59
60 inherit qt4-r2
61
62 MY_P="qt-${PV}${PN#qt}"
63
64 DESCRIPTION="The Declarative module for the Qt toolkit"
65 HOMEPAGE="http://qt.nokia.com"
66 SRC_URI="http://get.qt.nokia.com/qml/${MY_P}.tar.gz"
67
68 LICENSE="|| ( LGPL-2.1 GPL-3 )"
69 SLOT="4"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="debug demos examples"
72
73 DEPEND="~x11-libs/qt-core-${PV}
74 ~x11-libs/qt-gui-${PV}
75 ~x11-libs/qt-script-${PV}
76 ~x11-libs/qt-sql-${PV}
77 ~x11-libs/qt-webkit-${PV}
78 ~x11-libs/qt-xmlpatterns-${PV}"
79 RDEPEND="${DEPEND}"
80
81 S="${WORKDIR}/${MY_P}"
82
83 src_prepare() {
84 # help qmlviewer and qmldebugger find the freshly compiled Declarative module
85 echo "LIBS += -L\"${S}/src/declarative/.obj\"" \
86 >> "${S}/tools/qmlviewer/qmlviewer.pro" \
87 || die "fixing LDFLAGS failed"
88 }
89
90 src_configure() {
91 eqmake4 src/declarative/declarative.pro -o src/declarative/Makefile
92
93 # running "eqmake4 tools/qmlviewer/qmlviewer.pro"
94 # fails with some relative paths not being found
95 # so we have to cd
96 cd "${S}/tools/qmlviewer"
97 eqmake4
98 }
99
100 src_compile() {
101 emake -C src/declarative || die "compiling declarative module failed"
102 emake -C tools/qmlviewer || die "compiling qmlviewer failed"
103 }
104
105 src_install() {
106 emake INSTALL_ROOT="${D}" -C src/declarative install \
107 || die "installing declarative module failed"
108
109 emake INSTALL_ROOT="${D}" -C tools/qmlviewer install \
110 || die "installing qmlviewer failed"
111
112 dodoc README.html || die "dodoc failed"
113
114 for feature in demos examples; do
115 if use ${feature}; then
116 insinto "/usr/share/${PN}/${feature}"
117 doins -r "${feature}/declarative" || die "installing ${feature} failed"
118 fi
119 done
120 }