From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3A40158086 for ; Sun, 31 Oct 2021 08:21:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B905E083D; Sun, 31 Oct 2021 08:21:32 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C248E083D for ; Sun, 31 Oct 2021 08:21:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03014343710 for ; Sun, 31 Oct 2021 08:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 63BFE8F for ; Sun, 31 Oct 2021 08:21:29 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1635668481.32c96d50122cd4de336dc5a00816965cede95748.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/remarkable/files/, app-editors/remarkable/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/remarkable/Manifest app-editors/remarkable/files/README.gentoo app-editors/remarkable/files/remarkable-1.9.0_pre20210320-disable-spellcheck.patch app-editors/remarkable/metadata.xml app-editors/remarkable/remarkable-1.9.0_pre20210320.ebuild X-VCS-Directories: app-editors/remarkable/ app-editors/remarkable/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 32c96d50122cd4de336dc5a00816965cede95748 X-VCS-Branch: master Date: Sun, 31 Oct 2021 08:21:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ab9e2d49-a169-48e3-98d7-312b2bd984fc X-Archives-Hash: d690f48cbb558bb890678f6a782b966f commit: 32c96d50122cd4de336dc5a00816965cede95748 Author: Martin Dummer gmx net> AuthorDate: Mon Sep 20 16:42:41 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Oct 31 08:21:21 2021 +0000 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 00000000000..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 00000000000..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 00000000000..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 00000000000..807eeb2b38c --- /dev/null +++ b/app-editors/remarkable/metadata.xml @@ -0,0 +1,12 @@ + + + + + martin.dummer@gmx.net + Martin Dummer + + + proxy-maint@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 00000000000..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}] + 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 +}