pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/editors



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Thu Feb 13 03:12:18 UTC 2020

Modified Files:
        pkgsrc/editors: Makefile
Added Files:
        pkgsrc/editors/featherpad: DESCR Makefile PLIST distinfo
        pkgsrc/editors/featherpad/patches: patch-featherpad_singleton.cpp
            patch-featherpad_x11.cpp patch-featherpad_x11.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.199 -r1.200 pkgsrc/editors/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/featherpad/DESCR \
    pkgsrc/editors/featherpad/Makefile pkgsrc/editors/featherpad/PLIST \
    pkgsrc/editors/featherpad/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/editors/featherpad/patches/patch-featherpad_singleton.cpp \
    pkgsrc/editors/featherpad/patches/patch-featherpad_x11.cpp \
    pkgsrc/editors/featherpad/patches/patch-featherpad_x11.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/Makefile
diff -u pkgsrc/editors/Makefile:1.199 pkgsrc/editors/Makefile:1.200
--- pkgsrc/editors/Makefile:1.199       Sun Jan 19 00:50:30 2020
+++ pkgsrc/editors/Makefile     Thu Feb 13 03:12:18 2020
@@ -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
 SUBDIR+=       emacs26-nox11
 SUBDIR+=       ex
 SUBDIR+=       fe
+SUBDIR+=       featherpad
 SUBDIR+=       gate
 SUBDIR+=       gconf-editor
 SUBDIR+=       gedit

Added files:

Index: pkgsrc/editors/featherpad/DESCR
diff -u /dev/null pkgsrc/editors/featherpad/DESCR:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/DESCR     Thu Feb 13 03:12:18 2020
@@ -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.
Index: pkgsrc/editors/featherpad/Makefile
diff -u /dev/null pkgsrc/editors/featherpad/Makefile:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/Makefile  Thu Feb 13 03:12:18 2020
@@ -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"
Index: pkgsrc/editors/featherpad/PLIST
diff -u /dev/null pkgsrc/editors/featherpad/PLIST:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/PLIST     Thu Feb 13 03:12:18 2020
@@ -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
Index: pkgsrc/editors/featherpad/distinfo
diff -u /dev/null pkgsrc/editors/featherpad/distinfo:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/distinfo  Thu Feb 13 03:12:18 2020
@@ -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

Index: pkgsrc/editors/featherpad/patches/patch-featherpad_singleton.cpp
diff -u /dev/null pkgsrc/editors/featherpad/patches/patch-featherpad_singleton.cpp:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/patches/patch-featherpad_singleton.cpp    Thu Feb 13 03:12:18 2020
@@ -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
Index: pkgsrc/editors/featherpad/patches/patch-featherpad_x11.cpp
diff -u /dev/null pkgsrc/editors/featherpad/patches/patch-featherpad_x11.cpp:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/patches/patch-featherpad_x11.cpp  Thu Feb 13 03:12:18 2020
@@ -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;
+ 
Index: pkgsrc/editors/featherpad/patches/patch-featherpad_x11.h
diff -u /dev/null pkgsrc/editors/featherpad/patches/patch-featherpad_x11.h:1.1
--- /dev/null   Thu Feb 13 03:12:18 2020
+++ pkgsrc/editors/featherpad/patches/patch-featherpad_x11.h    Thu Feb 13 03:12:18 2020
@@ -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