Thu Feb 13 03:12:18 2020 UTC ()
featherpad: import new package, version 0.12.0

FeatherPad is a lightweight Qt5 plain-text editor.
It is independent of any desktop environment and has:
  * Drag-and-drop support, including tab detachment and attachment;
  * X11 virtual desktop awareness;
  * An optionally permanent search-bar;
  * Instant highlighting of found matches when searching;
  * A docked window for text replacement;
  * Support for line numbers and jumping to a specific line;
  * Automatic detection of text encoding;
  * Syntax highlighting for common programming languages;
  * Ability to open URLs with appropriate applications;
  * Session management;
  * Side-pane mode;
  * Auto-saving;
  * Spell checking with Hunspell;
  * Printing;
  * Text zooming;
  * Haiku OS and macOS support.

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.


(gutteridge)
diff -r1.199 -r1.200 pkgsrc/editors/Makefile
diff -r0 -r1.1 pkgsrc/editors/featherpad/DESCR
diff -r0 -r1.1 pkgsrc/editors/featherpad/Makefile
diff -r0 -r1.1 pkgsrc/editors/featherpad/PLIST
diff -r0 -r1.1 pkgsrc/editors/featherpad/distinfo
diff -r0 -r1.1 pkgsrc/editors/featherpad/patches/patch-featherpad_singleton.cpp
diff -r0 -r1.1 pkgsrc/editors/featherpad/patches/patch-featherpad_x11.cpp
diff -r0 -r1.1 pkgsrc/editors/featherpad/patches/patch-featherpad_x11.h

cvs diff -r1.199 -r1.200 pkgsrc/editors/Makefile (expand / switch to unified diff)

--- pkgsrc/editors/Makefile 2020/01/19 00:50:30 1.199
+++ pkgsrc/editors/Makefile 2020/02/13 03:12:18 1.200
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.199 2020/01/19 00:50:30 nia Exp $ 1# $NetBSD: Makefile,v 1.200 2020/02/13 03:12:18 gutteridge Exp $
2# 2#
3 3
4COMMENT= Editors 4COMMENT= Editors
5 5
6SUBDIR+= OmegaT 6SUBDIR+= OmegaT
7SUBDIR+= Sigil 7SUBDIR+= Sigil
8SUBDIR+= TeXmacs 8SUBDIR+= TeXmacs
9SUBDIR+= abiword 9SUBDIR+= abiword
10SUBDIR+= abiword-plugins 10SUBDIR+= abiword-plugins
11SUBDIR+= beav 11SUBDIR+= beav
12SUBDIR+= beaver 12SUBDIR+= beaver
13SUBDIR+= biew 13SUBDIR+= biew
14SUBDIR+= bvi 14SUBDIR+= bvi
@@ -31,26 +31,27 @@ SUBDIR+= em @@ -31,26 +31,27 @@ SUBDIR+= em
31SUBDIR+= emacs 31SUBDIR+= emacs
32SUBDIR+= emacs-nox11 32SUBDIR+= emacs-nox11
33SUBDIR+= emacs-packages 33SUBDIR+= emacs-packages
34SUBDIR+= emacs-snapshot 34SUBDIR+= emacs-snapshot
35SUBDIR+= emacs20 35SUBDIR+= emacs20
36SUBDIR+= emacs21 36SUBDIR+= emacs21
37SUBDIR+= emacs21-nox11 37SUBDIR+= emacs21-nox11
38SUBDIR+= emacs25 38SUBDIR+= emacs25
39SUBDIR+= emacs25-nox11 39SUBDIR+= emacs25-nox11
40SUBDIR+= emacs26 40SUBDIR+= emacs26
41SUBDIR+= emacs26-nox11 41SUBDIR+= emacs26-nox11
42SUBDIR+= ex 42SUBDIR+= ex
43SUBDIR+= fe 43SUBDIR+= fe
 44SUBDIR+= featherpad
