feathernotes: import new package, version 0.5.1

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.

Packaged in pkgsrc-wip by pin, as part of a broader effort toward
providing all of LXQt and associated utility applications. General
reviews, feedback, and testing of such by gdt@, ng0@, and myself.
This commit is contained in:
gutteridge 2020-02-13 03:21:54 +00:00
parent e8e5aaf462
commit 6e91fae97b
8 changed files with 174 additions and 1 deletions

View file

@ -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

View file

@ -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.

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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 <QMimeDatabase>
#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 <QX11Info>
#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;

View file

@ -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 <QString>
#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 <X11/Xatom.h>
#include <QX11Info>
#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;

View file

@ -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 <X11/Xlib.h>
#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