/[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.5 - (hide annotations) (download)
Mon Jul 9 17:56:05 2012 UTC (6 years, 1 month ago) by hwoarang
Branch: MAIN
Changes since 1.4: +3 -1 lines
Fix compilation with gcc-4.7. Bug #425252

(Portage version: 2.1.11.5/cvs/Linux x86_64)

1 ssuominen 1.4 # Copyright 1999-2012 Gentoo Foundation
2 hwoarang 1.1 # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.5 # $Header: /var/cvsroot/gentoo-x86/app-editors/qwriter/qwriter-0.1.9.ebuild,v 1.4 2012/05/21 19:57:03 ssuominen Exp $
4 hwoarang 1.1
5     EAPI="2"
6     LANGS="ru"
7    
8 ssuominen 1.4 inherit eutils qt4-r2
9 hwoarang 1.1
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 hwoarang 1.5 # gcc-4.7. Bug #425252
32     epatch "${FILESDIR}"/${P}-gcc47.patch
33 hwoarang 1.1 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