Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2024 11:49:29 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 27bc50357c5d - main - editors/pragtical: new port had been added (+)
Message-ID:  <202404231149.43NBnTU2061882@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=27bc50357c5d6d5db39766c6a5f58349bd9cb03f

commit 27bc50357c5d6d5db39766c6a5f58349bd9cb03f
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-04-23 11:48:08 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-04-23 11:48:08 +0000

    editors/pragtical: new port had been added (+)
    
    Pragtical is a code editor forked from Lite XL, written mostly
    in Lua with a focus on being practical rather than minimalist.
---
 editors/Makefile                         |   1 +
 editors/pragtical/Makefile               |  50 ++++++
 editors/pragtical/distinfo               |   9 +
 editors/pragtical/files/patch-src_main.c |  13 ++
 editors/pragtical/pkg-descr              |   7 +
 editors/pragtical/pkg-plist              | 278 +++++++++++++++++++++++++++++++
 6 files changed, 358 insertions(+)

diff --git a/editors/Makefile b/editors/Makefile
index 7cf90e709449..cc3ddba1202b 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -233,6 +233,7 @@
     SUBDIR += pluma-plugins
     SUBDIR += poedit
     SUBDIR += poke
+    SUBDIR += pragtical
     SUBDIR += psgml
     SUBDIR += puff
     SUBDIR += py-babi
