Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/qxmledit/
Date: Sat, 27 Feb 2016 03:11:00
Message-Id: 1456542549.4fc96fc0a4017b0c5efa3b791ccb62388dcc6a59.pesa@gentoo
1 commit: 4fc96fc0a4017b0c5efa3b791ccb62388dcc6a59
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 03:07:11 2016 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 03:09:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fc96fc0
7
8 app-editors/qxmledit: version bump, rewritten ebuild, qt5 support
9
10 Also fix bug 568746, migrate to EAPI 6, and update metadata.xml
11
12 Package-Manager: portage-2.2.27
13
14 app-editors/qxmledit/Manifest | 1 +
15 app-editors/qxmledit/metadata.xml | 12 ++---
16 app-editors/qxmledit/qxmledit-0.9.2.ebuild | 70 ++++++++++++++++++++++++++++++
17 3 files changed, 77 insertions(+), 6 deletions(-)
18
19 diff --git a/app-editors/qxmledit/Manifest b/app-editors/qxmledit/Manifest
20 index 6ea697a..42db2b8 100644
21 --- a/app-editors/qxmledit/Manifest
22 +++ b/app-editors/qxmledit/Manifest
23 @@ -1 +1,2 @@
24 DIST qxmledit-0.8.8-1-src.tgz 8885329 SHA256 d43ccd0029b1094a970d58170a095cbe5fddfe3d93da7c52388783d321386e17 SHA512 5440d33c052507d3b5c840cdd2966c151a77e2027703f7c1d33f80ec786affab915053d2ae17ef72fd856223ca85dbb70d39d8800170449a26ea88632c0069b5 WHIRLPOOL 68f8d73c39ce490f13d88283053ad045125f007132a25d965ffb603ab1de1d42b62944659a76aa9bbb5adc884b37ad90f7eaf4487f314678d8a1923cd16f1078
25 +DIST qxmledit-0.9.2-src.tgz 16697023 SHA256 14b8b47f00cf8ea031a0066c928cf8888a3b0d885627ed7f45c6d455be8bd531 SHA512 1cef025ded878e8ad4a33af7f22caf4b157a93e30a6fe863d80ef8c32ca6c9f080e3e4212d1db6a18e647ca111afba796b77f13c2dbc65b18d498fb977504c93 WHIRLPOOL 07fc283720a7427f352fac086770f07e921c20f66ead80fd1b0729be5afc6a01d0c437973dc6c85a61c22f3dabdc9eba2c9b9bf1721e859f0a23cc0cd60900a7
26
27 diff --git a/app-editors/qxmledit/metadata.xml b/app-editors/qxmledit/metadata.xml
28 index 98810ff..cfde07d 100644
29 --- a/app-editors/qxmledit/metadata.xml
30 +++ b/app-editors/qxmledit/metadata.xml
31 @@ -10,13 +10,13 @@
32 <name>Gentoo Qt Project</name>
33 </maintainer>
34 <longdescription lang="en">
35 - QXmlEdit is a simple XML editor written in Qt4. Its main
36 - features are unusual data visualization modes, it has some
37 - nice XML manipulation and presentation features and it is
38 - multi-platform. This is one of the few graphical Open Source
39 - XSD viewer.
40 + QXmlEdit is a simple XML editor based on Qt libraries. Its main features are
41 + unusual data visualization modes, nice XML manipulation and presentation
42 + features, and it is multi-platform. It can split very big XML files into
43 + fragments, and compare XML files. It is one of the few graphical Open Source
44 + XSD viewers.
45 </longdescription>
46 <upstream>
47 - <remote-id type="google-code">qxmledit</remote-id>
48 + <remote-id type="sourceforge">qxmledit</remote-id>
49 </upstream>
50 </pkgmetadata>
51
52 diff --git a/app-editors/qxmledit/qxmledit-0.9.2.ebuild b/app-editors/qxmledit/qxmledit-0.9.2.ebuild
53 new file mode 100644
54 index 0000000..c417cbf
55 --- /dev/null
56 +++ b/app-editors/qxmledit/qxmledit-0.9.2.ebuild
57 @@ -0,0 +1,70 @@
58 +# Copyright 1999-2016 Gentoo Foundation
59 +# Distributed under the terms of the GNU General Public License v2
60 +# $Id$
61 +
62 +EAPI=6
63 +
64 +inherit eutils qmake-utils
65 +
66 +DESCRIPTION="Qt4 XML Editor"
67 +HOMEPAGE="http://qxmledit.org/"
68 +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tgz"
69 +
70 +LICENSE="LGPL-2"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~x86"
73 +IUSE="qt5"
74 +
75 +DEPEND="
76 + qt5? (
77 + dev-qt/qtcore:5
78 + dev-qt/qtgui:5
79 + dev-qt/qtnetwork:5
80 + dev-qt/qtprintsupport:5
81 + dev-qt/qtsql:5
82 + dev-qt/qtsvg:5
83 + dev-qt/qtwidgets:5
84 + dev-qt/qtxml:5
85 + dev-qt/qtxmlpatterns:5
86 + )
87 + !qt5? (
88 + dev-qt/qtcore:4
89 + dev-qt/qtgui:4
90 + dev-qt/qtsql:4
91 + dev-qt/qtsvg:4
92 + dev-qt/qtxmlpatterns:4
93 + )"
94 +RDEPEND="${DEPEND}"
95 +
96 +DOCS=(AUTHORS NEWS README)
97 +
98 +src_prepare() {
99 + default
100 +
101 + # bug 568746
102 + sed -i -e '/QMAKE_CXXFLAGS/s:-Werror::' \
103 + src/{QXmlEdit,QXmlEditWidget,sessions/QXmlEditSessions}.pro || die
104 +}
105 +
106 +src_configure() {
107 + export \
108 + QXMLEDIT_INST_DIR="/usr/bin" \
109 + QXMLEDIT_INST_LIB_DIR="/usr/$(get_libdir)" \
110 + QXMLEDIT_INST_INCLUDE_DIR="/usr/include/${PN}" \
111 + QXMLEDIT_INST_DATA_DIR="/usr/share/${PN}" \
112 + QXMLEDIT_INST_DOC_DIR="/usr/share/doc/${PF}" \
113 + QXMLEDIT_INST_TRANSLATIONS_DIR="/usr/share/${PN}/translations"
114 +
115 + if use qt5; then
116 + eqmake5
117 + else
118 + eqmake4
119 + fi
120 +}
121 +
122 +src_install() {
123 + emake INSTALL_ROOT="${D}" install
124 + doicon install_scripts/environment/icon/qxmledit.png
125 + domenu install_scripts/environment/desktop/QXmlEdit.desktop
126 + einstalldocs
127 +}