diff --git a/editors/Makefile b/editors/Makefile index 328d899768f5..48e7130d5f5d 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.200 2020/02/13 03:12:18 gutteridge Exp $ +# $NetBSD: Makefile,v 1.201 2020/02/13 03:21:54 gutteridge Exp $ # COMMENT= Editors @@ -41,6 +41,7 @@ SUBDIR+= emacs26 SUBDIR+= emacs26-nox11 SUBDIR+= ex SUBDIR+= fe +SUBDIR+= feathernotes SUBDIR+= featherpad SUBDIR+= gate SUBDIR+= gconf-editor diff --git a/editors/feathernotes/DESCR b/editors/feathernotes/DESCR new file mode 100644 index 000000000000..a641337107cc --- /dev/null +++ b/editors/feathernotes/DESCR @@ -0,0 +1,18 @@ +FeatherNotes is a lightweight Qt5 hierarchical notes-manager. +It is independent of any desktop environment and has: + + * Support for rich text formatting, image embedding and inserting + editable tables; + * Drag-and-drop capability for moving nodes and also for embedding images; + * A tray icon for quick access on any desktop; + * Correct position/size saving and restoring with most window managers; + * Compact but complete search and replacement widgets; + * The ability to include searchable tags (hidden info on each node); + * Support for optional node icons; + * Support for local and remote hyperlinks (bookmarks); + * Text zooming; + * Printing and exporting to HTML and PDF; + * Password protection; + * Auto-saving; + * macOS support and other features that can be found in its settings, + on its menus or when it is actually used. diff --git a/editors/feathernotes/Makefile b/editors/feathernotes/Makefile new file mode 100644 index 000000000000..5996c2441435 --- /dev/null +++ b/editors/feathernotes/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ + +DISTNAME= FeatherNotes-V0.5.1 +PKGNAME= feathernotes-0.5.1 +CATEGORIES= editors +MASTER_SITES= ${MASTER_SITE_GITHUB:=tsujan/} +GITHUB_TAG= V${PKGVERSION_NOREV} + +MAINTAINER= voidpin@protonmail.com +HOMEPAGE= https://github.com/tsujan/FeatherNotes/ +COMMENT= Lightweight Qt5 hierarchical notes-manager +LICENSE= gnu-gpl-v3 + +WRKSRC= ${WRKDIR}/FeatherNotes-0.5.1 +USE_LANGUAGES= c++ +USE_TOOLS+= pkg-config + +INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR} + +do-configure: + cd ${WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} \ + ${QTDIR}/bin/qmake -o Makefile PREFIX=${PREFIX} + +TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools + +.include "../../x11/qt5-qtbase/buildlink3.mk" +.include "../../x11/qt5-qtsvg/buildlink3.mk" +.include "../../x11/qt5-qtx11extras/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libXext/buildlink3.mk" +.include "../../graphics/hicolor-icon-theme/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/editors/feathernotes/PLIST b/editors/feathernotes/PLIST new file mode 100644 index 000000000000..ce55ce19687d --- /dev/null +++ b/editors/feathernotes/PLIST @@ -0,0 +1,24 @@ +@comment $NetBSD: PLIST,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ +bin/feathernotes +share/applications/feathernotes.desktop +share/feathernotes/translations/feathernotes_cs.qm +share/feathernotes/translations/feathernotes_cy.qm +share/feathernotes/translations/feathernotes_de.qm +share/feathernotes/translations/feathernotes_eo.qm +share/feathernotes/translations/feathernotes_es.qm +share/feathernotes/translations/feathernotes_fr.qm +share/feathernotes/translations/feathernotes_he.qm +share/feathernotes/translations/feathernotes_id.qm +share/feathernotes/translations/feathernotes_ja.qm +share/feathernotes/translations/feathernotes_lt.qm +share/feathernotes/translations/feathernotes_nb_NO.qm +share/feathernotes/translations/feathernotes_nl.qm +share/feathernotes/translations/feathernotes_pl.qm +share/feathernotes/translations/feathernotes_pt_BR.qm +share/feathernotes/translations/feathernotes_pt_PT.qm +share/feathernotes/translations/feathernotes_ru.qm +share/feathernotes/translations/feathernotes_sk_SK.qm +share/feathernotes/translations/feathernotes_zh_HANT.qm +share/icons/hicolor/scalable/apps/feathernotes.svg +share/icons/hicolor/scalable/mimetypes/text-feathernotes-fnx.svg +share/mime/packages/feathernotes.xml diff --git a/editors/feathernotes/distinfo b/editors/feathernotes/distinfo new file mode 100644 index 000000000000..e147805b13aa --- /dev/null +++ b/editors/feathernotes/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ + +SHA1 (FeatherNotes-V0.5.1.tar.gz) = 37994687bce772b46d9f363f7aa38dcd3e6583aa +RMD160 (FeatherNotes-V0.5.1.tar.gz) = 3091679de78c76d3f61db00ff92cbc331d92a153 +SHA512 (FeatherNotes-V0.5.1.tar.gz) = ee52b2069e000cdf1b1971c9b6e94c4b2fabf93505081f485c2f777d6f002cb0621ca49be58c66a520db801c389bfad9502651eebc42d38d0ece2bec4f6c9e9a +Size (FeatherNotes-V0.5.1.tar.gz) = 335890 bytes +SHA1 (patch-feathernotes_fn.cpp) = e9e74350d542b75a5bffc46a35f09a0b591fab6a +SHA1 (patch-feathernotes_x11.cpp) = e1d131d1b85fbe1dc23dde4426fb83415c1fb906 +SHA1 (patch-feathernotes_x11.h) = 748c3a71e596a1d53412bc2d8b4b94cb3d14b159 diff --git a/editors/feathernotes/patches/patch-feathernotes_fn.cpp b/editors/feathernotes/patches/patch-feathernotes_fn.cpp new file mode 100644 index 000000000000..6f494a84cfb9 --- /dev/null +++ b/editors/feathernotes/patches/patch-feathernotes_fn.cpp @@ -0,0 +1,24 @@ +$NetBSD: patch-feathernotes_fn.cpp,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ + +Define NetBSD + +--- feathernotes/fn.cpp.orig 2020-01-06 06:05:04.000000000 +0000 ++++ feathernotes/fn.cpp +@@ -48,7 +48,7 @@ + #include + + #ifdef HAS_X11 +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + #include + #endif + #include "x11.h" +@@ -65,7 +65,7 @@ FN::FN (const QString& message, QWidget + { + #ifdef HAS_X11 + // For now, the lack of x11 is seen as wayland. +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + isX11_ = QX11Info::isPlatformX11(); + #else + isX11_ = false; diff --git a/editors/feathernotes/patches/patch-feathernotes_x11.cpp b/editors/feathernotes/patches/patch-feathernotes_x11.cpp new file mode 100644 index 000000000000..fb237a76260c --- /dev/null +++ b/editors/feathernotes/patches/patch-feathernotes_x11.cpp @@ -0,0 +1,42 @@ +$NetBSD: patch-feathernotes_x11.cpp,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ + +Define NetBSD + +--- feathernotes/x11.cpp.orig 2020-01-06 06:05:04.000000000 +0000 ++++ feathernotes/x11.cpp +@@ -18,7 +18,7 @@ + #include + #include "x11.h" + +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + #include + #include + #endif +@@ -35,7 +35,7 @@ long fromDesktop() + { + long res = -1; + +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + Display *disp = QX11Info::display(); + if (!disp) return res; + +@@ -70,7 +70,7 @@ long onWhichDesktop (Window w) + { + long res = -1; + +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + Display *disp = QX11Info::display(); + if (!disp) return res; + +@@ -102,7 +102,7 @@ long onWhichDesktop (Window w) + // which was defined in gdkwindow-x11.c. + void moveToCurrentDesktop (Window w) + { +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + Display *disp = QX11Info::display(); + if (!disp) return; + diff --git a/editors/feathernotes/patches/patch-feathernotes_x11.h b/editors/feathernotes/patches/patch-feathernotes_x11.h new file mode 100644 index 000000000000..ef7f250a5444 --- /dev/null +++ b/editors/feathernotes/patches/patch-feathernotes_x11.h @@ -0,0 +1,22 @@ +$NetBSD: patch-feathernotes_x11.h,v 1.1 2020/02/13 03:21:54 gutteridge Exp $ + +Define NetBSD + +--- feathernotes/x11.h.orig 2020-01-06 06:05:04.000000000 +0000 ++++ feathernotes/x11.h +@@ -18,13 +18,13 @@ + #ifndef X11_H + #define X11_H + +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + #include + #endif + + namespace FeatherNotes { + +-#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_HURD ++#if defined Q_WS_X11 || defined Q_OS_LINUX || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD + long fromDesktop(); + #endif +