mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
x11-toolkits/scintilla: Update to 5.5.0
Also update at the same time editors/scite to keep them in sync. PR: 279995
This commit is contained in:
parent
500454bf5e
commit
25371002ab
@ -1,8 +1,7 @@
|
||||
PORTNAME= scite
|
||||
DISTVERSION= 4.4.5
|
||||
PORTREVISION= 3
|
||||
DISTVERSION= 5.5.0
|
||||
CATEGORIES= editors gnome
|
||||
MASTER_SITES= SF/scintilla/SciTE/${PORTVERSION}
|
||||
MASTER_SITES= https://www.scintilla.org/
|
||||
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
||||
|
||||
MAINTAINER= cyberbotx@cyberbotx.com
|
||||
@ -10,19 +9,16 @@ COMMENT= Full-featured SCIntilla based text editor for GTK/GNOME
|
||||
WWW= https://www.scintilla.org/SciTE.html
|
||||
|
||||
LICENSE= SCINTILLA
|
||||
LICENSE_NAME= License for Scintilla and SciTE
|
||||
LICENSE_NAME= License for Lexilla, Scintilla and SciTE
|
||||
LICENSE_FILE= ${WRKSRC}/../License.txt
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
LIB_DEPENDS= libscintilla.so:x11-toolkits/scintilla
|
||||
LIB_DEPENDS= liblexilla.so:textproc/lexilla \
|
||||
libscintilla.so:x11-toolkits/scintilla
|
||||
RUN_DEPENDS= xdg-open:devel/xdg-utils
|
||||
|
||||
USES= compiler:c++17-lang desktop-file-utils gmake gnome pkgconfig tar:tgz
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
||||
USES= compiler:c++20-lang desktop-file-utils gmake gnome pkgconfig \
|
||||
tar:tgz
|
||||
|
||||
USE_GNOME= cairo gdkpixbuf2 gtk30
|
||||
MAKEFILE= makefile
|
||||
@ -31,9 +27,14 @@ MAKE_ARGS= GTK3=1
|
||||
MAKE_ARGS+= DEBUG=1
|
||||
.endif
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
||||
|
||||
PORTDATA= *.properties
|
||||
PORTDOCS= *.html *.jpg *.png
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${CHOSEN_COMPILER_TYPE} == clang
|
||||
@ -45,12 +46,18 @@ post-patch:
|
||||
${WRKSRC}/../src/SciTEGlobal.properties
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/../bin/SciTE \
|
||||
${STAGEDIR}${PREFIX}/bin
|
||||
${LN} -sf SciTE ${STAGEDIR}${PREFIX}/bin/scite
|
||||
${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/SciTE.desktop ${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKSRC}/Sci48M.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
||||
(cd ${WRKSRC}/../src && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
|
||||
(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
||||
${INSTALL_MAN} ${WRKSRC}/../doc/scite.1 \
|
||||
${STAGEDIR}${PREFIX}/share/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/SciTE.desktop \
|
||||
${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKSRC}/Sci48M.png \
|
||||
${STAGEDIR}${PREFIX}/share/pixmaps
|
||||
(cd ${WRKSRC}/../src && \
|
||||
${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR})
|
||||
(cd ${WRKSRC}/../doc && \
|
||||
${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1601836826
|
||||
SHA256 (scite445.tgz) = 9d74bde5e4ee18d767b6add5a6b95d7ffcedbcfd017c3df59e16b0785e3521a1
|
||||
SIZE (scite445.tgz) = 2777899
|
||||
TIMESTAMP = 1719371126
|
||||
SHA256 (scite550.tgz) = f7726a57be521f71c81b4fcc6d171fbf4a62e08c1c1840f5a74e014f3607ee11
|
||||
SIZE (scite550.tgz) = 4784815
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- gtk/makefile.orig 2020-09-11 10:44:44 UTC
|
||||
--- gtk/makefile.orig 2024-03-19 04:36:42 UTC
|
||||
+++ gtk/makefile
|
||||
@@ -18,9 +18,7 @@ ifdef CLANG
|
||||
@@ -19,9 +19,7 @@ SANITIZE = address
|
||||
# thread also need to create Position Independent Executable -> search online documentation
|
||||
SANITIZE = address
|
||||
#SANITIZE = undefined
|
||||
@ -11,23 +11,23 @@
|
||||
WARNINGS += -Wno-deprecated-register
|
||||
WARNINGS += -Wno-empty-body
|
||||
else
|
||||
@@ -59,7 +57,7 @@ COMPLIB=$(SCINTILLA_DIR)/bin/scintilla.a
|
||||
@@ -60,7 +58,7 @@ LEXILLA=$(srcdir)/../bin/liblexilla.$(SHAREDEXTENSION)
|
||||
COMPONENT=$(srcdir)/../bin/libscintilla.$(SHAREDEXTENSION)
|
||||
LEXILLA=$(srcdir)/../bin/liblexilla.$(SHAREDEXTENSION)
|
||||
|
||||
-all: $(PROG) $(COMPONENT) $(LEXILLA)
|
||||
+all: $(PROG)
|
||||
|
||||
vpath %.h $(srcdir) $(srcdir)/../src $(SCINTILLA_DIR)/include
|
||||
vpath %.cxx $(srcdir) $(srcdir)/../src
|
||||
@@ -151,7 +149,9 @@ SRC_OBJS = \
|
||||
vpath %.h $(srcdir) $(srcdir)/../src $(LEXILLA_DIR)/include $(SCINTILLA_DIR)/include
|
||||
vpath %.cxx $(srcdir) $(srcdir)/../src $(srcdir)/../../lexilla/access $(SCINTILLA_DIR)/call
|
||||
@@ -156,7 +154,9 @@ $(PROG): SciTEGTK.o Strips.o GUIGTK.o Widget.o Directo
|
||||
Utf8_16.o
|
||||
|
||||
$(PROG): SciTEGTK.o GUIGTK.o Widget.o DirectorExtension.o $(SRC_OBJS) $(LUA_OBJS)
|
||||
$(PROG): SciTEGTK.o Strips.o GUIGTK.o Widget.o DirectorExtension.o $(SRC_OBJS) $(LUA_OBJS)
|
||||
- $(CXX) $(BASE_FLAGS) $(LDFLAGS) -rdynamic -Wl,--as-needed -Wl,-rpath,'$${ORIGIN}' -Wl,--version-script $(srcdir)/lua.vers -Wl,-rpath,$(libdir) $^ -o $@ $(CONFIGLIB) $(LIBS) -L ../../scintilla/bin -lscintilla $(LDLIBS)
|
||||
+ $(CXX) $(BASE_FLAGS) $(LDFLAGS) -rdynamic \
|
||||
+ -Wl,--version-script $(srcdir)/lua.vers $^ -o $@ -lscintilla \
|
||||
+ -Wl,--as-needed $(CONFIGLIB)
|
||||
+ $(CXX) $(BASE_FLAGS) $(LDFLAGS) -rdynamic -Wl,--undefined-version \
|
||||
+ -Wl,--as-needed -Wl,--version-script $(srcdir)/lua.vers \
|
||||
+ $^ -o $@ $(CONFIGLIB) $(LIBS) -lscintilla -llexilla $(LDLIBS)
|
||||
|
||||
# Automatically generate header dependencies with "make deps"
|
||||
# Automatically generate header dependencies with "make depend"
|
||||
include deps.mak
|
||||
|
@ -1,33 +1,34 @@
|
||||
PORTNAME= scintilla
|
||||
DISTVERSION= 4.4.5
|
||||
PORTREVISION= 2
|
||||
DISTVERSION= 5.5.0
|
||||
CATEGORIES= x11-toolkits
|
||||
MASTER_SITES= SF/scintilla/SciTE/${PORTVERSION}
|
||||
DISTNAME= scite${PORTVERSION:S/.//g}
|
||||
MASTER_SITES= https://www.scintilla.org/
|
||||
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
||||
|
||||
MAINTAINER= cyberbotx@cyberbotx.com
|
||||
COMMENT= Full-featured free source code editing component for GTK
|
||||
WWW= https://www.scintilla.org/
|
||||
|
||||
LICENSE= SCINTILLA
|
||||
LICENSE_NAME= License for Scintilla and SciTE
|
||||
LICENSE_NAME= License for Lexilla, Scintilla and SciTE
|
||||
LICENSE_FILE= ${WRKSRC}/../License.txt
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
USES= compiler:c++17-lang cpe gmake gnome iconv pkgconfig tar:tgz
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
||||
MAKEFILE= makefile
|
||||
USE_LDCONFIG= yes
|
||||
USE_GNOME= cairo gdkpixbuf2 gtk30
|
||||
MAKE_ENV= LDFLAGS="${LDFLAGS}"
|
||||
CFLAGS+= -DPIC -fpic
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
MAKEFILE= makefile
|
||||
MAKE_ARGS= GTK3=1
|
||||
.if defined(WITH_DEBUG)
|
||||
MAKE_ARGS+= DEBUG=1
|
||||
.endif
|
||||
MAKE_ENV= LDFLAGS="${LDFLAGS}"
|
||||
|
||||
CFLAGS+= -DPIC -fpic
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/gtk
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -39,6 +40,7 @@ do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/scintilla
|
||||
${INSTALL_DATA} ${WRKSRC}/../include/*.h \
|
||||
${STAGEDIR}${PREFIX}/include/scintilla
|
||||
${INSTALL_LIB} ${WRKSRC}/../bin/*.so ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_LIB} ${WRKSRC}/../bin/*.so \
|
||||
${STAGEDIR}${PREFIX}/lib
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1601836808
|
||||
SHA256 (scite445.tgz) = 9d74bde5e4ee18d767b6add5a6b95d7ffcedbcfd017c3df59e16b0785e3521a1
|
||||
SIZE (scite445.tgz) = 2777899
|
||||
TIMESTAMP = 1719352619
|
||||
SHA256 (scintilla550.tgz) = e553e95509f01f92aa157fa02d06a712642e13d69a11ec1a02a7ddf22c406231
|
||||
SIZE (scintilla550.tgz) = 1784060
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- gtk/makefile.orig 2020-09-11 10:44:28 UTC
|
||||
--- gtk/makefile.orig 2024-03-19 04:36:37 UTC
|
||||
+++ gtk/makefile
|
||||
@@ -16,8 +16,6 @@ basedir = $(srcdir)/..
|
||||
@@ -16,8 +16,6 @@ ifdef CLANG
|
||||
|
||||
WARNINGS = -Wpedantic -Wall
|
||||
ifdef CLANG
|
||||
@ -9,7 +9,7 @@
|
||||
WARNINGS += -Wno-deprecated-register
|
||||
ifdef windir
|
||||
# Turn off some warnings that occur when Clang is being used on Windows where it
|
||||
@@ -35,7 +33,7 @@ endif
|
||||
@@ -34,7 +32,7 @@ SANITIZE = address
|
||||
# thread also need to create Position Independent Executable -> search online documentation
|
||||
SANITIZE = address
|
||||
#SANITIZE = undefined
|
||||
@ -18,22 +18,22 @@
|
||||
endif
|
||||
ARFLAGS = rc
|
||||
RANLIB ?= ranlib
|
||||
@@ -69,7 +67,8 @@ DEL = rm -f
|
||||
LEXILLA = liblexilla.so
|
||||
@@ -68,7 +66,8 @@ COMPLIB=$(basedir)/bin/scintilla.a
|
||||
DEL = rm -f
|
||||
endif
|
||||
COMPLIB=$(basedir)/bin/scintilla.a
|
||||
-COMPONENT=$(basedir)/bin/libscintilla.$(SHAREDEXTENSION)
|
||||
+SONAME=libscintilla.$(SHAREDEXTENSION)
|
||||
+COMPONENT=$(basedir)/bin/$(SONAME)
|
||||
|
||||
vpath %.h $(srcdir) $(basedir)/src $(basedir)/include $(basedir)/lexlib
|
||||
vpath %.h $(srcdir) $(basedir)/src $(basedir)/include
|
||||
vpath %.c $(srcdir)
|
||||
@@ -185,7 +184,7 @@ $(COMPLIB): $(SRC_OBJS) $(LEXLIBL_OBJS) $(GTK_OBJS) $(
|
||||
@@ -166,7 +165,7 @@ $(COMPONENT): $(SRC_OBJS) $(GTK_OBJS) $(MARSHALLER)
|
||||
$(RANLIB) $@
|
||||
|
||||
$(COMPONENT): $(SRC_OBJS) $(LEXLIBS_OBJS) $(GTK_OBJS) $(MARSHALLER)
|
||||
$(COMPONENT): $(SRC_OBJS) $(GTK_OBJS) $(MARSHALLER)
|
||||
- $(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(CONFIGLIB)
|
||||
+ $(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -Wl,-soname,$(SONAME) -o $@ $(CONFIGLIB)
|
||||
|
||||
Catalogue.o: Catalogue.cxx
|
||||
$(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -D SCI_LEXER -D SCI_EMPTYCATALOGUE -c $< -o $@
|
||||
# Automatically generate header dependencies with "make depend"
|
||||
include deps.mak
|
||||
|
@ -1,33 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Neil Hodgson <nyamatongwe@gmail.com>
|
||||
# Date 1619159850 -36000
|
||||
# Fri Apr 23 16:37:30 2021 +1000
|
||||
# Node ID 790bfd4c0747eb5e0bc4d627a101298207a8421e
|
||||
# Parent bf180d712ff771fe40a2d5dc178fa0a15cf14b2d
|
||||
Remove volatile qualifiers as they cause an error with Clang 12.
|
||||
The glib documentation shows use without volatile and mentions that -
|
||||
While location has a volatile qualifier, this is a historical artifact and
|
||||
the pointer passed to it should not be volatile.
|
||||
https://developer.gnome.org/glib/stable/glib-Threads.html#g-once-init-enter
|
||||
|
||||
diff -r bf180d712ff7 -r 790bfd4c0747 gtk/ScintillaGTKAccessible.cxx
|
||||
--- gtk/ScintillaGTKAccessible.cxx Fri Apr 23 16:05:55 2021 +1000
|
||||
+++ gtk/ScintillaGTKAccessible.cxx Fri Apr 23 16:37:30 2021 +1000
|
||||
@@ -1008,7 +1008,7 @@
|
||||
|
||||
// @p parent_type is only required on GTK 3.2 to 3.6, and only on the first call
|
||||
static GType scintilla_object_accessible_get_type(GType parent_type G_GNUC_UNUSED) {
|
||||
- static volatile gsize type_id_result = 0;
|
||||
+ static gsize type_id_result = 0;
|
||||
|
||||
if (g_once_init_enter(&type_id_result)) {
|
||||
GTypeInfo tinfo = {
|
||||
@@ -1099,7 +1099,7 @@
|
||||
#if HAVE_GTK_A11Y_H // just instantiate the accessible
|
||||
*cache = scintilla_object_accessible_new(0, G_OBJECT(widget));
|
||||
#elif HAVE_GTK_FACTORY // register in the factory and let GTK instantiate
|
||||
- static volatile gsize registered = 0;
|
||||
+ static gsize registered = 0;
|
||||
|
||||
if (g_once_init_enter(®istered)) {
|
||||
// Figure out whether accessibility is enabled by looking at the type of the accessible
|
@ -1,27 +0,0 @@
|
||||
--- lexilla/src/makefile.orig 2020-05-31 23:08:11 UTC
|
||||
+++ lexilla/src/makefile
|
||||
@@ -35,13 +35,13 @@ else
|
||||
BASE_FLAGS += -fvisibility=hidden
|
||||
endif
|
||||
|
||||
-LEXILLA=$(DIR_BIN)/$(SHARED_NAME).$(SHAREDEXTENSION)
|
||||
+SONAME=$(SHARED_NAME).$(SHAREDEXTENSION)
|
||||
+LEXILLA=$(DIR_BIN)/$(SONAME)
|
||||
LIBLEXILLA=$(DIR_BIN)/liblexilla.a
|
||||
|
||||
BASE_FLAGS += --std=c++17
|
||||
|
||||
ifdef CLANG
|
||||
-CXX = clang++
|
||||
ifdef windir
|
||||
# Clang on Win32 uses MSVC headers so will complain about strcpy without this
|
||||
DEFINES += -D_CRT_SECURE_NO_DEPRECATE=1
|
||||
@@ -119,7 +119,7 @@ LEXILLA_OBJS=\
|
||||
$(LEXERS:.cxx=.o)
|
||||
|
||||
$(LEXILLA): $(LEXILLA_OBJS) $(VERSION_RESOURCE)
|
||||
- $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
|
||||
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -Wl,-soname,$(SONAME) -o $@
|
||||
|
||||
$(LIBLEXILLA): $(LEXILLA_OBJS)
|
||||
$(AR) rc $@ $^
|
@ -1,12 +0,0 @@
|
||||
--- src/PositionCache.h.orig 2020-07-18 05:40:22 UTC
|
||||
+++ src/PositionCache.h
|
||||
@@ -187,8 +187,8 @@ class PositionCacheEntry { (public)
|
||||
PositionCacheEntry() noexcept;
|
||||
// Copy constructor not currently used, but needed for being element in std::vector.
|
||||
PositionCacheEntry(const PositionCacheEntry &);
|
||||
+ PositionCacheEntry(PositionCacheEntry &&) noexcept = default;
|
||||
// Deleted so PositionCacheEntry objects can not be assigned.
|
||||
- PositionCacheEntry(PositionCacheEntry &&) = delete;
|
||||
void operator=(const PositionCacheEntry &) = delete;
|
||||
void operator=(PositionCacheEntry &&) = delete;
|
||||
~PositionCacheEntry();
|
@ -1,14 +0,0 @@
|
||||
--- src/Style.cxx.orig 2020-04-23 01:50:17 UTC
|
||||
+++ src/Style.cxx
|
||||
@@ -24,6 +24,11 @@ FontAlias::FontAlias(const FontAlias &other) noexcept
|
||||
SetID(other.fid);
|
||||
}
|
||||
|
||||
+FontAlias::FontAlias(FontAlias &&other) noexcept : Font() {
|
||||
+ SetID(other.fid);
|
||||
+ other.ClearFont();
|
||||
+}
|
||||
+
|
||||
FontAlias::~FontAlias() {
|
||||
SetID(FontID{});
|
||||
// ~Font will not release the actual font resource since it is now 0
|
@ -1,23 +0,0 @@
|
||||
--- src/Style.h.orig 2020-04-23 01:50:17 UTC
|
||||
+++ src/Style.h
|
||||
@@ -33,9 +33,9 @@ struct FontSpecification {
|
||||
class FontAlias : public Font {
|
||||
public:
|
||||
FontAlias() noexcept;
|
||||
- // FontAlias objects can not be assigned except for initialization
|
||||
+ // FontAlias objects can be copy or move constructed but not be assigned
|
||||
FontAlias(const FontAlias &) noexcept;
|
||||
- FontAlias(FontAlias &&) = delete;
|
||||
+ FontAlias(FontAlias &&) noexcept;
|
||||
FontAlias &operator=(const FontAlias &) = delete;
|
||||
FontAlias &operator=(FontAlias &&) = delete;
|
||||
~FontAlias() override;
|
||||
@@ -72,7 +72,7 @@ class Style : public FontSpecification, public FontMea
|
||||
|
||||
Style();
|
||||
Style(const Style &source) noexcept;
|
||||
- Style(Style &&) = delete;
|
||||
+ Style(Style &&) noexcept = default;
|
||||
~Style();
|
||||
Style &operator=(const Style &source) noexcept;
|
||||
Style &operator=(Style &&) = delete;
|
@ -5,5 +5,4 @@ styling, error indicators, code completion and call tips. The selection margin
|
||||
can contain markers like those used in debuggers to indicate breakpoints and the
|
||||
current line. Styling choices are more open than with many editors, allowing the
|
||||
use of proportional fonts, bold and italics, multiple foreground and background
|
||||
colours and multiple fonts. It comes with complete source code and may be used
|
||||
in any free project or commercial product.
|
||||
colours and multiple fonts.
|
||||
|
@ -1,9 +1,10 @@
|
||||
include/scintilla/ILexer.h
|
||||
include/scintilla/ILoader.h
|
||||
include/scintilla/Platform.h
|
||||
include/scintilla/Sci_Position.h
|
||||
include/scintilla/SciLexer.h
|
||||
include/scintilla/Scintilla.h
|
||||
include/scintilla/ScintillaCall.h
|
||||
include/scintilla/ScintillaMessages.h
|
||||
include/scintilla/ScintillaStructures.h
|
||||
include/scintilla/ScintillaTypes.h
|
||||
include/scintilla/ScintillaWidget.h
|
||||
lib/liblexilla.so
|
||||
lib/libscintilla.so
|
||||
|
Loading…
Reference in New Issue
Block a user