pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors featherpad: import new package, version 0.12.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/8cb59de3fde6
branches: trunk
changeset: 423207:8cb59de3fde6
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Thu Feb 13 03:12:18 2020 +0000
description:
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.
diffstat:
editors/Makefile | 3 +-
editors/featherpad/DESCR | 18 +++++
editors/featherpad/Makefile | 34 ++++++++++
editors/featherpad/PLIST | 30 ++++++++
editors/featherpad/distinfo | 9 ++
editors/featherpad/patches/patch-featherpad_singleton.cpp | 39 +++++++++++
editors/featherpad/patches/patch-featherpad_x11.cpp | 51 +++++++++++++++
editors/featherpad/patches/patch-featherpad_x11.h | 15 ++++
8 files changed, 198 insertions(+), 1 deletions(-)
diffs (241 lines):
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/Makefile
--- a/editors/Makefile Thu Feb 13 03:02:31 2020 +0000
+++ b/editors/Makefile Thu Feb 13 03:12:18 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.199 2020/01/19 00:50:30 nia Exp $
+# $NetBSD: Makefile,v 1.200 2020/02/13 03:12:18 gutteridge Exp $
#
COMMENT= Editors
@@ -41,6 +41,7 @@
SUBDIR+= emacs26-nox11
SUBDIR+= ex
SUBDIR+= fe
+SUBDIR+= featherpad
SUBDIR+= gate
SUBDIR+= gconf-editor
SUBDIR+= gedit
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/DESCR Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,18 @@
+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.
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/Makefile Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,34 @@
+# $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@localhost
+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"
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/PLIST Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,30 @@
+@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
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/distinfo Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,9 @@
+$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
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/patches/patch-featherpad_singleton.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/patches/patch-featherpad_singleton.cpp Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,39 @@
+$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
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/patches/patch-featherpad_x11.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/patches/patch-featherpad_x11.cpp Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,51 @@
+$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;
+
diff -r a06450ec9a53 -r 8cb59de3fde6 editors/featherpad/patches/patch-featherpad_x11.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/featherpad/patches/patch-featherpad_x11.h Thu Feb 13 03:12:18 2020 +0000
@@ -0,0 +1,15 @@
+$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
+
Home |
Main Index |
Thread Index |
Old Index