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
--- 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 | |
4 | COMMENT= Editors | | 4 | COMMENT= Editors |
5 | | | 5 | |
6 | SUBDIR+= OmegaT | | 6 | SUBDIR+= OmegaT |
7 | SUBDIR+= Sigil | | 7 | SUBDIR+= Sigil |
8 | SUBDIR+= TeXmacs | | 8 | SUBDIR+= TeXmacs |
9 | SUBDIR+= abiword | | 9 | SUBDIR+= abiword |
10 | SUBDIR+= abiword-plugins | | 10 | SUBDIR+= abiword-plugins |
11 | SUBDIR+= beav | | 11 | SUBDIR+= beav |
12 | SUBDIR+= beaver | | 12 | SUBDIR+= beaver |
13 | SUBDIR+= biew | | 13 | SUBDIR+= biew |
14 | SUBDIR+= bvi | | 14 | SUBDIR+= bvi |
| @@ -31,26 +31,27 @@ SUBDIR+= em | | | @@ -31,26 +31,27 @@ SUBDIR+= em |
31 | SUBDIR+= emacs | | 31 | SUBDIR+= emacs |
32 | SUBDIR+= emacs-nox11 | | 32 | SUBDIR+= emacs-nox11 |
33 | SUBDIR+= emacs-packages | | 33 | SUBDIR+= emacs-packages |
34 | SUBDIR+= emacs-snapshot | | 34 | SUBDIR+= emacs-snapshot |
35 | SUBDIR+= emacs20 | | 35 | SUBDIR+= emacs20 |
36 | SUBDIR+= emacs21 | | 36 | SUBDIR+= emacs21 |
37 | SUBDIR+= emacs21-nox11 | | 37 | SUBDIR+= emacs21-nox11 |
38 | SUBDIR+= emacs25 | | 38 | SUBDIR+= emacs25 |
39 | SUBDIR+= emacs25-nox11 | | 39 | SUBDIR+= emacs25-nox11 |
40 | SUBDIR+= emacs26 | | 40 | SUBDIR+= emacs26 |
41 | SUBDIR+= emacs26-nox11 | | 41 | SUBDIR+= emacs26-nox11 |
42 | SUBDIR+= ex | | 42 | SUBDIR+= ex |
43 | SUBDIR+= fe | | 43 | SUBDIR+= fe |
| | | 44 | SUBDIR+= featherpad |
44 | SUBDIR+= gate | | 45 | SUBDIR+= gate |
45 | SUBDIR+= gconf-editor | | 46 | SUBDIR+= gconf-editor |
46 | SUBDIR+= gedit | | 47 | SUBDIR+= gedit |
47 | SUBDIR+= ghex | | 48 | SUBDIR+= ghex |
48 | SUBDIR+= gice | | 49 | SUBDIR+= gice |
49 | SUBDIR+= gnuserv | | 50 | SUBDIR+= gnuserv |
50 | SUBDIR+= gobby | | 51 | SUBDIR+= gobby |
51 | SUBDIR+= gtranslator | | 52 | SUBDIR+= gtranslator |
52 | SUBDIR+= gummi | | 53 | SUBDIR+= gummi |
53 | SUBDIR+= heme | | 54 | SUBDIR+= heme |
54 | SUBDIR+= hexcurse | | 55 | SUBDIR+= hexcurse |
55 | SUBDIR+= hexedit | | 56 | SUBDIR+= hexedit |
56 | SUBDIR+= hnb | | 57 | SUBDIR+= hnb |
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.
# $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"
@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
$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
$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
$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;
$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