/[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.3 - (hide annotations) (download)
Sun Jul 4 17:07:38 2010 UTC (8 years, 3 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #325029
(Portage version: 2.1.8.3/cvs/Linux i686)

1 hwoarang 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 phajdan.jr 1.3 # $Header: /var/cvsroot/gentoo-x86/app-editors/qwriter/qwriter-0.1.9.ebuild,v 1.2 2010/06/24 20:41:47 pacho Exp $
4 hwoarang 1.1
5     EAPI="2"
6     LANGS="ru"
7    
8     inherit 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 phajdan.jr 1.3 KEYWORDS="amd64 x86"
20 hwoarang 1.1 IUSE=""
21    
22     DEPEND="x11-libs/qt-gui: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     qt4-r2_src_prepare
32     }
33    
34     src_install() {
35     dobin bin/${PN} || die "dobin failed"
36     newicon images/w.png ${PN}.png || die "newicon failed"
37     make_desktop_entry ${PN} QWriter ${PN} \
38     || die "make_desktop_entry failed"
39     insinto /usr/share/${PN}/languages/
40     for x in ${LANGS};do
41     for j in ${LINGUAS};do
42     if [[ $x == $j ]]; then
43     doins languages/${PN}_$x.qm \
44     || die "failed to install $x translation"
45     fi
46     done
47     done
48     }

  ViewVC Help
Powered by ViewVC 1.1.20