[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/

2024-04-26 Thread Michał Górny
commit: 0c3a63163b1e534920a957c63e931508a5115789
Author: Martin Dummer  gmx  net>
AuthorDate: Fri Apr 26 21:26:09 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Apr 27 06:41:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c3a6316

app-editors/remarkable: drop 1.9.0_pre20210320-r2

Signed-off-by: Martin Dummer  gmx.net>
Signed-off-by: Michał Górny  gentoo.org>

 .../remarkable-1.9.0_pre20210320-r2.ebuild | 69 --
 1 file changed, 69 deletions(-)

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
deleted file mode 100644
index c3b373f0dc21..
--- a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# 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 ~arm64 ~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
-}



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/

2024-04-26 Thread Michał Górny
commit: 92043d12f8f91deb5c00d52a8f6fdbcef81c3770
Author: Martin Dummer  gmx  net>
AuthorDate: Fri Apr 26 21:28:47 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Apr 27 06:41:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92043d12

app-editors/remarkable: enable py3.12

Closes: https://bugs.gentoo.org/929300
Signed-off-by: Martin Dummer  gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/36446
Signed-off-by: Michał Górny  gentoo.org>

 app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild
index 1525913a442f..f35866eca613 100644
--- a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 inherit desktop gnome2-utils python-single-r1 readme.gentoo-r1
 
 DESCRIPTION="Fully featured markdown editor, supports github markdown dialect"



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/files/, app-editors/remarkable/

2024-02-29 Thread Joonas Niilola
commit: 824b749b2b7acd55d422a1bd82a4279b5bf5421e
Author: Martin Dummer  gmx  net>
AuthorDate: Wed Jan 31 20:01:30 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Feb 29 12:44:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824b749b

app-editors/remarkable: fix custom css is not loaded on start

patch to fix https://github.com/jamiemcg/Remarkable/issues/345

Closes: https://bugs.gentoo.org/911722
Signed-off-by: Martin Dummer  gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/35120
Signed-off-by: Joonas Niilola  gentoo.org>

 .../remarkable/files/fix-custom-css-issue.patch| 29 +
 .../remarkable-1.9.0_pre20210320-r3.ebuild | 70 ++
 2 files changed, 99 insertions(+)

diff --git a/app-editors/remarkable/files/fix-custom-css-issue.patch 
b/app-editors/remarkable/files/fix-custom-css-issue.patch
new file mode 100644
index ..4d45f18a01b4
--- /dev/null
+++ b/app-editors/remarkable/files/fix-custom-css-issue.patch
@@ -0,0 +1,29 @@
+From 09459c2e577a0ae2561e4f785efc026dcfb65809 Mon Sep 17 00:00:00 2001
+From: Nikita Zlobin 
+Date: Fri, 4 Aug 2023 23:56:43 +0500
+Subject: [PATCH] Fix issue #345 - apply custom css on start
+
+Just a typo, when default empty css was used on application start
+instead of configured.
+
+Fixes #345
+---
+ remarkable/RemarkableWindow.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/remarkable/RemarkableWindow.py b/remarkable/RemarkableWindow.py
+index d54aa32..45134ab 100755
+--- a/remarkable/RemarkableWindow.py
 b/remarkable/RemarkableWindow.py
+@@ -331,7 +331,7 @@ class RemarkableWindow(Window):
+ elif self.style == "solarized_light":
+ styles.set(styles.solarized_light)
+ elif self.style == "custom":
+-styles.set(styles.custom_css)
++styles.set(self.custom_css)
+ else:
+ print("Style key error")
+ 
+-- 
+2.39.3
+

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild
new file mode 100644
index ..1525913a442f
--- /dev/null
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2021-2024 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 ~arm64 ~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
+   "${FILESDIR}"/fix-custom-css-issue.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
+}



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/

2024-02-29 Thread Joonas Niilola
commit: 4ddba10d8b079219c57b898dd32e36d5a08e9ad0
Author: Martin Dummer  gmx  net>
AuthorDate: Wed Jan 31 20:00:28 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Feb 29 12:44:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ddba10d

app-editors/remarkable: drop 1.9.0_pre20210320-r1

