blob: f15061bae1fbac31185f11b42d63290256422cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/qxmledit/qxmledit-0.4.9.ebuild,v 1.2 2012/02/03 14:46:44 ago Exp $
EAPI="2"
inherit qt4-r2
MY_P="QXmlEdit-${PV}-sources"
DESCRIPTION="Qt4 XML Editor"
HOMEPAGE="http://code.google.com/p/qxmledit/"
SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="debug"
DEPEND="x11-libs/qt-gui:4"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/src/"
DOCS="AUTHORS NEWS README TODO"
DOCSDIR="${WORKDIR}/${P}/"
src_prepare(){
# fix installation path
sed -i "/^target.path/ s/\/opt\/${PN}/\/usr\/bin/" QXmlEdit.pro || \
die "failed to fix installation path"
# fix translations
sed -i "/^translations.path/ s/\/opt/\/usr\/share/" QXmlEdit.pro || \
die "failed to fix translations"
# fix snippets and style paths
sed -i "/^snippets.path/ s/\/opt/\/usr\/share/" QXmlEdit.pro || \
die "failed to fix snippets"
sed -i "/^styles.path/ s/\/opt/\/usr\/share/" QXmlEdit.pro || \
die "failed to fix style path"
qt4-r2_src_prepare
}
src_install(){
qt4-r2_src_install
newicon "${S}"/images/icon.png ${PN}.png
make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor;"
}
|