Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/pology/
Date: Tue, 28 Jan 2020 22:50:25
Message-Id: 1580251798.c6b7729fb8374d57be48575b08939806a7cfda2e.asturm@gentoo
1 commit: c6b7729fb8374d57be48575b08939806a7cfda2e
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 28 22:34:42 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=c6b7729f
7
8 app-i18n/pology: EAPI-7, use kde.org, cmake.eclass, disable epydoc
9
10 A lot has happened since this was last touched, unfortunately no py3. Yet.
11 Upstream repository switched to git.
12
13 Fix doc install dir.
14 Run python_optimize.
15
16 Bug: https://bugs.gentoo.org/707036
17 Package-Manager: Portage-2.3.86, Repoman-2.3.20
18 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
19
20 app-i18n/pology/pology-9999.ebuild | 64 +++++++++++++++++++++-----------------
21 1 file changed, 35 insertions(+), 29 deletions(-)
22
23 diff --git a/app-i18n/pology/pology-9999.ebuild b/app-i18n/pology/pology-9999.ebuild
24 index a1c06c9a171..1670d22e95e 100644
25 --- a/app-i18n/pology/pology-9999.ebuild
26 +++ b/app-i18n/pology/pology-9999.ebuild
27 @@ -1,61 +1,67 @@
28 -# Copyright 1999-2018 Gentoo Foundation
29 +# Copyright 1999-2020 Gentoo Authors
30 # Distributed under the terms of the GNU General Public License v2
31
32 -EAPI=6
33 +EAPI=7
34
35 -ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology"
36 PYTHON_COMPAT=( python2_7 )
37 -
38 -[[ ${PV} == 9999 ]] && VCS_ECLASS="subversion"
39 -
40 -inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS}
41 -unset VCS_ECLASS
42 +inherit bash-completion-r1 cmake kde.org python-single-r1
43
44 DESCRIPTION="A framework for custom processing of PO files"
45 HOMEPAGE="http://pology.nedohodnik.net"
46 -[[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2"
47 +
48 +if [[ ${KDE_BUILD_TYPE} = release ]]; then
49 + SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2"
50 + KEYWORDS="~amd64 ~x86"
51 +fi
52
53 LICENSE="GPL-3"
54 SLOT="0"
55 -[[ ${PV} == 9999 ]] || \
56 -KEYWORDS="~amd64 ~x86"
57 IUSE=""
58
59 -RDEPEND="
60 - dev-libs/libxslt
61 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
62 +
63 +BDEPEND="
64 + app-text/docbook-xsl-stylesheets
65 + app-text/docbook-xml-dtd:4.5
66 +"
67 +RDEPEND="${PYTHON_DEPS}
68 dev-libs/libxml2
69 + dev-libs/libxslt
70 dev-python/dbus-python[${PYTHON_USEDEP}]
71 sys-devel/gettext
72 - ${PYTHON_DEPS}
73 -"
74 -DEPEND="${RDEPEND}
75 - app-text/docbook-xsl-stylesheets
76 - app-text/docbook-xml-dtd:4.5
77 - dev-python/epydoc[${PYTHON_USEDEP}]
78 "
79 -
80 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
81 +DEPEND="${RDEPEND}"
82
83 # Magic on python parsing makes it impossible to make it parallel safe
84 MAKEOPTS+=" -j1"
85
86 src_prepare() {
87 - cmake-utils_src_prepare
88 + cmake_src_prepare
89 + sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die
90 python_fix_shebang .
91 }
92
93 +src_configure() {
94 + local mycmakeargs=(
95 + -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
96 + -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON
97 + )
98 + cmake_src_configure
99 +}
100 +
101 src_install() {
102 - cmake-utils_src_install
103 + cmake_src_install
104 + python_optimize
105
106 dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
107
108 newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
109 bashcomp_alias {posieve,poediff}{,.py}
110
111 - einfo "You should also consider following packages to install:"
112 - einfo " app-text/aspell"
113 - einfo " app-text/hunspell"
114 - einfo " dev-vcs/git"
115 - einfo " dev-vcs/subversion"
116 - einfo " sci-misc/apertium"
117 + elog "You should also consider following packages to install:"
118 + elog " app-text/aspell"
119 + elog " app-text/hunspell"
120 + elog " dev-vcs/git"
121 + elog " dev-vcs/subversion"
122 + elog " sci-misc/apertium"
123 }