1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Textadept is fast, minimalist, extensible cross-platform text editor.

WWW: https://foicica.com/textadept/
This commit is contained in:
Alexey Dokuchaev 2020-09-03 12:08:03 +00:00
parent 51197d9b0d
commit a9e561ce69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547438
6 changed files with 417 additions and 0 deletions

View File

@ -239,6 +239,7 @@
SUBDIR += texmacs
SUBDIR += texmaker
SUBDIR += texstudio
SUBDIR += textadept
SUBDIR += texworks
SUBDIR += the
SUBDIR += thoteditor

View File

@ -0,0 +1,70 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= textadept
DISTVERSION= 11.0_alpha_3
CATEGORIES= editors
MASTER_SITES= http://foicica.com/hg/textadept/archive/ \
http://foicica.com/hg/scintilla/archive/:sci \
http://www.lua.org/ftp/:lua \
http://www.inf.puc-rio.br/~roberto/lpeg/:lpeg \
http://foicica.com/hg/gtdialog/archive/:gtd
DISTFILES= ${TA_HASH}.zip ${SCI_HASH}.zip:sci \
lua-${LUA_VER}.tar.gz:lua \
lpeg-${LPEG_VER}.tar.gz:lpeg ${GTD_HASH}.zip:gtd
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Fast, minimalist, extensible cross-platform text editor
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++11-lang desktop-file-utils gmake gnome iconv \
pkgconfig
USE_GNOME= cairo gdkpixbuf2 glib20
USE_GITHUB= nodefault
GH_ACCOUNT= keplerproject:lfs
GH_PROJECT= luafilesystem:lfs
GH_TAGNAME= v${LFS_VER}:lfs
TA_HASH= f7fbf78f9219
SCI_HASH= d1b254905c74
LUA_VER= 5.3.5
LPEG_VER= 1.0.2
LFS_VER= 1_7_0_2
GTD_HASH= 680b3b41e12c
WRKSRC= ${WRKDIR}/${PORTNAME}-${TA_HASH}
BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${BUILD_WRKSRC}
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= UI
OPTIONS_SINGLE_UI= GTK2 GTK3
OPTIONS_DEFAULT= GTK2
GTK2_USE= GNOME=gtk20
GTK3_USE= GNOME=gtk30
GTK3_MAKE_ARGS= GTK3=yes
post-patch:
${LN} -s ${WRKDIR}/scintilla-${SCI_HASH} ${BUILD_WRKSRC}/scintilla
${PATCH} -d ${BUILD_WRKSRC}/scintilla -N -p1 < \
${BUILD_WRKSRC}/scintilla.patch
${LN} -s ${WRKDIR}/lua-${LUA_VER} ${BUILD_WRKSRC}/lua
${PATCH} -d ${BUILD_WRKSRC}/lua -N -p1 < \
${BUILD_WRKSRC}/lua.patch
@${MKDIR} ${BUILD_WRKSRC}/lua/src/lib
${LN} -s ${WRKDIR}/lpeg-${LPEG_VER}/*.[ch] ${BUILD_WRKSRC}/lua/src/lib
${LN} -s ${WRKDIR}/luafilesystem-${LFS_VER}/src/*.[ch] \
${BUILD_WRKSRC}/lua/src/lib
${LN} -s ${WRKDIR}/gtdialog-${GTD_HASH} ${BUILD_WRKSRC}/gtdialog
@${RM} ${WRKSRC}/core/.*.luadoc
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,13 @@
TIMESTAMP = 1596259300
SHA256 (textadept/f7fbf78f9219.zip) = cb2004166305256b6e559a90d3a511ce7db1126929f876e4a05a99581bddc65b
SIZE (textadept/f7fbf78f9219.zip) = 2064930
SHA256 (textadept/d1b254905c74.zip) = 4e2bad45294bcc2393bef6bd06216b5095231ac0fdbcd0c4091704aba81a5e4e
SIZE (textadept/d1b254905c74.zip) = 2391122
SHA256 (textadept/lua-5.3.5.tar.gz) = 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac
SIZE (textadept/lua-5.3.5.tar.gz) = 303543
SHA256 (textadept/lpeg-1.0.2.tar.gz) = 48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe
SIZE (textadept/lpeg-1.0.2.tar.gz) = 71840
SHA256 (textadept/680b3b41e12c.zip) = 57f51505859d8008c1af1719f4f17480b07c4ef912cc75127683a99d9c56c76f
SIZE (textadept/680b3b41e12c.zip) = 332145
SHA256 (textadept/keplerproject-luafilesystem-v1_7_0_2_GH0.tar.gz) = 23b4883aeb4fb90b2d0f338659f33a631f9df7a7e67c54115775a77d4ac3cc59
SIZE (textadept/keplerproject-luafilesystem-v1_7_0_2_GH0.tar.gz) = 30877

View File

@ -0,0 +1,80 @@
--- src/Makefile.orig 2020-08-01 05:21:40 UTC
+++ src/Makefile
@@ -1,10 +1,9 @@
# Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE.
-CC = gcc
-CFLAGS = -Os
-CXX = g++
-CXXFLAGS = -Os -std=c++11
-MAKE = make
+CC ?= gcc
+CFLAGS ?= -Os
+CXX ?= g++
+CXXFLAGS ?= -Os -std=c++11
ifeq (win, $(findstring win, $(MAKECMDGOALS)))
# Cross-compile for Win32.
CROSS = i686-w64-mingw32-
@@ -60,20 +59,21 @@ else ifeq (osx, $(findstring osx, $(MAKECMDGOALS)))
else
# Build for Linux/BSD.
LUA_CFLAGS = -DLUA_USE_LINUX
- LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,$(shell pwd)/lua.sym
+ # See PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220103
+ #LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,$(shell pwd)/lua.sym
ifeq (Linux, $(shell uname -s))
LDFLAGS += -ldl
else
- CC = cc
- CXX = c++
- LDFLAGS += -liconv
- MAKE = gmake
+ CC ?= cc
+ CXX ?= c++
+ # Correct spelling on FreeBSD is USES+=iconv :)
+ #LDFLAGS += -liconv
endif
PREFIX ?= /usr/local
bin_dir = $(PREFIX)/bin
data_dir = $(PREFIX)/share/textadept
XDG_DATA_DIR ?= $(PREFIX)/share/applications
- PIXMAPS_DIR ?= /usr/share/pixmaps
+ PIXMAPS_DIR ?= $(PREFIX)/share/pixmaps
desktop_files := $(wildcard *.desktop)
ifeq (, $(findstring curses, $(MAKECMDGOALS)))
plat_flag = -DGTK
@@ -101,7 +101,7 @@ else
endif
version = $(shell grep -m 1 _RELEASE ../core/init.lua | cut -d ' ' -f4- | \
tr ' ' '_' | tr -d "'")
-WGET = wget -O $@
+WGET = : wget -O $@
# Scintilla.
@@ -236,20 +236,21 @@ textadept-curses.exe: $(sci_objs) $(sci_lex_objs) LexL
# Install/uninstall.
-install: $(install_targets) | ../core ../doc ../init.lua ../lexers ../LICENSE \
+install: $(install_targets) | ../core ../doc ../init.lua ../lexers \
../modules ../themes
install -d $(DESTDIR)$(bin_dir) $(DESTDIR)$(data_dir)
install $^ $(DESTDIR)$(data_dir)
cp -rL $| $(DESTDIR)$(data_dir)
- ln -s $(subst .., $(data_dir), $^) $(DESTDIR)$(bin_dir)
+ ln -s $(subst ..,..$(subst $(PREFIX),,$(data_dir)),$^) $(DESTDIR)$(bin_dir)
if [ -d "$(XDG_DATA_DIR)" ]; then \
install -d $(DESTDIR)$(XDG_DATA_DIR); \
install $(desktop_files) $(DESTDIR)$(XDG_DATA_DIR); \
fi
if [ -d "$(PIXMAPS_DIR)" ]; then \
install -d $(DESTDIR)$(PIXMAPS_DIR); \
- ln -s $(data_dir)/core/images/textadept.svg $(DESTDIR)$(PIXMAPS_DIR); \
- ln -s $(data_dir)/core/images/ta_48x48.png \
+ ln -s ../..$(subst $(PREFIX),,$(data_dir))/core/images/textadept.svg \
+ $(DESTDIR)$(PIXMAPS_DIR); \
+ ln -s ../..$(subst $(PREFIX),,$(data_dir))/core/images/ta_48x48.png \
$(DESTDIR)$(PIXMAPS_DIR)/textadept.png; \
fi
uninstall:

View File

@ -0,0 +1,7 @@
Textadept is a fast, minimalist, and remarkably extensible cross-platform
text editor for programmers. Written in a combination of C and Lua, and
relentlessly optimized for speed and minimalism over the years, Textadept
is an ideal editor for programmers who want endless extensibility without
sacrificing speed or succumbing to code bloat and featuritis.
WWW: https://foicica.com/textadept/

246
editors/textadept/pkg-plist Normal file
View File

@ -0,0 +1,246 @@
bin/textadept
share/applications/textadept-curses.desktop
share/applications/textadept.desktop
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.md
%%PORTDOCS%%%%DOCSDIR%%/FAQ.md
%%PORTDOCS%%%%DOCSDIR%%/MEDIA.md
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/TECHNOLOGY.md
%%PORTDOCS%%%%DOCSDIR%%/THANKS.md
share/pixmaps/textadept.png
share/pixmaps/textadept.svg
%%DATADIR%%/core/args.lua
%%DATADIR%%/core/assert.lua
%%DATADIR%%/core/events.lua
%%DATADIR%%/core/file_io.lua
%%DATADIR%%/core/iface.lua
%%DATADIR%%/core/images/ta_128x128.png
%%DATADIR%%/core/images/ta_16x16.png
%%DATADIR%%/core/images/ta_256x256.png
%%DATADIR%%/core/images/ta_32x32.ico
%%DATADIR%%/core/images/ta_32x32.png
%%DATADIR%%/core/images/ta_48x48.png
%%DATADIR%%/core/images/ta_64x64.png
%%DATADIR%%/core/images/textadept.icns
%%DATADIR%%/core/images/textadept.ico
%%DATADIR%%/core/images/textadept.png
%%DATADIR%%/core/images/textadept.svg
%%DATADIR%%/core/init.lua
%%DATADIR%%/core/keys.lua
%%DATADIR%%/core/lfs_ext.lua
%%DATADIR%%/core/locale.conf
%%DATADIR%%/core/locale.lua
%%DATADIR%%/core/locales/locale.ar.conf
%%DATADIR%%/core/locales/locale.de.conf
%%DATADIR%%/core/locales/locale.es.conf
%%DATADIR%%/core/locales/locale.fr.conf
%%DATADIR%%/core/locales/locale.it.conf
%%DATADIR%%/core/locales/locale.pl.conf
%%DATADIR%%/core/locales/locale.ru.conf
%%DATADIR%%/core/locales/locale.sv.conf
%%DATADIR%%/core/locales/locale.zh.conf
%%DATADIR%%/core/ui.lua
%%DATADIR%%/doc/.footer.md
%%DATADIR%%/doc/.header.md
%%DATADIR%%/doc/icon.png
%%DATADIR%%/doc/images/adeptsense_doc.png
%%DATADIR%%/doc/images/adeptsense_lua.png
%%DATADIR%%/doc/images/adeptsense_string.png
%%DATADIR%%/doc/images/adeptsense_ta.png
%%DATADIR%%/doc/images/adeptsense_tadoc.png
%%DATADIR%%/doc/images/bufferbrowser.png
%%DATADIR%%/doc/images/bufferbrowserfiltered.png
%%DATADIR%%/doc/images/commandentry.png
%%DATADIR%%/doc/images/commandentrycompletion.png
%%DATADIR%%/doc/images/darktheme.png
%%DATADIR%%/doc/images/docstatusbar.png
%%DATADIR%%/doc/images/feed.png
%%DATADIR%%/doc/images/findinfiles.png
%%DATADIR%%/doc/images/folding.png
%%DATADIR%%/doc/images/header.png
%%DATADIR%%/doc/images/icon.png
%%DATADIR%%/doc/images/lighttheme.png
%%DATADIR%%/doc/images/linux.png
%%DATADIR%%/doc/images/macosx.png
%%DATADIR%%/doc/images/matchingbrace.png
%%DATADIR%%/doc/images/ncurses.png
%%DATADIR%%/doc/images/rectangularselection.png
%%DATADIR%%/doc/images/rectangularselection2.png
%%DATADIR%%/doc/images/runerror.png
%%DATADIR%%/doc/images/snapopen.png
%%DATADIR%%/doc/images/snippet.png
%%DATADIR%%/doc/images/snippet2.png
%%DATADIR%%/doc/images/splitviews.png
%%DATADIR%%/doc/images/termtheme.png
%%DATADIR%%/doc/images/textadept.gif
%%DATADIR%%/doc/images/textadept.png
%%DATADIR%%/doc/images/ui.png
%%DATADIR%%/doc/images/win32.png
%%DATADIR%%/doc/images/wordcompletion.png
%%DATADIR%%/doc/images/wordhighlight.png
%%DATADIR%%/doc/index.html
%%DATADIR%%/doc/manual.md
%%DATADIR%%/doc/markdowndoc.lua
%%DATADIR%%/init.lua
%%DATADIR%%/lexers/actionscript.lua
%%DATADIR%%/lexers/ada.lua
%%DATADIR%%/lexers/ansi_c.lua
%%DATADIR%%/lexers/antlr.lua
%%DATADIR%%/lexers/apdl.lua
%%DATADIR%%/lexers/apl.lua
%%DATADIR%%/lexers/applescript.lua
%%DATADIR%%/lexers/asm.lua
%%DATADIR%%/lexers/asp.lua
%%DATADIR%%/lexers/autoit.lua
%%DATADIR%%/lexers/awk.lua
%%DATADIR%%/lexers/bash.lua
%%DATADIR%%/lexers/batch.lua
%%DATADIR%%/lexers/bibtex.lua
%%DATADIR%%/lexers/boo.lua
%%DATADIR%%/lexers/caml.lua
%%DATADIR%%/lexers/chuck.lua
%%DATADIR%%/lexers/cmake.lua
%%DATADIR%%/lexers/coffeescript.lua
%%DATADIR%%/lexers/container.lua
%%DATADIR%%/lexers/context.lua
%%DATADIR%%/lexers/cpp.lua
%%DATADIR%%/lexers/crystal.lua
%%DATADIR%%/lexers/csharp.lua
%%DATADIR%%/lexers/css.lua
%%DATADIR%%/lexers/cuda.lua
%%DATADIR%%/lexers/dart.lua
%%DATADIR%%/lexers/desktop.lua
%%DATADIR%%/lexers/diff.lua
%%DATADIR%%/lexers/django.lua
%%DATADIR%%/lexers/dmd.lua
%%DATADIR%%/lexers/dockerfile.lua
%%DATADIR%%/lexers/dot.lua
%%DATADIR%%/lexers/eiffel.lua
%%DATADIR%%/lexers/elixir.lua
%%DATADIR%%/lexers/erlang.lua
%%DATADIR%%/lexers/faust.lua
%%DATADIR%%/lexers/fennel.lua
%%DATADIR%%/lexers/fish.lua
%%DATADIR%%/lexers/forth.lua
%%DATADIR%%/lexers/fortran.lua
%%DATADIR%%/lexers/fsharp.lua
%%DATADIR%%/lexers/gap.lua
%%DATADIR%%/lexers/gettext.lua
%%DATADIR%%/lexers/gherkin.lua
%%DATADIR%%/lexers/glsl.lua
%%DATADIR%%/lexers/gnuplot.lua
%%DATADIR%%/lexers/go.lua
%%DATADIR%%/lexers/groovy.lua
%%DATADIR%%/lexers/gtkrc.lua
%%DATADIR%%/lexers/haskell.lua
%%DATADIR%%/lexers/html.lua
%%DATADIR%%/lexers/icon.lua
%%DATADIR%%/lexers/idl.lua
%%DATADIR%%/lexers/inform.lua
%%DATADIR%%/lexers/ini.lua
%%DATADIR%%/lexers/io_lang.lua
%%DATADIR%%/lexers/java.lua
%%DATADIR%%/lexers/javascript.lua
%%DATADIR%%/lexers/json.lua
%%DATADIR%%/lexers/jsp.lua
%%DATADIR%%/lexers/latex.lua
%%DATADIR%%/lexers/ledger.lua
%%DATADIR%%/lexers/less.lua
%%DATADIR%%/lexers/lexer.lua
%%DATADIR%%/lexers/lilypond.lua
%%DATADIR%%/lexers/lisp.lua
%%DATADIR%%/lexers/litcoffee.lua
%%DATADIR%%/lexers/logtalk.lua
%%DATADIR%%/lexers/lua.lua
%%DATADIR%%/lexers/makefile.lua
%%DATADIR%%/lexers/man.lua
%%DATADIR%%/lexers/markdown.lua
%%DATADIR%%/lexers/matlab.lua
%%DATADIR%%/lexers/mediawiki.lua
%%DATADIR%%/lexers/moonscript.lua
%%DATADIR%%/lexers/myrddin.lua
%%DATADIR%%/lexers/nemerle.lua
%%DATADIR%%/lexers/nim.lua
%%DATADIR%%/lexers/nsis.lua
%%DATADIR%%/lexers/null.lua
%%DATADIR%%/lexers/objective_c.lua
%%DATADIR%%/lexers/pascal.lua
%%DATADIR%%/lexers/perl.lua
%%DATADIR%%/lexers/php.lua
%%DATADIR%%/lexers/pico8.lua
%%DATADIR%%/lexers/pike.lua
%%DATADIR%%/lexers/pkgbuild.lua
%%DATADIR%%/lexers/powershell.lua
%%DATADIR%%/lexers/prolog.lua
%%DATADIR%%/lexers/props.lua
%%DATADIR%%/lexers/protobuf.lua
%%DATADIR%%/lexers/ps.lua
%%DATADIR%%/lexers/pure.lua
%%DATADIR%%/lexers/python.lua
%%DATADIR%%/lexers/rails.lua
%%DATADIR%%/lexers/rc.lua
%%DATADIR%%/lexers/rebol.lua
%%DATADIR%%/lexers/rest.lua
%%DATADIR%%/lexers/rexx.lua
%%DATADIR%%/lexers/rhtml.lua
%%DATADIR%%/lexers/rstats.lua
%%DATADIR%%/lexers/ruby.lua
%%DATADIR%%/lexers/rust.lua
%%DATADIR%%/lexers/sass.lua
%%DATADIR%%/lexers/scala.lua
%%DATADIR%%/lexers/scheme.lua
%%DATADIR%%/lexers/smalltalk.lua
%%DATADIR%%/lexers/sml.lua
%%DATADIR%%/lexers/snobol4.lua
%%DATADIR%%/lexers/sql.lua
%%DATADIR%%/lexers/taskpaper.lua
%%DATADIR%%/lexers/tcl.lua
%%DATADIR%%/lexers/template.txt
%%DATADIR%%/lexers/tex.lua
%%DATADIR%%/lexers/texinfo.lua
%%DATADIR%%/lexers/text.lua
%%DATADIR%%/lexers/themes/curses.lua
%%DATADIR%%/lexers/themes/dark.lua
%%DATADIR%%/lexers/themes/light.lua
%%DATADIR%%/lexers/themes/scite.lua
%%DATADIR%%/lexers/toml.lua
%%DATADIR%%/lexers/txt2tags.lua
%%DATADIR%%/lexers/vala.lua
%%DATADIR%%/lexers/vb.lua
%%DATADIR%%/lexers/vbscript.lua
%%DATADIR%%/lexers/vcard.lua
%%DATADIR%%/lexers/verilog.lua
%%DATADIR%%/lexers/vhdl.lua
%%DATADIR%%/lexers/wsf.lua
%%DATADIR%%/lexers/xml.lua
%%DATADIR%%/lexers/xtend.lua
%%DATADIR%%/lexers/yaml.lua
%%DATADIR%%/modules/ansi_c/api
%%DATADIR%%/modules/ansi_c/init.lua
%%DATADIR%%/modules/ansi_c/lua_api
%%DATADIR%%/modules/ansi_c/lua_tags
%%DATADIR%%/modules/ansi_c/tags
%%DATADIR%%/modules/lua/api
%%DATADIR%%/modules/lua/init.lua
%%DATADIR%%/modules/lua/lua.luadoc
%%DATADIR%%/modules/lua/luadoc.patch
%%DATADIR%%/modules/lua/ta_api
%%DATADIR%%/modules/lua/ta_tags
%%DATADIR%%/modules/lua/tadoc.lua
%%DATADIR%%/modules/lua/tags
%%DATADIR%%/modules/textadept/bookmarks.lua
%%DATADIR%%/modules/textadept/command_entry.lua
%%DATADIR%%/modules/textadept/editing.lua
%%DATADIR%%/modules/textadept/file_types.lua
%%DATADIR%%/modules/textadept/find.lua
%%DATADIR%%/modules/textadept/init.lua
%%DATADIR%%/modules/textadept/keys.lua
%%DATADIR%%/modules/textadept/macros.lua
%%DATADIR%%/modules/textadept/menu.lua
%%DATADIR%%/modules/textadept/run.lua
%%DATADIR%%/modules/textadept/session.lua
%%DATADIR%%/modules/textadept/snippets.lua
%%DATADIR%%/textadept
%%DATADIR%%/themes/dark.lua
%%DATADIR%%/themes/light.lua
%%DATADIR%%/themes/term.lua