Signed-off-by: Martin Dummer  gmx.net>
Signed-off-by: Joonas Niilola  gentoo.org>

 .../remarkable-1.9.0_pre20210320-r1.ebuild | 66 --
 1 file changed, 66 deletions(-)

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild
deleted file mode 100644
index c8da7cfffe10..
--- a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 2021-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{9..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:4[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
-}



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/

2023-05-29 Thread Sam James
commit: 84f9e12f239ab3fd6d15a0c23df11d114b928ac2
Author: Sam James  gentoo  org>
AuthorDate: Mon May 29 23:49:47 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon May 29 23:49:47 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84f9e12f

app-editors/remarkable: Keyword 1.9.0_pre20210320-r2 arm64, #907100

Signed-off-by: Sam James  gentoo.org>

 app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
index d48bf3e3a2b8..c3b373f0dc21 100644
--- a/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r2.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/Remarkable-${GIT_COMMIT}"
 
 LICENSE="BSD-2 GPL-2+ LGPL-2.1+ MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~arm64 ~x86"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/, app-editors/remarkable/files/

2023-03-11 Thread Sam James
commit: b0009b3e1e9f5923e564760e69607f38992c7ba8
Author: Martin Dummer  gmx  net>
AuthorDate: Sat Mar 11 19:56:03 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar 11 21:22:30 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0009b3e

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  gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/30058
Signed-off-by: Sam James  gentoo.org>

 app-editors/remarkable/files/webkit-version.patch  | 11 
 app-editors/remarkable/metadata.xml|  3 +
 .../remarkable-1.9.0_pre20210320-r2.ebuild | 69 ++
 3 files changed, 83 insertions(+)

diff --git a/app-editors/remarkable/files/webkit-version.patch 
b/app-editors/remarkable/files/webkit-version.patch
new file mode 100644
index ..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.18326 +0100
 b/remarkable/RemarkableWindow.py   2023-03-11 19:57:02.03327 +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 @@
proxy-ma...@gentoo.org
Proxy Maintainers

+   
+   jamiemcg/remarkable
+   
 

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 ..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
+}



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/

2022-09-20 Thread Matt Turner
commit: 5b0c9d5beed2da01e85f868e48d53863579bcb66
Author: brahmajit das  protonmail  com>
AuthorDate: Tue Sep 20 05:28:30 2022 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Sep 20 15:29:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0c9d5b

app-editors/remarkable: Using webkit-gtk in slot 4

This is needed for as webkit-gtk will now have slots to handle
webkit2gtk-4.0 and webkit2gtk-4.1, and we want to make sure that we pull
in the correct webkit-gtk.

Closes: https://github.com/gentoo/gentoo/pull/27361
Signed-off-by: brahmajit das  protonmail.com>
Signed-off-by: Matt Turner  gentoo.org>

 9.0_pre20210320.ebuild => remarkable-1.9.0_pre20210320-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild 
b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild
similarity index 95%
rename from app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild
rename to app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild
index 876a5a238409..ababb46124c6 100644
--- a/app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild
+++ b/app-editors/remarkable/remarkable-1.9.0_pre20210320-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2021-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="
${PYTHON_DEPS}
-   net-libs/webkit-gtk[introspection]
+   net-libs/webkit-gtk:4[introspection]
x11-libs/gtk+:3[introspection]
x11-libs/gtksourceview:3.0[introspection]
$(python_gen_cond_dep '



[gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/files/, app-editors/remarkable/

2021-10-31 Thread Joonas Niilola
commit: 32c96d50122cd4de336dc5a00816965cede95748
Author: Martin Dummer  gmx  net>
AuthorDate: Mon Sep 20 16:42:41 2021 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Oct 31 08:21:21 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32c96d50

app-editors/remarkable: new package

remarkable is a full featured markdown editor, supporting
the github markdown dialect

Closes: https://bugs.gentoo.org/616208
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Martin Dummer  gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/22341
Signed-off-by: Joonas Niilola  gentoo.org>

 app-editors/remarkable/Manifest|  1 +
 app-editors/remarkable/files/README.gentoo | 10 
 ...able-1.9.0_pre20210320-disable-spellcheck.patch | 23 
 app-editors/remarkable/metadata.xml| 12 
 .../remarkable/remarkable-1.9.0_pre20210320.ebuild | 66 ++
 5 files changed, 112 insertions(+)

diff --git a/app-editors/remarkable/Manifest b/app-editors/remarkable/Manifest
new file mode 100644
index 000..9a5732e15b1
--- /dev/null
+++ b/app-editors/remarkable/Manifest
@@ -0,0 +1 @@
+DIST remarkable-1.9.0_pre20210320.tar.gz 132617 BLAKE2B 
e3146ad354ebbe7972556d5952a576a1e242bd2aefca91948d75ae6c571fe3e1956e40184db4c5ca6a47f01130a7745101fe556c49854058b9fd110cb74783ae
 SHA512 
0cfe1a01a198396dbc6f30d9e4ca4fa2de6624f29557d60053a7e446a0a3da3a577b32b25ba6eb93300316ede6afad4140ff75bd3e411e15cb1e5221d2b095d9

diff --git a/app-editors/remarkable/files/README.gentoo 
b/app-editors/remarkable/files/README.gentoo
new file mode 100644
index 000..9533e5f0de4
--- /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 000..6dbd4cf48a8
--- /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 
+
+--- 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 000..807eeb2b38c
--- /dev/null
+++ b/app-editors/remarkable/metadata.xml
@@ -0,0 +1,12 @@
+
+http://www.gentoo.org/dtd/metadata.dtd";>
+
+   
+   martin.dum...@gmx.net
+   Martin Dummer
+   
+   
+   proxy-ma...@gentoo.org
+   Proxy Maintainers
+   
+

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 000..876a5a23840
--- /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}]
+