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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 16 14:42:39 2012 UTC (7 years, 3 months ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix bug #408201, patch by Ben Kohler <bkohler@gmail.com>. Add missing dep on qt-sql. Remove old and broken versions.

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.0.ebuild,v 1.1 2012/03/12 21:06:35 hwoarang Exp $
4
5 EAPI=4
6
7 inherit multilib 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="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="debug"
19
20 DEPEND="x11-libs/qt-core:4
21 x11-libs/qt-gui:4
22 x11-libs/qt-svg:4
23 x11-libs/qt-xmlpatterns:4"
24 RDEPEND="${DEPEND}"
25
26 DOCS="AUTHORS NEWS README TODO"
27 DOCSDIR="${WORKDIR}/${P}/"
28
29 src_prepare() {
30 # fix doc dir
31 sed -i "/^INST_DOC_DIR/ s|/opt/${PN}|/usr/share/doc/${PF}|" src/QXmlEdit.pro || \
32 die "failed to fix installation path"
33 # fix installation path
34 sed -i "/^INST_DIR/ s|/opt/${PN}|/usr/bin|" src/QXmlEdit.pro || \
35 die "failed to fix installation path"
36 # fix widget library
37 sed -i "/^INST_DIR/ s|/opt/${PN}|/usr/$(get_libdir)|" \
38 src/QXmlEditWidget.pro || die "failed to fix library installation path"
39 # fix translations
40 sed -i "/^INST_DATA_DIR/ s|/opt|/usr/share|" src/QXmlEdit{,Widget}.pro || \
41 die "failed to fix translations"
42 qt4-r2_src_prepare
43 }
44
45 src_install() {
46 qt4-r2_src_install
47 newicon src/images/icon.png ${PN}.png
48 make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
49 }

  ViewVC Help
Powered by ViewVC 1.1.20