44SUBDIR+= gate 45SUBDIR+= gate
45SUBDIR+= gconf-editor 46SUBDIR+= gconf-editor
46SUBDIR+= gedit 47SUBDIR+= gedit
47SUBDIR+= ghex 48SUBDIR+= ghex
48SUBDIR+= gice 49SUBDIR+= gice
49SUBDIR+= gnuserv 50SUBDIR+= gnuserv
50SUBDIR+= gobby 51SUBDIR+= gobby
51SUBDIR+= gtranslator 52SUBDIR+= gtranslator
52SUBDIR+= gummi 53SUBDIR+= gummi
53SUBDIR+= heme 54SUBDIR+= heme
54SUBDIR+= hexcurse 55SUBDIR+= hexcurse
55SUBDIR+= hexedit 56SUBDIR+= hexedit
56SUBDIR+= hnb 57SUBDIR+= hnb

File Added: pkgsrc/editors/featherpad/DESCR
FeatherPad is a lightweight Qt5 plain-text editor.
It is independent of any desktop environment and has:
  * Drag-and-drop support, including tab detachment and attachment;
  * X11 virtual desktop awareness;
  * An optionally permanent search-bar;
  * Instant highlighting of found matches when searching;
  * A docked window for text replacement;
  * Support for line numbers and jumping to a specific line;
  * Automatic detection of text encoding;
  * Syntax highlighting for common programming languages;
  * Ability to open URLs with appropriate applications;
  * Session management;
  * Side-pane mode;
  * Auto-saving;
  * Spell checking with Hunspell;
  * Printing;
  * Text zooming;
  * Haiku OS and macOS support.

File Added: pkgsrc/editors/featherpad/Makefile
# $NetBSD: Makefile,v 1.1 2020/02/13 03:12:18 gutteridge Exp $

DISTNAME=		FeatherPad-V0.12.0
PKGNAME=		featherpad-0.12.0
CATEGORIES=		editors
MASTER_SITES=		${MASTER_SITE_GITHUB:=tsujan/}
GITHUB_TAG=		V${PKGVERSION_NOREV}

MAINTAINER=	voidpin@protonmail.com
HOMEPAGE=	https://github.com/tsujan/FeatherPad/
COMMENT=	Lightweight Qt5 plain-text editor for Linux
LICENSE=	gnu-gpl-v3

WRKSRC=		${WRKDIR}/FeatherPad-0.12.0
USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..

pre-configure:
	${MKDIR} -p ${WRKSRC}/build

TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../x11/qt5-qttools

.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtx11extras/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../textproc/hunspell/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/editors/featherpad/PLIST
@comment $NetBSD: PLIST,v 1.1 2020/02/13 03:12:18 gutteridge Exp $
bin/featherpad
bin/fpad
share/applications/featherpad.desktop
share/featherpad/help
share/featherpad/help_ja_JP
share/featherpad/translations/featherpad_ar_DZ.qm
share/featherpad/translations/featherpad_cs.qm
share/featherpad/translations/featherpad_cy.qm
share/featherpad/translations/featherpad_da.qm
share/featherpad/translations/featherpad_de.qm
share/featherpad/translations/featherpad_eo.qm
share/featherpad/translations/featherpad_es.qm
share/featherpad/translations/featherpad_fa.qm
share/featherpad/translations/featherpad_fr.qm
share/featherpad/translations/featherpad_id.qm
share/featherpad/translations/featherpad_it.qm
share/featherpad/translations/featherpad_ja_JP.qm
share/featherpad/translations/featherpad_lt.qm
share/featherpad/translations/featherpad_nb_NO.qm
share/featherpad/translations/featherpad_nl.qm
share/featherpad/translations/featherpad_pl.qm
share/featherpad/translations/featherpad_pt_BR.qm
share/featherpad/translations/featherpad_pt_PT.qm
share/featherpad/translations/featherpad_ru.qm
share/featherpad/translations/featherpad_sk_SK.qm
share/featherpad/translations/featherpad_tr.qm
share/featherpad/translations/featherpad_zh_CN.qm
share/featherpad/translations/featherpad_zh_TW.qm
share/icons/hicolor/scalable/apps/featherpad.svg

File Added: pkgsrc/editors/featherpad/distinfo
$NetBSD: distinfo,v 1.1 2020/02/13 03:12:18 gutteridge Exp $

