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

Contents of /app-editors/qxmledit/qxmledit-0.4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Feb 17 11:15:23 2012 UTC (7 years, 4 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

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

1 # Copyright 1999-2010 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.4.3-r1.ebuild,v 1.3 2010/06/28 19:30:11 fauli Exp $
4
5 EAPI="2"
6
7 inherit qt4-r2
8
9 MY_P="${PN}-${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-gui:4"
21 RDEPEND="${DEPEND}"
22
23 S="${WORKDIR}/${P}/src/"
24
25 DOCS="AUTHORS NEWS README TODO"
26 DOCSDIR="${WORKDIR}/${P}/"
27
28 src_prepare(){
29 # fix installation path
30 sed -i "/^target.path/ s/\/opt\/${PN}/\/usr\/bin/" QXmlEdit.pro || \
31 die "failed to fix installation path"
32 # fix translations
33 sed -i "/^translations.path/ s/\/opt/\/usr\/share/" QXmlEdit.pro || \
34 die "failed to fix translations"
35 qt4-r2_src_prepare
36 }
37
38 src_install(){
39 qt4-r2_src_install
40 newicon "${S}"/images/icon.png ${PN}.png
41 make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor;"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20