summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2023-03-11 20:56:03 +0100
committerSam James <sam@gentoo.org>2023-03-11 21:22:30 +0000
commitb0009b3e1e9f5923e564760e69607f38992c7ba8 (patch)
treed9fc9e9b0dca8c52e8ab8d80f4818480cf7ac038 /app-editors
parentapp-vim/gentoo-syntax: Bump to v9 (diff)
downloadgentoo-b0009b3e1e9f5923e564760e69607f38992c7ba8.tar.gz
gentoo-b0009b3e1e9f5923e564760e69607f38992c7ba8.tar.bz2
gentoo-b0009b3e1e9f5923e564760e69607f38992c7ba8.zip
app-editors/remarkable: misc fixes
Update EAPI 7 -> 8 Enable py3.11 Migrate from net-libs/webkit-gtk:4 to :4.1 Closes: https://bugs.gentoo.org/896528 Closes: https://bugs.gentoo.org/893672 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/30058 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/remarkable/files/webkit-version.patch11
-rw-r--r--app-editors/remarkable/metadata.xml3
-rw-r--r--app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild69
3 files changed, 83 insertions, 0 deletions
diff --git a/app-editors/remarkable/files/webkit-version.patch b/app-editors/remarkable/files/webkit-version.patch
new file mode 100644
index 000000000000..6b64a9f8b6e6
--- /dev/null
+++ b/app-editors/remarkable/files/webkit-version.patch
@@ -0,0 +1,11 @@
+--- a/remarkable/RemarkableWindow.py 2023-03-11 19:50:14.183333326 +0100
++++ b/remarkable/RemarkableWindow.py 2023-03-11 19:57:02.033333327 +0100
+@@ -24,7 +24,7 @@
+ import gi
+ gi.require_version('Gtk', '3.0')
+ gi.require_version('GtkSource', '3.0')
+-gi.require_version('WebKit2', '4.0')
++gi.require_version('WebKit2', '4.1')
+
+ from bs4 import BeautifulSoup
+ from gi.repository import Gdk, Gtk, GtkSource, Pango, WebKit2
diff --git a/app-editors/remarkable/metadata.xml b/app-editors/remarkable/metadata.xml
index f16c98dc3065..0aa3bb718657 100644
--- a/app-editors/remarkable/metadata.xml
+++ b/app-editors/remarkable/metadata.xml
@@ -9,4 +9,7 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">jamiemcg/remarkable</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
new file mode 100644
index 000000000000..d48bf3e3a2b8
--- /dev/null
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit desktop gnome2-utils python-single-r1 readme.gentoo-r1
+
+DESCRIPTION="Fully featured markdown editor, supports github markdown dialect"
+HOMEPAGE="https://remarkableapp.github.io/ https://github.com/jamiemcg/remarkable"
+GIT_COMMIT="7b0b3dacef270a00c28e8852a88d74f72a3544d7"
+SRC_URI="https://github.com/jamiemcg/remarkable/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/Remarkable-${GIT_COMMIT}"
+
+LICENSE="BSD-2 GPL-2+ LGPL-2.1+ MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ net-libs/webkit-gtk:4.1[introspection]
+ x11-libs/gtk+:3[introspection]
+ x11-libs/gtksourceview:3.0[introspection]
+ $(python_gen_cond_dep '
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ ')"
+RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-disable-spellcheck.patch
+ "${FILESDIR}"/webkit-version.patch
+)
+
+src_prepare() {
+ default
+ sed -i -e "s|import styles|from remarkable import styles|" \
+ -e "s|from findBar|from remarkable.findBar|" \
+ remarkable/RemarkableWindow.py || die
+}
+
+src_install() {
+ default
+
+ python_domodule markdown pdfkit remarkable remarkable_lib
+ python_doscript bin/remarkable
+ doicon data/ui/remarkable.png
+ domenu ${PN}.desktop
+
+ insinto /usr/share/${PN}
+ doins -r data/ui
+ doins -r data/media
+
+ insinto /usr/share/glib-2.0/schemas
+ doins data/glib-2.0/schemas/*
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_schemas_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}