Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-editors/remarkable: new package #22341

Closed
wants to merge 1 commit into from

Conversation

madmartin
Copy link
Contributor

@madmartin madmartin commented Sep 20, 2021

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 martin.dummer@gmx.net

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @madmartin
Areas affected: ebuilds
Packages affected: app-editors/remarkable

app-editors/remarkable: @gentoo/proxy-maint (new package)

Linked bugs

Bugs linked: 616208

New packages

This Pull Request appears to be introducing new packages only. Due to limited manpower, adding new packages is considered low priority. This does not mean that your Pull Request will not receive any attention, however, it might take quite some time for it to be reviewed. In the meantime, your new ebuild might find a home in the GURU project repository: the ebuild repository maintained collaboratively by Gentoo users. GURU offers your ebuild a place to be reviewed and improved by other Gentoo users, while making it easy for Gentoo users to install it and enjoy the software it adds.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Sep 20, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-09-20 16:59 UTC
Newest commit scanned: da1076e
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/aa4c854952/output.html

')"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=( "${FILESDIR}"/disable-spellcheck.patch )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why what? please ask more specific

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why include a disable spellcheck patch?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose looking further it may be because that package doesn't exist. If you wanted to you could add it here! Up to you of course

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the reason. pygtkspellcheck has no gentoo package, and I am not motivated to do this yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add PN and preferably some PV to the patch name so it's identifiable.
https://devmanual.gentoo.org/ebuild-writing/misc-files/patches/index.html#file-naming

PYTHON_COMPAT=( python3_{8..10} )
inherit desktop gnome2-utils python-single-r1

DESCRIPTION="a fully featured markdown editor, supports github markdown dialect"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DESCRIPTION="a fully featured markdown editor, supports github markdown dialect"
DESCRIPTION="A fully featured markdown editor, supports github markdown dialect"

or

Suggested change
DESCRIPTION="a fully featured markdown editor, supports github markdown dialect"
DESCRIPTION="Fully featured markdown editor, supports github markdown dialect"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I choose the second variant, saves 2 bytes!

SRC_URI="https://github.com/jamiemcg/remarkable/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/Remarkable-${GIT_COMMIT}"

LICENSE="MIT"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it needs LICENSE="BSD-2 GPL-2+ LGPL-2.1+ MIT"

Comment on lines 21 to 31
DEPEND="
${PYTHON_DEPS}
net-libs/webkit-gtk
$(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}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# remarkable 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/remarkable", line 65, in <module>
    import remarkable
  File "/usr/lib/python3.8/site-packages/remarkable/__init__.py", line 30, in <module>
    from remarkable import RemarkableWindow
  File "/usr/lib/python3.8/site-packages/remarkable/RemarkableWindow.py", line 26, in <module>
    gi.require_version('GtkSource', '3.0')
  File "/usr/lib/python3.8/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available

Copy link
Contributor Author

@madmartin madmartin Oct 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm.... I am a bit clueless here. Maybe the use-flags of webkit-gtk are different at your side? My installation has
[I] net-libs/webkit-gtk ... Installed versions: 2.32.4(4/37)^t(23:24:37 10/05/21)(X egl geolocation gstreamer introspection jpeg2k jumbo-build libnotify opengl seccomp spell -aqua -examples -gamepad -gles2-only -gnome-keyring -gtk-doc -systemd -test -wayland)

Copy link
Member

@juippis juippis Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to depend on x11-libs/gtksourceview:3.0 (:3.0 specifically). And you need the [introspection] from it.
Oh you also need to depend on gtk+-3[introspection] and webkit-gtk[introspection] too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@juippis Thanks for pointing that out!
All changes done.

dev-python/markdown[${PYTHON_USEDEP}]
')"
RDEPEND="${DEPEND}"
BDEPEND=""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed.

')"
RDEPEND="${DEPEND}"
BDEPEND=""
PATCHES=( "${FILESDIR}"/disable-spellcheck.patch )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add PN and preferably some PV to the patch name so it's identifiable.
https://devmanual.gentoo.org/ebuild-writing/misc-files/patches/index.html#file-naming

Comment on lines 58 to 60
ewarn "Known issues:"
ewarn "- export to HTML/PDF does not work (\"wkhtmltopdf\" not packetized/will never be)"
ewarn "- spellchecking is disabled (would need python module \"pygtkspellcheck\")"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these could be shipped with a readme file, via https://devmanual.gentoo.org/eclass-reference/readme.gentoo-r1.eclass/index.html?

What's wrong with shipping wkhtmltopdf?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wkhtmltopdf declares himself to be almost dead and depends on qtwebkit....

I will take a look at readme.gentoo-r1.eclass for sure.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-16 13:11 UTC
Newest commit scanned: 527cda3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/bda843990a/output.html

Copy link
Member

@juippis juippis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few things to improve, but looking really good! Got the program to launch and it works.

Comment on lines 21 to 31
DEPEND="
${PYTHON_DEPS}
net-libs/webkit-gtk
$(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}"
Copy link
Member

@juippis juippis Oct 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to depend on x11-libs/gtksourceview:3.0 (:3.0 specifically). And you need the [introspection] from it.
Oh you also need to depend on gtk+-3[introspection] and webkit-gtk[introspection] too.

@@ -0,0 +1,10 @@

Known issues:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Known issues:
Known Gentoo-related issues:

"wkhtmltopdf" which is not packetized 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 packetized for gentoo yet)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is also not packetized for gentoo yet)
is also not packaged for gentoo yet)

I'm not a native English speaker but "packetized" doesn't sound like any word to me :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also not a native english speaker, but the two dictionaries I ask know "to packetize"... which is more or less the same meaning as "to package". If you think "packaged" sounds nicer I'll change that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please.

inherit desktop gnome2-utils python-single-r1 readme.gentoo-r1

DESCRIPTION="Fully featured markdown editor, supports github markdown dialect"
HOMEPAGE="http://remarkableapp.github.io/ https://github.com/jamiemcg/remarkable"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
HOMEPAGE="http://remarkableapp.github.io/ https://github.com/jamiemcg/remarkable"
HOMEPAGE="https://remarkableapp.github.io/ https://github.com/jamiemcg/remarkable"

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 <martin.dummer@gmx.net>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-10-27 21:31 UTC
Newest commit scanned: 1c2752e
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0e02e0c6ee/output.html

Copy link
Member

@juippis juippis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@madmartin madmartin deleted the remarkable branch November 16, 2021 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
5 participants