1 |
commit: e91feac5e44d47f503542a10a44779c31f0b2071 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 28 22:47:37 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 28 22:49:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e91feac5 |
7 |
|
8 |
app-i18n/pology: Sync with 9999, disable epydoc |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707036 |
11 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
app-i18n/pology/pology-0.12-r1.ebuild | 67 +++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/app-i18n/pology/pology-0.12-r1.ebuild b/app-i18n/pology/pology-0.12-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..da1015d3f26 |
20 |
--- /dev/null |
21 |
+++ b/app-i18n/pology/pology-0.12-r1.ebuild |
22 |
@@ -0,0 +1,67 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python2_7 ) |
29 |
+inherit bash-completion-r1 cmake kde.org python-single-r1 |
30 |
+ |
31 |
+DESCRIPTION="A framework for custom processing of PO files" |
32 |
+HOMEPAGE="http://pology.nedohodnik.net" |
33 |
+ |
34 |
+if [[ ${KDE_BUILD_TYPE} = release ]]; then |
35 |
+ SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2" |
36 |
+ KEYWORDS="amd64 x86" |
37 |
+fi |
38 |
+ |
39 |
+LICENSE="GPL-3" |
40 |
+SLOT="0" |
41 |
+IUSE="" |
42 |
+ |
43 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
44 |
+ |
45 |
+BDEPEND=" |
46 |
+ app-text/docbook-xsl-stylesheets |
47 |
+ app-text/docbook-xml-dtd:4.5 |
48 |
+" |
49 |
+RDEPEND="${PYTHON_DEPS} |
50 |
+ dev-libs/libxml2 |
51 |
+ dev-libs/libxslt |
52 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
53 |
+ sys-devel/gettext |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+# Magic on python parsing makes it impossible to make it parallel safe |
58 |
+MAKEOPTS+=" -j1" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ cmake_src_prepare |
62 |
+ sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die |
63 |
+ python_fix_shebang . |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF} |
69 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON |
70 |
+ ) |
71 |
+ cmake_src_configure |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ cmake_src_install |
76 |
+ python_optimize |
77 |
+ |
78 |
+ dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml |
79 |
+ |
80 |
+ newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve |
81 |
+ bashcomp_alias {posieve,poediff}{,.py} |
82 |
+ |
83 |
+ elog "You should also consider following packages to install:" |
84 |
+ elog " app-text/aspell" |
85 |
+ elog " app-text/hunspell" |
86 |
+ elog " dev-vcs/git" |
87 |
+ elog " dev-vcs/subversion" |
88 |
+ elog " sci-misc/apertium" |
89 |
+} |