Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 402615
Collapse All | Expand All

(-)file_not_specified_in_diff (-11 / +19 lines)
Line  Link Here
0
-- qxmledit-0.6.1.ebuild
0
++ qxmledit-0.7.0.ebuild
Lines 1-9 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: $
3
4
4
EAPI="2"
5
EAPI=4
5
6
6
inherit qt4-r2
7
inherit multilib qt4-r2
7
8
8
MY_P="qxmledit-${PV}-src"
9
MY_P="qxmledit-${PV}-src"
9
10
Lines 16-41 Link Here
16
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
17
IUSE="debug"
18
IUSE="debug"
18
19
19
DEPEND="x11-libs/qt-gui:4"
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"
20
RDEPEND="${DEPEND}"
24
RDEPEND="${DEPEND}"
21
25
22
S="${WORKDIR}/${P}/src/"
23
24
DOCS="AUTHORS NEWS README TODO"
26
DOCS="AUTHORS NEWS README TODO"
25
DOCSDIR="${WORKDIR}/${P}/"
27
DOCSDIR="${WORKDIR}/${P}/"
26
28
27
src_prepare(){
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"
28
	# fix installation path
33
	# fix installation path
29
	sed -i "/^INST_DIR/ s/\/opt\/${PN}/\/usr\/bin/" QXmlEdit.pro || \
34
	sed -i "/^INST_DIR/ s|/opt/${PN}|/usr/bin|" src/QXmlEdit.pro || \
30
		die "failed to fix installation path"
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"
31
	# fix translations
39
	# fix translations
32
	sed -i "/^INST_DATA_DIR/ s/\/opt/\/usr\/share/" QXmlEdit.pro || \
40
	sed -i "/^INST_DATA_DIR/ s|/opt|/usr/share|" src/QXmlEdit{,Widget}.pro || \
33
		die "failed to fix translations"
41
		die "failed to fix translations"
34
	qt4-r2_src_prepare
42
	qt4-r2_src_prepare
35
}
43
}
36
44
37
src_install(){
45
src_install() {
38
	qt4-r2_src_install
46
	qt4-r2_src_install
39
	newicon "${S}"/images/icon.png ${PN}.png
47
	newicon src/images/icon.png ${PN}.png
40
	make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
48
	make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
41
}
49
}

Return to bug 402615