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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Aug 2 20:11:26 2012 UTC (23 months, 4 weeks ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
amd64/x86 stable wrt bug 428860. Update longdescription in metadata. Remove old.

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

1 hwoarang 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pesa 1.3 # $Header: /var/cvsroot/gentoo-x86/app-editors/qxmledit/qxmledit-0.8.1.ebuild,v 1.2 2012/05/25 17:07:16 ago Exp $
4 hwoarang 1.1
5     EAPI=4
6    
7     inherit multilib eutils 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="LGPL-2"
16     SLOT="0"
17 ago 1.2 KEYWORDS="amd64 x86"
18 hwoarang 1.1 IUSE="debug"
19    
20     DEPEND=">=x11-libs/qt-core-4.7:4
21     >=x11-libs/qt-gui-4.7:4
22     >=x11-libs/qt-sql-4.7:4
23     >=x11-libs/qt-svg-4.7:4
24     >=x11-libs/qt-xmlpatterns-4.7:4"
25     RDEPEND="${DEPEND}"
26    
27     DOCS="AUTHORS NEWS README ROADMAP TODO"
28    
29     src_prepare() {
30     # fix doc dir
31     sed -i "/INST_DOC_DIR = / s|/opt/${PN}|/usr/share/doc/${PF}|" \
32     src/QXmlEdit{,Widget}.pro src/sessions/QXmlEditSessions.pro || \
33     die "failed to fix doc installation path"
34     # fix binary installation path
35     sed -i "/INST_DIR = / s|/opt/${PN}|/usr/bin|" \
36     src/QXmlEdit{,Widget}.pro src/sessions/QXmlEditSessions.pro || \
37     die "failed to fix binary installation path"
38     # fix helper libraries installation path
39     sed -i "/INST_LIB_DIR = / s|/opt/${PN}|/usr/$(get_libdir)|" \
40     src/QXmlEdit{,Widget}.pro \
41     src/sessions/QXmlEditSessions.pro || \
42     die "failed to fix library installation path"
43     # fix translations
44     sed -i "/INST_DATA_DIR = / s|/opt|/usr/share|" src/QXmlEdit{,Widget}.pro \
45     src/sessions/QXmlEditSessions.pro || \
46     die "failed to fix translations"
47     # fix include
48     sed -i "/INST_INCLUDE_DIR = / s|/opt|/usr/share|" src/QXmlEditWidget.pro \
49     || die "failed to fix include directory"
50    
51     qt4-r2_src_prepare
52     }
53    
54     src_install() {
55     qt4-r2_src_install
56    
57     newicon src/images/icon.png ${PN}.png
58     make_desktop_entry QXmlEdit QXmlEdit ${PN} "Qt;Utility;TextEditor"
59     }

  ViewVC Help
Powered by ViewVC 1.1.20