/[gentoo-x86]/app-editors/qwriter/qwriter-0.1.9.ebuild
Gentoo

Contents of /app-editors/qwriter/qwriter-0.1.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Mar 2 19:21:50 2013 UTC (5 years, 6 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Move Qt dependencies to the new category

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/qwriter/qwriter-0.1.9.ebuild,v 1.5 2012/07/09 17:56:05 hwoarang Exp $
4
5 EAPI="2"
6 LANGS="ru"
7
8 inherit eutils qt4-r2
9
10 MY_P="${P}-src"
11
12 DESCRIPTION="Advanced text editor with syntax highlighting"
13 HOMEPAGE="http://qt-apps.org/content/show.php/QWriter?content=106377"
14 #upstream failed to provide a sane url
15 SRC_URI="http://qwriter.googlecode.com/files/${MY_P}.tar.gz"
16
17 LICENSE="GPL-3"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE=""
21
22 DEPEND="dev-qt/qtgui:4
23 x11-libs/qscintilla"
24 RDEPEND="${DEPEND}"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_prepare() {
29 sed -i "s:languages:/usr/share/${PN}/languages:" src/MainWindow.cpp \
30 || die "failed to fix translation path"
31 # gcc-4.7. Bug #425252
32 epatch "${FILESDIR}"/${P}-gcc47.patch
33 qt4-r2_src_prepare
34 }
35
36 src_install() {
37 dobin bin/${PN} || die "dobin failed"
38 newicon images/w.png ${PN}.png || die "newicon failed"
39 make_desktop_entry ${PN} QWriter ${PN} \
40 || die "make_desktop_entry failed"
41 insinto /usr/share/${PN}/languages/
42 for x in ${LANGS};do
43 for j in ${LINGUAS};do
44 if [[ $x == $j ]]; then
45 doins languages/${PN}_$x.qm \
46 || die "failed to install $x translation"
47 fi
48 done
49 done
50 }

  ViewVC Help
Powered by ViewVC 1.1.20