git: e1d0315ba98a - main - deskutils/notekit: new port had been added (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Dec 2021 14:27:36 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e1d0315ba98ab1092f000827ec16db6bc89f2d2f
commit e1d0315ba98ab1092f000827ec16db6bc89f2d2f
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-12-26 14:26:56 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-12-26 14:26:56 +0000
deskutils/notekit: new port had been added (+)
This program is a structured note-taking application based on GTK v3.
Write notes in instantly-formatted Markdown, organise them in a tree
of folders that can be instantly navigated from within the program,
and add hand-drawn notes by mouse, touchscreen, or digitizer.
WWW: https://github.com/blackhole89/notekit
---
deskutils/Makefile | 1 +
deskutils/notekit/Makefile | 26 ++++++++++++++++++++++++++
deskutils/notekit/distinfo | 3 +++
deskutils/notekit/files/patch-main.cpp | 17 +++++++++++++++++
deskutils/notekit/pkg-descr | 6 ++++++
deskutils/notekit/pkg-plist | 30 ++++++++++++++++++++++++++++++
6 files changed, 83 insertions(+)
diff --git a/deskutils/Makefile b/deskutils/Makefile
index 49d861b1b96a..e51aff7c6c66 100644
--- a/deskutils/Makefile
+++ b/deskutils/Makefile
@@ -179,6 +179,7 @@
SUBDIR += nautilus-sendto
SUBDIR += nextcloudclient
SUBDIR += note
+ SUBDIR += notekit
SUBDIR += noti
SUBDIR += notification-daemon
SUBDIR += notify-osd
diff --git a/deskutils/notekit/Makefile b/deskutils/notekit/Makefile
new file mode 100644
index 000000000000..34a4218939f7
--- /dev/null
+++ b/deskutils/notekit/Makefile
@@ -0,0 +1,26 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+
+PORTNAME= notekit
+PORTVERSION= g20211222
+CATEGORIES= deskutils
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Hierarchical markdown note-taking application
+
+LICENSE= GPLv3+
+
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libharfbuzz.so:print/harfbuzz \
+ libjsoncpp.so:devel/jsoncpp
+
+USES= cmake compiler:c++17-lang gnome pkgconfig
+USE_GNOME= gdkpixbuf2 gtkmm30 gtksourceviewmm3
+USE_GITHUB= yes
+GH_ACCOUNT= blackhole89
+GH_TAGNAME= 6d6278b
+
+post-patch:
+ @${REINPLACE_CMD} -e '/workaround for old jsoncpp/d' \
+ ${WRKSRC}/mainwindow.cpp
+
+.include <bsd.port.mk>
diff --git a/deskutils/notekit/distinfo b/deskutils/notekit/distinfo
new file mode 100644
index 000000000000..7a74474559f3
--- /dev/null
+++ b/deskutils/notekit/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1640187902
+SHA256 (blackhole89-notekit-g20211222-6d6278b_GH0.tar.gz) = 347a5a3a715b9e4dcd71a6040efd0e6ff6a7f456a76353910f64898734d1c6dd
+SIZE (blackhole89-notekit-g20211222-6d6278b_GH0.tar.gz) = 1903961
diff --git a/deskutils/notekit/files/patch-main.cpp b/deskutils/notekit/files/patch-main.cpp
new file mode 100644
index 000000000000..f3cbba9c9b17
--- /dev/null
+++ b/deskutils/notekit/files/patch-main.cpp
@@ -0,0 +1,17 @@
+--- main.cpp.orig 2021-12-22 15:45:02 UTC
++++ main.cpp
+@@ -1,13 +1,12 @@
+ #include "mainwindow.h"
+ #include <gtkmm/application.h>
+
+-CMainWindow *mainwindow;
+-
+ int main (int argc, char *argv[])
+ {
+ Gsv::init();
+
+ Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "com.github.blackhole89.notekit");
++ CMainWindow *mainwindow;
+
+ app->signal_activate().connect( [app,&mainwindow]() {
+ mainwindow=new CMainWindow(app);
diff --git a/deskutils/notekit/pkg-descr b/deskutils/notekit/pkg-descr
new file mode 100644
index 000000000000..18349d2b35cf
--- /dev/null
+++ b/deskutils/notekit/pkg-descr
@@ -0,0 +1,6 @@
+This program is a structured note-taking application based on GTK v3.
+Write notes in instantly-formatted Markdown, organise them in a tree
+of folders that can be instantly navigated from within the program,
+and add hand-drawn notes by mouse, touchscreen, or digitizer.
+
+WWW: https://github.com/blackhole89/notekit
diff --git a/deskutils/notekit/pkg-plist b/deskutils/notekit/pkg-plist
new file mode 100644
index 000000000000..9e6a612d8390
--- /dev/null
+++ b/deskutils/notekit/pkg-plist
@@ -0,0 +1,30 @@
+bin/notekit
+%%DATADIR%%/data/default_config.json
+%%DATADIR%%/data/fonts/Charter Bold Italic.otf
+%%DATADIR%%/data/fonts/Charter Bold.otf
+%%DATADIR%%/data/fonts/Charter Italic.otf
+%%DATADIR%%/data/fonts/Charter Regular.otf
+%%DATADIR%%/data/fonts/Charter license.txt
+%%DATADIR%%/data/icons/hicolor/index.theme
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/eraser-tool-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/large-pen-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/medium-pen-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/pen-tool-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/pick-color-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/select-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/small-pen-symbolic.svg
+%%DATADIR%%/data/icons/hicolor/scalable/emblems/text-symbolic.svg
+%%DATADIR%%/data/preferences.glade
+%%DATADIR%%/data/stylesheet.css
+%%DATADIR%%/data/toolbar.glade
+%%DATADIR%%/sourceview/classic.xml
+%%DATADIR%%/sourceview/def.lang
+%%DATADIR%%/sourceview/language.dtd
+%%DATADIR%%/sourceview/language.rng
+%%DATADIR%%/sourceview/language2.rng
+%%DATADIR%%/sourceview/markdown-basic.lang
+%%DATADIR%%/sourceview/markdown.lang
+%%DATADIR%%/sourceview/markdown.lang.in
+%%DATADIR%%/sourceview/markdownlisting.lang
+%%DATADIR%%/sourceview/notekit.xml
+%%DATADIR%%/sourceview/styles.rng