/[gentoo-x86]/app-editors/qxmledit/qxmledit-0.8.2.ebuild
Gentoo

Contents of /app-editors/qxmledit/qxmledit-0.8.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Mar 16 21:54:57 2013 UTC (17 months, 2 weeks ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/qxmledit/qxmledit-0.8.2.ebuild,v 1.3 2013/03/02 19:22:03 hwoarang Exp $
4
5 EAPI=4
6
7 inherit multilib eutils qt4-r2
8
9 MY_P="qxmledit-${PV}-src"
10
11 DESCRIPTION="Qt4 XML Editor"
12 HOMEPAGE="http://code.google.com/p/qxmledit/"
13 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tgz"
14
15 LICENSE="LGPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="debug"
19
20 DEPEND=">=dev-qt/qtcore-4.7:4
21 >=dev-qt/qtgui-4.7:4
22 >=dev-qt/qtsql-4.7:4
23 >=dev-qt/qtsvg-4.7:4
24 >=dev-qt/qtxmlpatterns-4.7:4"
25 RDEPEND="${DEPEND}"
26
27 DOCS="AUTHORS NEWS README ROADMAP TODO"
28
29 src_prepare() {
30 # fix doc dir
31 sed -i "/INST_DOC_DIR = / s|/opt/${PN}|/usr/share/doc/${PF}|" \
32 src/QXmlEdit{,Widget}.pro src/sessions/QXmlEditSessions.pro || \
33 die "failed to fix doc installation path"
34 # fix binary installation path
35 sed -i "/INST_DIR = / s|/opt/${PN}|/usr/bin|" \
36 src/QXmlEdit{,Widget}.pro src/sessions/QXmlEditSessions.pro || \
37 die "failed to fix binary installation path"
38 # fix helper libraries installation path
39 sed -i "/INST_LIB_DIR = / s|/opt/${PN}|/usr/$(get_libdir)|" \
40 src/QXmlEdit{,Widget}.pro \
41 src/sessions/QXmlEditSessions.pro || \
42 die "failed to fix library installation path"
43 # fix translations
44 sed -i "/INST_DATA_DIR = / s|/opt|/usr/share|" src/QXmlEdit{,Widget}.pro \
45 src/sessions/QXmlEditSessions.pro || \
46 die "failed to fix translations"
47 # fix include
48 sed -i "/INST_INCLUDE_DIR = / s|/opt|/usr/share|" src/QXmlEditWidget.pro \
49 || die "failed to fix include directory"
50
51 qt4-r2_src_prepare
52 }
53
54 src_install() {
55 qt4-r2_src_install
56
57 newicon src/images/icon.png ${PN}.png
58 make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20