You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/qxmledit/qxmledit-0.4.3-r1.ebuild

43 lines
1.0 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $
EAPI="2"
inherit qt4-r2
MY_P="${PN}-${PV}.src"
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"
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;"
}