aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-12-30 16:26:01 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-03-29 18:47:50 +0200
commit589ec2a484fa1fc5d4d6a231804178bb5a008e30 (patch)
tree0d3e47412dbb54ef1dd0c4e778aca1dc3aaea505 /app-i18n
parentkde-apps/kross-interpreters: Remove last-rited package (diff)
downloadkde-589ec2a484fa1fc5d4d6a231804178bb5a008e30.tar.gz
kde-589ec2a484fa1fc5d4d6a231804178bb5a008e30.tar.bz2
kde-589ec2a484fa1fc5d4d6a231804178bb5a008e30.zip
app-i18n/pology: Re-add package with Python3 support
See also: https://invent.kde.org/sdk/pology/-/issues/1#note_586250 Bug: https://bugs.gentoo.org/735222 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/pology/metadata.xml8
-rw-r--r--app-i18n/pology/pology-9999.ebuild72
2 files changed, 80 insertions, 0 deletions
diff --git a/app-i18n/pology/metadata.xml b/app-i18n/pology/metadata.xml
new file mode 100644
index 0000000000..2fdbf33d96
--- /dev/null
+++ b/app-i18n/pology/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/pology/pology-9999.ebuild b/app-i18n/pology/pology-9999.ebuild
new file mode 100644
index 0000000000..079ecb8e6c
--- /dev/null
+++ b/app-i18n/pology/pology-9999.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+KDE_ORG_CATEGORY="sdk"
+PYTHON_COMPAT=( python3_{9..11} )
+inherit bash-completion-r1 cmake kde.org python-single-r1
+
+DESCRIPTION="A framework for custom processing of PO files"
+HOMEPAGE="http://pology.nedohodnik.net"
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+ SRC_URI="http://pology.nedohodnik.net/release/${P}.tar.bz2"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libxml2
+ dev-libs/libxslt
+ $(python_gen_cond_dep '
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ ')
+ sys-devel/gettext
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.5
+"
+
+# Magic on python parsing makes it impossible to make it parallel safe
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ cmake_src_prepare
+ sed -e "/DOC_INSTALL_DIR/s/^/#DONT/" -i CMakeLists.txt || die
+ sed -e "/install.*pycfiles.*instdir/d" -i cmake/Python3Tools.cmake || die
+ python_fix_shebang .
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ -DCMAKE_DISABLE_FIND_PACKAGE_Epydoc=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Pygments=ON
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ python_optimize
+
+ dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
+
+ newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
+ bashcomp_alias {posieve,poediff}{,.py}
+
+ elog "You should also consider following packages to install:"
+ elog " app-text/aspell"
+ elog " app-text/hunspell"
+ elog " dev-vcs/git"
+ elog " dev-vcs/subversion"
+ elog " sci-misc/apertium"
+}