/[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.1 - (hide annotations) (download)
Fri May 21 16:47:12 2010 UTC (8 years, 5 months ago) by hwoarang
Branch: MAIN
Initial commit of qwriter application. Moved from qting-edge overlay
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 hwoarang 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
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     KEYWORDS="~amd64 ~x86"
20     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