diff --git a/editors/pragtical/Makefile b/editors/pragtical/Makefile
new file mode 100644
index 000000000000..950259c57e89
--- /dev/null
+++ b/editors/pragtical/Makefile
@@ -0,0 +1,50 @@
+PORTNAME=	pragtical
+PORTVERSION=	3.3.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	editors
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Practical and pragmatic code editor
+WWW=		https://pragtical.dev/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libfreetype.so:print/freetype2 \
+		libpcre2-8.so:devel/pcre2 \
+		libuchardet.so:textproc/uchardet
+
+USES=		desktop-file-utils localbase:ldflags meson pkgconfig sdl
+USE_SDL=	sdl2
+MESON_ARGS=	-Duse_system_lua=true -Dppm=false
+
+USE_GITHUB=	yes
+GH_PROJECT=	colors:clr plugins:plg widget:wgt
+GH_TAGNAME=	83be02c:clr eeab671:plg a5f14c2:wgt
+GH_SUBDIR=	data/widget:wgt subprojects/colors:clr \
+		subprojects/plugins:plg
+
+PORTDOCS=	changelog.md licenses.md
+
+OPTIONS_DEFINE=	JIT DOCS
+OPTIONS_DEFAULT=	JIT
+OPTIONS_SUB=	yes
+
+JIT_DESC=	Use Lua JIT compiler
+JIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit-devel
+JIT_USES_OFF=	lua:54
+JIT_MESON_OFF=	-Djit=false
+
+post-extract:
+.for sp in colors plugins
+	@cd ${WRKSRC}/subprojects && ${CP} -a packagefiles/${sp}/* ${sp}
+.endfor
+
+post-patch:
+	@${REINPLACE_CMD} -e '/host_machine\.system/s,linux,${OPSYS:tl},' \
+		${WRKSRC}/meson.build
+
+post-install-DOCS-on:
+	${INSTALL_DATA} ${WRKSRC}/changelog.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/editors/pragtical/distinfo b/editors/pragtical/distinfo
new file mode 100644
index 000000000000..5469f46ed13f
--- /dev/null
+++ b/editors/pragtical/distinfo
@@ -0,0 +1,9 @@
+TIMESTAMP = 1713472267
+SHA256 (pragtical-pragtical-v3.3.1_GH0.tar.gz) = 10b6c12ddfdc496ec6e8fed64ac1aa494d80d7b79e2609c585143db7e3b165d2
+SIZE (pragtical-pragtical-v3.3.1_GH0.tar.gz) = 1076416
+SHA256 (pragtical-colors-83be02c_GH0.tar.gz) = e3e3170acee8b06b910f81302848f279d28b271fc4212afa801af0b8deaa1386
+SIZE (pragtical-colors-83be02c_GH0.tar.gz) = 28734
+SHA256 (pragtical-plugins-eeab671_GH0.tar.gz) = 8a4b484004a2bc60cfb9c6065d506398b7b5a221011a3831de50d5efec0cf53a
+SIZE (pragtical-plugins-eeab671_GH0.tar.gz) = 282170
+SHA256 (pragtical-widget-a5f14c2_GH0.tar.gz) = 4ae22a8db8b88ba1bbdd907cf42d49a838694f5fbd18faed350b1ca717c16d8b
+SIZE (pragtical-widget-a5f14c2_GH0.tar.gz) = 51861
diff --git a/editors/pragtical/files/patch-src_main.c b/editors/pragtical/files/patch-src_main.c
new file mode 100644
index 000000000000..56a9ce0330c3
--- /dev/null
+++ b/editors/pragtical/files/patch-src_main.c
@@ -0,0 +1,13 @@
+--- src/main.c.orig	2024-04-18 20:31:07 UTC
++++ src/main.c
+@@ -101,6 +101,10 @@ void set_macos_bundle_resources(lua_State *L);
+     #define ARCH_PROCESSOR "aarch64"
+   #elif defined(__arm__) || defined(_M_ARM)
+     #define ARCH_PROCESSOR "arm"
++  #elif defined(__powerpc64__)
++    #define ARCH_PROCESSOR "ppc64"
++  #elif defined(__powerpc__)
++    #define ARCH_PROCESSOR "ppc"
+   #endif
+ 
+   #if _WIN32
diff --git a/editors/pragtical/pkg-descr b/editors/pragtical/pkg-descr
new file mode 100644
index 000000000000..31fd35167d50
--- /dev/null
+++ b/editors/pragtical/pkg-descr
@@ -0,0 +1,7 @@
+Pragtical is a code editor which was forked from Lite XL, written mostly in
+Lua with a focus on being practical rather than minimalist.  The name of the
+editor is a mixture of the words `pragmatic' and `practical', two words that
+properly define the project's development approach and differentiate it from
+its ancestors by striving to make Pragtical an editor that has amplified the
+set of features, better out of the box experience, while keeping an eye on
+performance and ease of extensibility.
diff --git a/editors/pragtical/pkg-plist b/editors/pragtical/pkg-plist
new file mode 100644
index 000000000000..80e477594fc2
--- /dev/null
+++ b/editors/pragtical/pkg-plist
@@ -0,0 +1,278 @@
+bin/pragtical
+share/applications/org.pragtical.pragtical.desktop
+share/icons/hicolor/scalable/apps/pragtical.svg
+share/metainfo/org.pragtical.pragtical.appdata.xml
+%%DATADIR%%/bit.lua
+%%DATADIR%%/colors/abyss.lua
+%%DATADIR%%/colors/bearded-theme-vivid-black.lua
+%%DATADIR%%/colors/betelgeuse.lua
+%%DATADIR%%/colors/c0mfy.lua
+%%DATADIR%%/colors/catppuccin-frappe.lua
+%%DATADIR%%/colors/catppuccin-latte.lua
+%%DATADIR%%/colors/catppuccin-macchiato.lua
+%%DATADIR%%/colors/catppuccin-mocha.lua
+%%DATADIR%%/colors/cold_lime.lua
+%%DATADIR%%/colors/default.lua
+%%DATADIR%%/colors/dracula.lua
+%%DATADIR%%/colors/duorand.lua
+%%DATADIR%%/colors/duotone.lua
+%%DATADIR%%/colors/everforest.lua
+%%DATADIR%%/colors/fall.lua
+%%DATADIR%%/colors/flexoki_dark.lua
+%%DATADIR%%/colors/flexoki_light.lua
+%%DATADIR%%/colors/focus.lua
+%%DATADIR%%/colors/github-dark-dimmed.lua
+%%DATADIR%%/colors/github.lua
+%%DATADIR%%/colors/github_dark.lua
+%%DATADIR%%/colors/gruvbox_dark.lua
+%%DATADIR%%/colors/gruvbox_light.lua
+%%DATADIR%%/colors/jb-fleet.lua
+%%DATADIR%%/colors/jellybeans.lua
+%%DATADIR%%/colors/liqube.lua
+%%DATADIR%%/colors/mariana.lua
+%%DATADIR%%/colors/moe.lua
+%%DATADIR%%/colors/monodark.lua
+%%DATADIR%%/colors/monokai-pro-classic.lua
+%%DATADIR%%/colors/monokai-sublime.lua
+%%DATADIR%%/colors/monokai.lua
+%%DATADIR%%/colors/nord.lua
+%%DATADIR%%/colors/onedark.lua
+%%DATADIR%%/colors/only_dark.lua
+%%DATADIR%%/colors/plasma.lua
+%%DATADIR%%/colors/predawn.lua
+%%DATADIR%%/colors/rose-pine-dawn.lua
+%%DATADIR%%/colors/rose-pine-moon.lua
+%%DATADIR%%/colors/rose-pine.lua
+%%DATADIR%%/colors/solarized_dark.lua
+%%DATADIR%%/colors/solarized_light.lua
+%%DATADIR%%/colors/solarobj.lua
+%%DATADIR%%/colors/summer.lua
+%%DATADIR%%/colors/synthwave.lua
+%%DATADIR%%/colors/textadept.lua
+%%DATADIR%%/colors/tokyo-night.lua
+%%DATADIR%%/colors/vscode-dark.lua
+%%DATADIR%%/colors/winter.lua
+%%DATADIR%%/colors/yaru.lua
+%%DATADIR%%/colors/yaru_dark.lua
+%%DATADIR%%/colors/zenburn.lua
+%%JIT%%%%DATADIR%%/compat/init.lua
+%%JIT%%%%DATADIR%%/compat/module.lua
+%%DATADIR%%/core/bit.lua
+%%DATADIR%%/core/cli.lua
+%%DATADIR%%/core/command.lua
+%%DATADIR%%/core/commands/command.lua
+%%DATADIR%%/core/commands/core.lua
+%%DATADIR%%/core/commands/dialog.lua
+%%DATADIR%%/core/commands/doc.lua
+%%DATADIR%%/core/commands/files.lua
+%%DATADIR%%/core/commands/findreplace.lua
+%%DATADIR%%/core/commands/log.lua
+%%DATADIR%%/core/commands/root.lua
+%%DATADIR%%/core/commands/statusbar.lua
+%%DATADIR%%/core/commandview.lua
+%%DATADIR%%/core/common.lua
+%%DATADIR%%/core/config.lua
+%%DATADIR%%/core/contextmenu.lua
+%%DATADIR%%/core/dirwatch.lua
+%%DATADIR%%/core/doc/encodings.lua
+%%DATADIR%%/core/doc/highlighter.lua
+%%DATADIR%%/core/doc/init.lua
+%%DATADIR%%/core/doc/search.lua
+%%DATADIR%%/core/doc/translate.lua
+%%DATADIR%%/core/docview.lua
+%%DATADIR%%/core/emptyview.lua
+%%DATADIR%%/core/ime.lua
+%%DATADIR%%/core/init.lua
+%%DATADIR%%/core/jitsetup.lua
+%%DATADIR%%/core/keymap-macos.lua
+%%DATADIR%%/core/keymap.lua
+%%DATADIR%%/core/logview.lua
+%%DATADIR%%/core/modkeys-generic.lua
+%%DATADIR%%/core/modkeys-macos.lua
+%%DATADIR%%/core/nagview.lua
+%%DATADIR%%/core/node.lua
+%%DATADIR%%/core/object.lua
+%%DATADIR%%/core/project.lua
+%%DATADIR%%/core/regex.lua
+%%DATADIR%%/core/rootview.lua
+%%DATADIR%%/core/scrollbar.lua
+%%DATADIR%%/core/start.lua
+%%DATADIR%%/core/statusview.lua
+%%DATADIR%%/core/strict.lua
+%%DATADIR%%/core/style.lua
+%%DATADIR%%/core/syntax.lua
+%%DATADIR%%/core/titleview.lua
+%%DATADIR%%/core/tokenizer.lua
+%%DATADIR%%/core/utf8string.lua
+%%DATADIR%%/core/view.lua
+%%DATADIR%%/dirmonitor.lua
+%%DATADIR%%/encoding.lua
+%%DATADIR%%/fonts/FiraSans-Regular.ttf
+%%DATADIR%%/fonts/JetBrainsMono-Regular.ttf
+%%DATADIR%%/fonts/icons.ttf
+%%DATADIR%%/globals.lua
+%%DATADIR%%/plugins/autocomplete.lua
+%%DATADIR%%/plugins/autoreload.lua
+%%DATADIR%%/plugins/contextmenu.lua
+%%DATADIR%%/plugins/detectindent.lua
+%%DATADIR%%/plugins/drawwhitespace.lua
+%%DATADIR%%/plugins/findfile.lua
+%%DATADIR%%/plugins/ipc.lua
+%%DATADIR%%/plugins/language_R.lua
+%%DATADIR%%/plugins/language_angelscript.lua
+%%DATADIR%%/plugins/language_assembly_riscv.lua
+%%DATADIR%%/plugins/language_assembly_x86.lua
+%%DATADIR%%/plugins/language_autohotkey_v1.lua
+%%DATADIR%%/plugins/language_batch.lua
+%%DATADIR%%/plugins/language_bib.lua
+%%DATADIR%%/plugins/language_blade.lua
+%%DATADIR%%/plugins/language_blueprint.lua
+%%DATADIR%%/plugins/language_brainfuck.lua
+%%DATADIR%%/plugins/language_buzz.lua
+%%DATADIR%%/plugins/language_c.lua
+%%DATADIR%%/plugins/language_c7.lua
+%%DATADIR%%/plugins/language_caddyfile.lua
+%%DATADIR%%/plugins/language_carbon.lua
+%%DATADIR%%/plugins/language_clojure.lua
+%%DATADIR%%/plugins/language_cmake.lua
+%%DATADIR%%/plugins/language_cpp.lua
+%%DATADIR%%/plugins/language_csharp.lua
+%%DATADIR%%/plugins/language_css.lua
+%%DATADIR%%/plugins/language_cue.lua
+%%DATADIR%%/plugins/language_d.lua
+%%DATADIR%%/plugins/language_dart.lua
+%%DATADIR%%/plugins/language_diff.lua
+%%DATADIR%%/plugins/language_edp.lua
+%%DATADIR%%/plugins/language_ejs.lua
+%%DATADIR%%/plugins/language_elixir.lua
+%%DATADIR%%/plugins/language_elm.lua
+%%DATADIR%%/plugins/language_erb.lua
+%%DATADIR%%/plugins/language_fe.lua
+%%DATADIR%%/plugins/language_fennel.lua
+%%DATADIR%%/plugins/language_fortran.lua
+%%DATADIR%%/plugins/language_fstab.lua
+%%DATADIR%%/plugins/language_gabc.lua
+%%DATADIR%%/plugins/language_gdscript.lua
+%%DATADIR%%/plugins/language_glsl.lua
+%%DATADIR%%/plugins/language_gmi.lua
+%%DATADIR%%/plugins/language_go.lua
+%%DATADIR%%/plugins/language_graphql.lua
+%%DATADIR%%/plugins/language_gravity.lua
+%%DATADIR%%/plugins/language_groovy.lua
+%%DATADIR%%/plugins/language_hare.lua
+%%DATADIR%%/plugins/language_haxe.lua
+%%DATADIR%%/plugins/language_hlsl.lua
+%%DATADIR%%/plugins/language_hs.lua
+%%DATADIR%%/plugins/language_htaccess.lua
+%%DATADIR%%/plugins/language_html.lua
+%%DATADIR%%/plugins/language_ini.lua
+%%DATADIR%%/plugins/language_java.lua
+%%DATADIR%%/plugins/language_jiyu.lua
+%%DATADIR%%/plugins/language_js.lua
+%%DATADIR%%/plugins/language_json.lua
+%%DATADIR%%/plugins/language_jsx.lua
+%%DATADIR%%/plugins/language_julia.lua
+%%DATADIR%%/plugins/language_lilypond.lua
+%%DATADIR%%/plugins/language_liquid.lua
+%%DATADIR%%/plugins/language_lobster.lua
+%%DATADIR%%/plugins/language_lox.lua
+%%DATADIR%%/plugins/language_lua.lua
+%%DATADIR%%/plugins/language_make.lua
+%%DATADIR%%/plugins/language_marte.lua
+%%DATADIR%%/plugins/language_md.lua
+%%DATADIR%%/plugins/language_meson.lua
+%%DATADIR%%/plugins/language_miniscript.lua
+%%DATADIR%%/plugins/language_moon.lua
+%%DATADIR%%/plugins/language_nelua.lua
+%%DATADIR%%/plugins/language_nginx.lua
+%%DATADIR%%/plugins/language_nim.lua
+%%DATADIR%%/plugins/language_nix.lua
+%%DATADIR%%/plugins/language_objc.lua
+%%DATADIR%%/plugins/language_odin.lua
+%%DATADIR%%/plugins/language_perl.lua
+%%DATADIR%%/plugins/language_php.lua
+%%DATADIR%%/plugins/language_pico8.lua
+%%DATADIR%%/plugins/language_pkgbuild.lua
+%%DATADIR%%/plugins/language_po.lua
+%%DATADIR%%/plugins/language_powershell.lua
+%%DATADIR%%/plugins/language_psql.lua
+%%DATADIR%%/plugins/language_python.lua
+%%DATADIR%%/plugins/language_rescript.lua
+%%DATADIR%%/plugins/language_rivet.lua
+%%DATADIR%%/plugins/language_ruby.lua
+%%DATADIR%%/plugins/language_rust.lua
+%%DATADIR%%/plugins/language_sass.lua
+%%DATADIR%%/plugins/language_scala.lua
+%%DATADIR%%/plugins/language_sh.lua
+%%DATADIR%%/plugins/language_ssh_config.lua
+%%DATADIR%%/plugins/language_swift.lua
+%%DATADIR%%/plugins/language_tal.lua
+%%DATADIR%%/plugins/language_tcl.lua
+%%DATADIR%%/plugins/language_teal.lua
+%%DATADIR%%/plugins/language_tex.lua
+%%DATADIR%%/plugins/language_toml.lua
+%%DATADIR%%/plugins/language_ts.lua
+%%DATADIR%%/plugins/language_tsx.lua
+%%DATADIR%%/plugins/language_typst.lua
+%%DATADIR%%/plugins/language_umka.lua
+%%DATADIR%%/plugins/language_v.lua
+%%DATADIR%%/plugins/language_wren.lua
+%%DATADIR%%/plugins/language_xml.lua
+%%DATADIR%%/plugins/language_yaml.lua
+%%DATADIR%%/plugins/language_zig.lua
+%%DATADIR%%/plugins/lineguide.lua
+%%DATADIR%%/plugins/linewrapping.lua
+%%DATADIR%%/plugins/macro.lua
+%%DATADIR%%/plugins/projectsearch.lua
+%%DATADIR%%/plugins/quote.lua
+%%DATADIR%%/plugins/reflow.lua
+%%DATADIR%%/plugins/scale.lua
+%%DATADIR%%/plugins/search_ui.lua
+%%DATADIR%%/plugins/settings.lua
+%%DATADIR%%/plugins/tabularize.lua
+%%DATADIR%%/plugins/toolbarview.lua
+%%DATADIR%%/plugins/treeview.lua
+%%DATADIR%%/plugins/trimwhitespace.lua
+%%DATADIR%%/plugins/workspace.lua
+%%DATADIR%%/process.lua
+%%DATADIR%%/regex.lua
+%%DATADIR%%/renderer.lua
+%%DATADIR%%/shmem.lua
+%%DATADIR%%/string.lua
+%%DATADIR%%/system.lua
+%%DATADIR%%/thread.lua
+%%DATADIR%%/utf8extra.lua
+%%DATADIR%%/widget/LICENSE
+%%DATADIR%%/widget/README.md
+%%DATADIR%%/widget/button.lua
+%%DATADIR%%/widget/checkbox.lua
+%%DATADIR%%/widget/colorpicker.lua
+%%DATADIR%%/widget/colorpickerdialog.lua
+%%DATADIR%%/widget/dialog.lua
+%%DATADIR%%/widget/examples/floating.lua
+%%DATADIR%%/widget/examples/listbox.lua
+%%DATADIR%%/widget/examples/messagebox.lua
+%%DATADIR%%/widget/examples/notebook.lua
+%%DATADIR%%/widget/examples/search.lua
+%%DATADIR%%/widget/filepicker.lua
+%%DATADIR%%/widget/foldingbook.lua
+%%DATADIR%%/widget/fontdialog.lua
+%%DATADIR%%/widget/fonts/cache.lua
+%%DATADIR%%/widget/fonts/info.lua
+%%DATADIR%%/widget/fonts/init.lua
+%%DATADIR%%/widget/fontslist.lua
+%%DATADIR%%/widget/init.lua
+%%DATADIR%%/widget/inputdialog.lua
+%%DATADIR%%/widget/itemslist.lua
+%%DATADIR%%/widget/keybinddialog.lua
+%%DATADIR%%/widget/label.lua
+%%DATADIR%%/widget/line.lua
+%%DATADIR%%/widget/listbox.lua
+%%DATADIR%%/widget/messagebox.lua
+%%DATADIR%%/widget/notebook.lua
+%%DATADIR%%/widget/numberbox.lua
+%%DATADIR%%/widget/progressbar.lua
+%%DATADIR%%/widget/scrollbar.lua
+%%DATADIR%%/widget/selectbox.lua
+%%DATADIR%%/widget/textbox.lua
+%%DATADIR%%/widget/toggle.lua



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404231149.43NBnTU2061882>