summaryrefslogtreecommitdiff
path: root/app-editors/remarkable
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-11-03 06:47:15 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-11-03 06:47:15 +0000
commitfc2f1018fc323ef2c6572734a9b130427cba76a6 (patch)
treef834bdc9a67923ce75297c09d00d1e7b90791d26 /app-editors/remarkable
parent162945d2a91899b637bbb9e163b406350de12906 (diff)
gentoo resync : 03.11.2021
Diffstat (limited to 'app-editors/remarkable')
-rw-r--r--app-editors/remarkable/Manifest5
-rw-r--r--app-editors/remarkable/files/README.gentoo10
-rw-r--r--app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch23
-rw-r--r--app-editors/remarkable/metadata.xml12
-rw-r--r--app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild66
5 files changed, 116 insertions, 0 deletions
diff --git a/app-editors/remarkable/Manifest b/app-editors/remarkable/Manifest
new file mode 100644
index 000000000000..305420b71151
--- /dev/null
+++ b/app-editors/remarkable/Manifest
@@ -0,0 +1,5 @@
+AUX README.gentoo 376 BLAKE2B f729f74ca958d1306837710bf325ef1dba4bd9001fbfdc1916e87f9f9761966c1fcef8c18ca82edf754350df621497aa0e8f229959faeaa68ff823dda2079c74 SHA512 682823d8178d1d37eed241b9c43fad3a6469005de2bdad622e7b507243f9e7c20e6459ba24ad0af784c3fc5910c564f61bcd239e971c1289eb0ff29039f9338a
+AUX remarkable-1.9.0_pre20210320-disable-spellcheck.patch 716 BLAKE2B 6dce65483ffb1ab38cc0a47dcf90f7833432d10517bbf4a3b8293373074fe591af8759d716f4c5bb8fb96ccadfe63047fe95991397b762c09d2ab6fa26a8f77a SHA512 496865ad19a29e570a5cd5d72d989a68afbd634e0db84201e9ca7ba304b50e0a8da1216903e286ea6104b4a24c4559dc2bbe70073c06267730ec4155c543b154
+DIST remarkable-1.9.0_pre20210320.tar.gz 132617 BLAKE2B e3146ad354ebbe7972556d5952a576a1e242bd2aefca91948d75ae6c571fe3e1956e40184db4c5ca6a47f01130a7745101fe556c49854058b9fd110cb74783ae SHA512 0cfe1a01a198396dbc6f30d9e4ca4fa2de6624f29557d60053a7e446a0a3da3a577b32b25ba6eb93300316ede6afad4140ff75bd3e411e15cb1e5221d2b095d9
+EBUILD remarkable-1.9.0_pre20210320.ebuild 1696 BLAKE2B eb2a5b7dea313b31510c5bf3c03e8690c13aaf2f6f4a1d38913f288bdabf4fa036844ea388eb3a5f7ca1869c1f457cb703386972a5da289f310a2ba3bd719697 SHA512 0d049a846a643d88ac888983fe1dbb2fe4dd02819e954532da06c6329f99d90a304f2b41874160691ddb15194bc25352b6535b6acda2d88683aa4e56d2b86453
+MISC metadata.xml 397 BLAKE2B 085e3a2bbb0db2ab42db784c18f8c1871f32a3e135226163d8a1ca3f612baf1efe6977a3dd8407fe850de154cb64de26520e3ba4ed5b3dd143cd422eefe5c750 SHA512 7b013dd022005f5b76a6e6dad9422565f4018736f013da5f4870bf2b51c0fd9f1f6c1127e0c31282125507e05011469e43f2efe48714ec0b2481f1e0da164657
diff --git a/app-editors/remarkable/files/README.gentoo b/app-editors/remarkable/files/README.gentoo
new file mode 100644
index 000000000000..9533e5f0de44
--- /dev/null
+++ b/app-editors/remarkable/files/README.gentoo
@@ -0,0 +1,10 @@
+
+Known Gentoo-related issues:
+============================
+
+- export to HTML/PDF does not work (this feature would need the python module
+ "wkhtmltopdf" which is not packaged for gentoo and most probably will
+ never be - it depends on deprecated Qt WebKit)
+- spellchecking is disabled (would need python module pygtkspellcheck which)
+ is also not packaged for gentoo yet)
+
diff --git a/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch b/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch
new file mode 100644
index 000000000000..6dbd4cf48a8d
--- /dev/null
+++ b/app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch
@@ -0,0 +1,23 @@
+Remove the spellcheck option permanently unless someone is packaging
+pygtkspellcheck for Gentoo
+
+Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
+
+--- a/remarkable/RemarkableWindow.py
++++ b/remarkable/RemarkableWindow.py
+@@ -41,13 +41,8 @@
+ import warnings
+ from findBar import FindBar
+
+-# Check if gtkspellcheck is installed
+-try:
+- from gtkspellcheck import SpellChecker
+- spellcheck_enabled = True
+-except:
+- print("*Spellchecking not enabled.\n*To enable spellchecking install pygtkspellcheck\n*https://pypi.python.org/pypi/pygtkspellcheck/")
+- spellcheck_enabled = False
++# spellcheck permanently disabled
++spellcheck_enabled = False
+
+ import logging
+ logger = logging.getLogger('remarkable')
diff --git a/app-editors/remarkable/metadata.xml b/app-editors/remarkable/metadata.xml
new file mode 100644
index 000000000000..807eeb2b38c2
--- /dev/null
+++ b/app-editors/remarkable/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>martin.dummer@gmx.net</email>
+ <name>Martin Dummer</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild b/app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild
new file mode 100644
index 000000000000..876a5a238409
--- /dev/null
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+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[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 )
+
+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
+}