1 |
commit: 9c00412eb610b364c9d061c6147b7866e697786c |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 02:27:26 2015 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 02:27:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c00412e |
7 |
|
8 |
app-editors/qwriter: EAPI bump |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
app-editors/qwriter/qwriter-0.1.9-r1.ebuild | 48 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 48 insertions(+) |
14 |
|
15 |
diff --git a/app-editors/qwriter/qwriter-0.1.9-r1.ebuild b/app-editors/qwriter/qwriter-0.1.9-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..e61d588 |
18 |
--- /dev/null |
19 |
+++ b/app-editors/qwriter/qwriter-0.1.9-r1.ebuild |
20 |
@@ -0,0 +1,48 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+LANGS="ru" |
27 |
+ |
28 |
+inherit eutils qt4-r2 |
29 |
+ |
30 |
+MY_P="${P}-src" |
31 |
+ |
32 |
+DESCRIPTION="Advanced text editor with syntax highlighting" |
33 |
+HOMEPAGE="http://qt-apps.org/content/show.php/QWriter?content=106377" |
34 |
+#upstream failed to provide a sane url |
35 |
+SRC_URI="https://qwriter.googlecode.com/files/${MY_P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-3" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND="dev-qt/qtgui:4 |
43 |
+ x11-libs/qscintilla" |
44 |
+RDEPEND="${DEPEND}" |
45 |
+ |
46 |
+S="${WORKDIR}/${MY_P}" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ sed -i "s:languages:/usr/share/${PN}/languages:" src/MainWindow.cpp \ |
50 |
+ || die "failed to fix translation path" |
51 |
+ # gcc-4.7. Bug #425252 |
52 |
+ epatch "${FILESDIR}"/${P}-gcc47.patch |
53 |
+ qt4-r2_src_prepare |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ dobin bin/${PN} |
58 |
+ newicon images/w.png ${PN}.png |
59 |
+ make_desktop_entry ${PN} QWriter ${PN} |
60 |
+ insinto /usr/share/${PN}/languages/ |
61 |
+ for x in ${LANGS};do |
62 |
+ for j in ${LINGUAS};do |
63 |
+ if [[ $x == $j ]]; then |
64 |
+ doins languages/${PN}_$x.qm |
65 |
+ fi |
66 |
+ done |
67 |
+ done |
68 |
+} |