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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 12 05:20:38 2014 UTC (5 years, 3 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #502618

(Portage version: 2.2.8-r1/cvs/Linux i686, RepoMan options: --ignore-arches, signed Manifest commit with key 0x4F1A2555EA71991D!)

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

  ViewVC Help
Powered by ViewVC 1.1.20