SHA1 (FeatherPad-V0.12.0.tar.gz) = b0bd8ba27ae7a8111b0a848c782f3d5c1d875d3e
RMD160 (FeatherPad-V0.12.0.tar.gz) = 80c8454a0766f502b8fb4778b452dc9ab8304c9a
SHA512 (FeatherPad-V0.12.0.tar.gz) = ce02a75e62723bb7d8bec345c352fae18b917bcce39c667b870f70f025740c428e8b34387c00710cb4979238930575f87809d54d70ef30ce131801526fcb998d
Size (FeatherPad-V0.12.0.tar.gz) = 774318 bytes
SHA1 (patch-featherpad_singleton.cpp) = 2a975b01d35af58f48942f6dc29bb94aeb41ab13
SHA1 (patch-featherpad_x11.cpp) = 9c7605159a914b67166e1e253bd0f843cf2a92d6
SHA1 (patch-featherpad_x11.h) = d1c16d999a5eca0332c13b4240d72f2680706c66

File Added: pkgsrc/editors/featherpad/patches/Attic/patch-featherpad_singleton.cpp
$NetBSD: patch-featherpad_singleton.cpp,v 1.1 2020/02/13 03:12:18 gutteridge Exp $

Allow building on NetBSD

--- featherpad/singleton.cpp.orig	2019-12-26 23:10:16.000000000 +0000
+++ featherpad/singleton.cpp
@@ -24,12 +24,12 @@
 #include <QCryptographicHash>
 #include <QThread>
 
-#if defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_HURD
+#if defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD
 #include <unistd.h> // for geteuid()
 #endif
 
 #ifdef HAS_X11
-#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
 #include <QX11Info>
 #endif
 #endif
@@ -46,7 +46,7 @@ FPsingleton::FPsingleton (int &argc, cha
 {
 #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;
@@ -278,7 +278,7 @@ FPwin* FPsingleton::newWin (const QStrin
     fp->show();
     if (socketFailure_)
         fp->showCrashWarning();
-#if defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_HURD
+#if defined Q_OS_LINUX || defined Q_OS_FREEBSD || defined Q_OS_OPENBSD || defined Q_OS_NETBSD || defined Q_OS_HURD
     else if (geteuid() == 0)
         fp->showRootWarning();
 #endif

File Added: pkgsrc/editors/featherpad/patches/Attic/patch-featherpad_x11.cpp
$NetBSD: patch-featherpad_x11.cpp,v 1.1 2020/02/13 03:12:18 gutteridge Exp $

Allow building on NetBSD

--- featherpad/x11.cpp.orig	2019-12-26 23:10:16.000000000 +0000
+++ featherpad/x11.cpp
@@ -20,7 +20,7 @@
 #include <QString>
 #include "x11.h"
 
-#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
 #include <X11/Xatom.h>
 #include <QX11Info>
 #endif
@@ -37,7 +37,7 @@ long fromDesktop()
 {
     long res = -1;
 
-#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
     Display  *disp = QX11Info::display();
     if (!disp) return res;
 
@@ -72,7 +72,7 @@ long onWhichDesktop (Window window)
 {
     long res = -1;
 
-#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
     Display *disp = QX11Info::display();
     if (!disp) return res;
 
@@ -107,7 +107,7 @@ long onWhichDesktop (Window window)
 
 bool isWindowShaded (Window window)
 {
-#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
     Display *disp = QX11Info::display();
     if (!disp) return false;
 
@@ -142,7 +142,7 @@ bool isWindowShaded (Window window)
 /*************************/
 void unshadeWindow (Window window)
 {
-#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
     Display *disp = QX11Info::display();
     if (!disp) return;
 

File Added: pkgsrc/editors/featherpad/patches/Attic/patch-featherpad_x11.h
$NetBSD: patch-featherpad_x11.h,v 1.1 2020/02/13 03:12:18 gutteridge Exp $

Allow building on NetBSD

--- featherpad/x11.h.orig	2019-12-26 23:10:16.000000000 +0000
+++ featherpad/x11.h
@@ -20,7 +20,7 @@
 #ifndef X11_H
 #define X11_H
 
-#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
 #include <X11/Xlib.h>
 #endif