From 5169f5d4dea87645ccfbca5b87c3684ac2698aa7 Mon Sep 17 00:00:00 2001 From: awolk Date: Tue, 17 Jan 2017 12:58:26 +0000 Subject: [PATCH] import editors/ghostwriter - https://wereturtle.github.io/ghostwriter/ - https://github.com/wereturtle/ghostwriter/ OK landry@ $ cat pkg/DESCR ghostwriter is a Windows and Unix text editor for Markdown, providing a relaxing, distraction-free writing environment, whether your masterpiece be that next blog post, your school paper, or your NaNoWriMo novel. * Syntax highlighting of Markdown * Navigation of document headings * Full-screen mode * Focus mode that highlights the current sentence, line, three lines, or paragraph * Two built-in themes, one light and one dark * Theme creator for custom colors and background images * Spell checking with Hunspell * A Live word count * A live HTML preview as you type * Use of custom CSS style sheets for HTML preview * Image URL insertion via dragging and dropping an image file into the editor * Sundown processor built in for preview and export to HTML * Interoperability with the following Markdown processors (if installed) for preview and export to popular document formats, such as PDF, ODT, and RTF: * Pandoc * MultiMarkdown * Discount * cmark --- editors/ghostwriter/Makefile | 41 +++++++++++++++++++++++++++++++++++ editors/ghostwriter/distinfo | 2 ++ editors/ghostwriter/pkg/DESCR | 23 ++++++++++++++++++++ editors/ghostwriter/pkg/PLIST | 24 ++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 editors/ghostwriter/Makefile create mode 100644 editors/ghostwriter/distinfo create mode 100644 editors/ghostwriter/pkg/DESCR create mode 100644 editors/ghostwriter/pkg/PLIST diff --git a/editors/ghostwriter/Makefile b/editors/ghostwriter/Makefile new file mode 100644 index 00000000000..6a6db594b78 --- /dev/null +++ b/editors/ghostwriter/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/01/17 12:58:26 awolk Exp $ + +# qt5 webkit +USE_WXNEEDED = Yes + +COMMENT = distraction-free Markdown editor + +GH_ACCOUNT = wereturtle +GH_PROJECT = ghostwriter +GH_TAGNAME = v1.4.2 + +CATEGORIES = editors + +HOMEPAGE = https://wereturtle.github.io/ghostwriter/ + +MAINTAINER = Adam Wolk + +# GPLv3 +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += GL Qt5Concurrent Qt5Core Qt5Gui Qt5Network Qt5PrintSupport +WANTLIB += Qt5WebKit Qt5WebKitWidgets Qt5Widgets c hunspell-1.3 +WANTLIB += m pthread + +MODULES = devel/qmake \ + x11/qt5 +RUN_DEPENDS = devel/desktop-file-utils \ + x11/gtk+3,-guic +LIB_DEPENDS = textproc/hunspell \ + x11/qt5/qtbase \ + x11/qt5/qtwebkit + +NO_TEST = Yes + +pre-configure: + @sed -i 's,VERSION = ..system.*,VERSION =,' \ + ${WRKSRC}/ghostwriter.pro + @sed -i 's,/share/man/man1,/man/man1,' \ + ${WRKSRC}/ghostwriter.pro + +.include diff --git a/editors/ghostwriter/distinfo b/editors/ghostwriter/distinfo new file mode 100644 index 00000000000..c360a6c92d7 --- /dev/null +++ b/editors/ghostwriter/distinfo @@ -0,0 +1,2 @@ +SHA256 (ghostwriter-1.4.2.tar.gz) = d1dg0ExaeUw4EM/+nR2qcu4SPHfMMEH8FaIFJQOJlDg= +SIZE (ghostwriter-1.4.2.tar.gz) = 589182 diff --git a/editors/ghostwriter/pkg/DESCR b/editors/ghostwriter/pkg/DESCR new file mode 100644 index 00000000000..d33a4d132f4 --- /dev/null +++ b/editors/ghostwriter/pkg/DESCR @@ -0,0 +1,23 @@ +ghostwriter is a Windows and Unix text editor for Markdown, providing a +relaxing, distraction-free writing environment, whether your masterpiece +be that next blog post, your school paper, or your NaNoWriMo novel. + +* Syntax highlighting of Markdown +* Navigation of document headings +* Full-screen mode +* Focus mode that highlights the current sentence, line, three lines, or + paragraph +* Two built-in themes, one light and one dark +* Theme creator for custom colors and background images +* Spell checking with Hunspell +* A Live word count +* A live HTML preview as you type +* Use of custom CSS style sheets for HTML preview +* Image URL insertion via dragging and dropping an image file into the editor +* Sundown processor built in for preview and export to HTML +* Interoperability with the following Markdown processors (if installed) for + preview and export to popular document formats, such as PDF, ODT, and RTF: + * Pandoc + * MultiMarkdown + * Discount + * cmark diff --git a/editors/ghostwriter/pkg/PLIST b/editors/ghostwriter/pkg/PLIST new file mode 100644 index 00000000000..79edcc5cc79 --- /dev/null +++ b/editors/ghostwriter/pkg/PLIST @@ -0,0 +1,24 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2017/01/17 12:58:26 awolk Exp $ +@bin bin/ghostwriter +@man man/man1/ghostwriter.1 +share/appdata/ +share/appdata/ghostwriter.appdata.xml +share/applications/ghostwriter.desktop +share/ghostwriter/ +share/ghostwriter/translations/ +share/ghostwriter/translations/ghostwriter_en.qm +share/icons/hicolor/128x128/apps/ghostwriter.png +share/icons/hicolor/16x16/apps/ghostwriter.png +share/icons/hicolor/22x22/apps/ghostwriter.png +share/icons/hicolor/24x24/apps/ghostwriter.png +share/icons/hicolor/256x256/apps/ghostwriter.png +share/icons/hicolor/32x32/apps/ghostwriter.png +share/icons/hicolor/48x48/apps/ghostwriter.png +share/icons/hicolor/64x64/apps/ghostwriter.png +share/icons/hicolor/scalable/apps/ghostwriter.svg +share/pixmaps/ +share/pixmaps/ghostwriter.xpm +@exec %D/bin/update-desktop-database +@unexec-delete %D/bin/update-desktop-database +@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor +@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor