diff --git a/editors/Makefile b/editors/Makefile index bbbbf2a96a4c..116dd89a6a4b 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -1,306 +1,307 @@ COMMENT = Editors SUBDIR += 2bsd-vi SUBDIR += abiword SUBDIR += abiword-docs SUBDIR += ad SUBDIR += aee SUBDIR += aewan SUBDIR += amp SUBDIR += apel SUBDIR += beav SUBDIR += bee-host SUBDIR += biew SUBDIR += bined SUBDIR += bingrok SUBDIR += bitedit SUBDIR += bless SUBDIR += boiling-egg SUBDIR += bpatch SUBDIR += bvi SUBDIR += calligra SUBDIR += calligraplan SUBDIR += chexedit SUBDIR += consult.el SUBDIR += cooledit SUBDIR += cpeditor SUBDIR += cream SUBDIR += cudatext SUBDIR += deforaos-editor SUBDIR += dhex SUBDIR += diakonos SUBDIR += diamond SUBDIR += dkns SUBDIR += drjava SUBDIR += dte SUBDIR += dz6 SUBDIR += e3 SUBDIR += e93 SUBDIR += ecce SUBDIR += ecrire SUBDIR += editorconfig-core-c SUBDIR += elementary-code SUBDIR += emacs SUBDIR += emacs-devel SUBDIR += encryptpad SUBDIR += enter-tex SUBDIR += featherpad SUBDIR += fileobj SUBDIR += flim SUBDIR += focuswriter SUBDIR += fxite SUBDIR += gedit SUBDIR += gedit-plugins SUBDIR += ghex SUBDIR += ghostwriter SUBDIR += gmanedit SUBDIR += gnome-text-editor SUBDIR += gobby SUBDIR += gomate SUBDIR += gummi SUBDIR += helix SUBDIR += heme SUBDIR += hexcurse SUBDIR += hexedit SUBDIR += hexer SUBDIR += hexpert SUBDIR += hnb SUBDIR += hte SUBDIR += imhex SUBDIR += jed SUBDIR += jedit SUBDIR += joe SUBDIR += jove SUBDIR += jucipp SUBDIR += jupp SUBDIR += kakoune SUBDIR += kakoune-lsp SUBDIR += kate SUBDIR += kibi SUBDIR += kile SUBDIR += komodo-edit SUBDIR += languageclient-neovim SUBDIR += lapce SUBDIR += lazarus SUBDIR += lazarus-devel SUBDIR += lazarus-gtk3-devel SUBDIR += lazarus-qt5 SUBDIR += lazarus-qt5-devel SUBDIR += lazarus-qt6 SUBDIR += lazarus-qt6-devel SUBDIR += le SUBDIR += leafpad SUBDIR += libreoffice SUBDIR += libreoffice-af SUBDIR += libreoffice-am SUBDIR += libreoffice-as SUBDIR += libreoffice-ast SUBDIR += libreoffice-be SUBDIR += libreoffice-bg SUBDIR += libreoffice-bn SUBDIR += libreoffice-bn_IN SUBDIR += libreoffice-bo SUBDIR += libreoffice-br SUBDIR += libreoffice-brx SUBDIR += libreoffice-bs SUBDIR += libreoffice-ca SUBDIR += libreoffice-ca_valencia SUBDIR += libreoffice-ckb SUBDIR += libreoffice-cs SUBDIR += libreoffice-cy SUBDIR += libreoffice-da SUBDIR += libreoffice-dgo SUBDIR += libreoffice-dsb SUBDIR += libreoffice-dz SUBDIR += libreoffice-el SUBDIR += libreoffice-en_GB SUBDIR += libreoffice-en_ZA SUBDIR += libreoffice-eo SUBDIR += libreoffice-es SUBDIR += libreoffice-et SUBDIR += libreoffice-eu SUBDIR += libreoffice-fa SUBDIR += libreoffice-fi SUBDIR += libreoffice-fur SUBDIR += libreoffice-fy SUBDIR += libreoffice-ga SUBDIR += libreoffice-gd SUBDIR += libreoffice-gl SUBDIR += libreoffice-gu SUBDIR += libreoffice-gug SUBDIR += libreoffice-hi SUBDIR += libreoffice-hr SUBDIR += libreoffice-hsb SUBDIR += libreoffice-hy SUBDIR += libreoffice-i18n SUBDIR += libreoffice-id SUBDIR += libreoffice-is SUBDIR += libreoffice-it SUBDIR += libreoffice-ka SUBDIR += libreoffice-kab SUBDIR += libreoffice-kk SUBDIR += libreoffice-km SUBDIR += libreoffice-kmr_Latn SUBDIR += libreoffice-kn SUBDIR += libreoffice-kok SUBDIR += libreoffice-ks SUBDIR += libreoffice-lb SUBDIR += libreoffice-lo SUBDIR += libreoffice-lt SUBDIR += libreoffice-lv SUBDIR += libreoffice-mai SUBDIR += libreoffice-mk SUBDIR += libreoffice-ml SUBDIR += libreoffice-mn SUBDIR += libreoffice-mni SUBDIR += libreoffice-mr SUBDIR += libreoffice-my SUBDIR += libreoffice-nb SUBDIR += libreoffice-ne SUBDIR += libreoffice-nl SUBDIR += libreoffice-nn SUBDIR += libreoffice-nr SUBDIR += libreoffice-nso SUBDIR += libreoffice-oc SUBDIR += libreoffice-om SUBDIR += libreoffice-or SUBDIR += libreoffice-pa_IN SUBDIR += libreoffice-ro SUBDIR += libreoffice-rw SUBDIR += libreoffice-sa_IN SUBDIR += libreoffice-sat SUBDIR += libreoffice-sd SUBDIR += libreoffice-si SUBDIR += libreoffice-sid SUBDIR += libreoffice-sk SUBDIR += libreoffice-sl SUBDIR += libreoffice-sq SUBDIR += libreoffice-sr SUBDIR += libreoffice-sr_Latn SUBDIR += libreoffice-ss SUBDIR += libreoffice-st SUBDIR += libreoffice-sv SUBDIR += libreoffice-sw_TZ SUBDIR += libreoffice-szl SUBDIR += libreoffice-ta SUBDIR += libreoffice-te SUBDIR += libreoffice-tg SUBDIR += libreoffice-th SUBDIR += libreoffice-tn SUBDIR += libreoffice-tr SUBDIR += libreoffice-ts SUBDIR += libreoffice-tt SUBDIR += libreoffice-ug SUBDIR += libreoffice-uz SUBDIR += libreoffice-ve SUBDIR += libreoffice-vec SUBDIR += libreoffice-xh SUBDIR += libreoffice-zu SUBDIR += linux-bcompare SUBDIR += linux-r7-office SUBDIR += linux-sublime-text4 SUBDIR += linux-sublime3 SUBDIR += linux-wps-office SUBDIR += lite SUBDIR += lite-xl SUBDIR += marginalia.el SUBDIR += marker SUBDIR += mg SUBDIR += mickey SUBDIR += micro SUBDIR += microsoft-edit SUBDIR += mined SUBDIR += mle SUBDIR += mousepad SUBDIR += mp SUBDIR += nano SUBDIR += ne SUBDIR += nedit SUBDIR += neovim SUBDIR += neovim-gtk SUBDIR += neovim-qt SUBDIR += notepadnext SUBDIR += notepadnext-devel SUBDIR += novelwriter SUBDIR += nvi-m17n SUBDIR += nvi2 SUBDIR += omegaT SUBDIR += openoffice-4 SUBDIR += openoffice-devel SUBDIR += orbiton SUBDIR += orderless.el SUBDIR += ox SUBDIR += p5-Proc-InvokeEditor SUBDIR += p5-Vimana SUBDIR += paredit-mode.el SUBDIR += parinfer-rust SUBDIR += perspective.el SUBDIR += pico-alpine SUBDIR += picpas SUBDIR += pluma SUBDIR += pluma-plugins SUBDIR += poedit SUBDIR += poke SUBDIR += pragtical SUBDIR += psgml SUBDIR += puff SUBDIR += py-babi SUBDIR += py-editor SUBDIR += py-editorconfig SUBDIR += py-pynvim SUBDIR += py-vim-bridge SUBDIR += rehex + SUBDIR += remarkable SUBDIR += retext SUBDIR += rubygem-neovim SUBDIR += sam SUBDIR += scite SUBDIR += sciteco SUBDIR += se SUBDIR += semi SUBDIR += setzer SUBDIR += shed SUBDIR += slime SUBDIR += sly SUBDIR += sly-asdf SUBDIR += sly-named-readtables SUBDIR += sly-quicklisp SUBDIR += sted SUBDIR += tamago SUBDIR += tea SUBDIR += teco SUBDIR += ted SUBDIR += tetradraw SUBDIR += texmacs SUBDIR += texmaker SUBDIR += texstudio SUBDIR += textadept SUBDIR += texworks SUBDIR += the SUBDIR += treeform SUBDIR += turbo SUBDIR += tweak SUBDIR += uemacs SUBDIR += uhex SUBDIR += uzap SUBDIR += ved SUBDIR += vertico.el SUBDIR += vigor SUBDIR += vile SUBDIR += vim SUBDIR += vim-colorschemes-legacy SUBDIR += vim-lsp SUBDIR += vis SUBDIR += vscode SUBDIR += web-mode SUBDIR += with-editor SUBDIR += wordgrinder SUBDIR += wxhexeditor SUBDIR += xcoral SUBDIR += xed SUBDIR += xmlcopyeditor SUBDIR += xvile SUBDIR += yudit SUBDIR += zed SUBDIR += zile .include diff --git a/editors/remarkable/Makefile b/editors/remarkable/Makefile new file mode 100644 index 000000000000..4c97f5067b4d --- /dev/null +++ b/editors/remarkable/Makefile @@ -0,0 +1,54 @@ +PORTNAME= ${GH_PROJECT:tl} +PORTVERSION= 1.95 +DISTVERSIONPREFIX= v +CATEGORIES= editors python + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Free fully featured markdown editor +WWW= https://github.com/jamiemcg/Remarkable \ + https://remarkableapp.github.io/linux.html + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=0:www/py-beautifulsoup@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown>=0:textproc/py-markdown@${PY_FLAVOR} \ + webkit2-gtk_40>=0:www/webkit2-gtk@40 +# Note to `www/webkit2-gtk' maintainers: feel free to change flavor as needed + +USES= gnome python:run shebangfix +USE_GNOME= pygobject3 gtk30 gtksourceview3 +SHEBANG_FILES= bin/${PORTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= jamiemcg +GH_PROJECT= Remarkable + +NO_ARCH= yes +NO_BUILD= yes + +# XXX: uncomment once ``install-desktop-entries.sh'' can handle %f in Exec +#DESKTOP_ENTRIES= "${GH_PROJECT}" "" "${PORTNAME}" "${PORTNAME} %f" \ + "GNOME;Utility;" false + +post-patch: +# Inhibit silly linuxish ``sys.path'' dances (unneeded on FreeBSD) + @${REINPLACE_CMD} -e '30,+33s,^,#,' ${WRKSRC}/bin/remarkable +# Automagically adjust WebKit2 version to match RUN_DEPENDS above + @${REINPLACE_CMD} -e "/^gi\.require_version('WebKit2'/ \ + s,4\.[0-9],${_GET_WEBKIT_API_VERSION:sh}," \ + ${WRKSRC}/remarkable/RemarkableWindow.py +# Where to look for resources on FreeBSD (respect ${DATADIR}) + @${REINPLACE_CMD} -e "/^__remarkable_data_directories__ = / \ + s,'.*','${DATADIR}'," \ + ${WRKSRC}/remarkable_lib/remarkableconfig.py + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC} && ${COPYTREE_SHARE} "pdfkit remarkable remarkable_lib" \ + ${STAGEDIR}${PYTHON_SITELIBDIR} + cd ${WRKSRC}/data && ${COPYTREE_SHARE} "media ui" ${STAGEDIR}${DATADIR} + +_GET_WEBKIT_API_VERSION= ${MAKE} -C ${RUN_DEPENDS:Mwebkit2-gtk*:C,.*:,${PORTSDIR}/,:S,@, FLAVOR=,} -V API_VERSION + +.include diff --git a/editors/remarkable/distinfo b/editors/remarkable/distinfo new file mode 100644 index 000000000000..d59e1fbd474b --- /dev/null +++ b/editors/remarkable/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1727002073 +SHA256 (jamiemcg-Remarkable-v1.95_GH0.tar.gz) = 55f40ff0bc5b9269807e248e0fa849ee4aaf92d32f9b1350ed17bc85ccd3b030 +SIZE (jamiemcg-Remarkable-v1.95_GH0.tar.gz) = 132430 diff --git a/editors/remarkable/files/patch-remarkable_RemarkableWindow.py b/editors/remarkable/files/patch-remarkable_RemarkableWindow.py new file mode 100644 index 000000000000..f42efca1a30e --- /dev/null +++ b/editors/remarkable/files/patch-remarkable_RemarkableWindow.py @@ -0,0 +1,15 @@ +--- remarkable/RemarkableWindow.py.orig 2024-09-22 10:47:53 UTC ++++ remarkable/RemarkableWindow.py +@@ -36,10 +36,10 @@ import pdfkit + import re, subprocess, datetime, os, webbrowser, _thread, sys, locale + import tempfile + import traceback +-import styles ++from remarkable import styles + import unicodedata + import warnings +-from findBar import FindBar ++from remarkable.findBar import FindBar + + # Check if gtkspellcheck is installed + try: diff --git a/editors/remarkable/pkg-descr b/editors/remarkable/pkg-descr new file mode 100644 index 000000000000..c17ff80dae29 --- /dev/null +++ b/editors/remarkable/pkg-descr @@ -0,0 +1,6 @@ +Remarkable is a free fully featured markdown editor. It has a syntax +like Github flavored markdown. With it you can write markdown and view +the changes as you make them in the live preview window. You can export +your files to a variety of formats. There are multiple styles available +along with extensive configuration options so you can set it up exactly +how you like. diff --git a/editors/remarkable/pkg-plist b/editors/remarkable/pkg-plist new file mode 100644 index 000000000000..7d9fa30c960a --- /dev/null +++ b/editors/remarkable/pkg-plist @@ -0,0 +1,55 @@ +bin/remarkable +%%PYTHON_SITELIBDIR%%/pdfkit/LICENSE +%%PYTHON_SITELIBDIR%%/pdfkit/__init__.py +%%PYTHON_SITELIBDIR%%/pdfkit/api.py +%%PYTHON_SITELIBDIR%%/pdfkit/configuration.py +%%PYTHON_SITELIBDIR%%/pdfkit/pdfkit.py +%%PYTHON_SITELIBDIR%%/pdfkit/source.py +%%PYTHON_SITELIBDIR%%/remarkable/AboutRemarkableDialog.py +%%PYTHON_SITELIBDIR%%/remarkable/RemarkableWindow.py +%%PYTHON_SITELIBDIR%%/remarkable/__init__.py +%%PYTHON_SITELIBDIR%%/remarkable/configuration.py +%%PYTHON_SITELIBDIR%%/remarkable/findBar.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/AutoLink.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/Checklist.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/Highlighting.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/MathJax.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/Strikethrough.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/Subscript.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/Superscript.py +%%PYTHON_SITELIBDIR%%/remarkable/markdown/extensions/__init__.py +%%PYTHON_SITELIBDIR%%/remarkable/styles.py +%%PYTHON_SITELIBDIR%%/remarkable/undobuffer.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/AboutDialog.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/Builder.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/Window.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/__init__.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/helpers.py +%%PYTHON_SITELIBDIR%%/remarkable_lib/remarkableconfig.py +%%DATADIR%%/media/MarkdownTutorial.md +%%DATADIR%%/media/highlight.min.js +%%DATADIR%%/media/highlightjs.default.min.css +%%DATADIR%%/media/remarkable.png +%%DATADIR%%/media/remarkable.svg +%%DATADIR%%/ui/AboutRemarkableDialog.ui +%%DATADIR%%/ui/PreferencesRemarkableDialog.ui +%%DATADIR%%/ui/RemarkableWindow.ui +%%DATADIR%%/ui/about_remarkable_dialog.xml +%%DATADIR%%/ui/bold.png +%%DATADIR%%/ui/image.png +%%DATADIR%%/ui/italic.png +%%DATADIR%%/ui/link.png +%%DATADIR%%/ui/live_preview.png +%%DATADIR%%/ui/new.png +%%DATADIR%%/ui/open.png +%%DATADIR%%/ui/preferences_remarkable_dialog.xml +%%DATADIR%%/ui/redo.png +%%DATADIR%%/ui/remarkable.png +%%DATADIR%%/ui/remarkable_window.xml +%%DATADIR%%/ui/save.png +%%DATADIR%%/ui/strikethrough.png +%%DATADIR%%/ui/support.png +%%DATADIR%%/ui/timestamp.png +%%DATADIR%%/ui/undo.png +%%DATADIR%%/ui/zoom-in.png +%%DATADIR%%/ui/zoom-out.png