diff --git a/editors/sciteco/Makefile b/editors/sciteco/Makefile index 3ca31829235f..65e87ae26474 100644 --- a/editors/sciteco/Makefile +++ b/editors/sciteco/Makefile @@ -1,92 +1,98 @@ PORTNAME= sciteco -DISTVERSION= 2.2.0 +DISTVERSION= 2.5.2 CATEGORIES= editors textproc devel -MASTER_SITES= https://github.com/rhaberkorn/${PORTNAME}/releases/download/v${DISTVERSION}/ \ +MASTER_SITES= https://sciteco.fmsbw.de/downloads/v${DISTVERSION}/ \ SOURCEFORGE/${PORTNAME}/v${DISTVERSION}/ -MAINTAINER= robin.haberkorn@googlemail.com +MAINTAINER= rhaberkorn@fmsbw.de COMMENT= Scintilla-based Text Editor and Corrector -WWW= https://rhaberkorn.github.io/sciteco/ +WWW= https://sciteco.fmsbw.de/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING FLAVORS= curses gtk FLAVOR?= ${FLAVORS:[1]} curses_PKGNAMESUFFIX= -curses gtk_PKGNAMESUFFIX= -gtk # As SciTECO uses itself during the build process, # it makes sense to compile it running under a dummy XServer. # This is both faster and works in headless environments as well. gtk_BUILD_DEPENDS= mcookie:sysutils/util-linux \ xauth:x11/xauth \ Xvfb:x11-servers/xorg-server@xvfb USES= compiler:c11 gmake gnome groff pkgconfig USE_GNOME= glib20 GNU_CONFIGURE= yes CONFIGURE_ARGS= CONFIGURE_OUTSOURCE= yes MAKEFILE= GNUmakefile TEST_TARGET= check # NOTE: Unlike on Debian, we cannot build a sciteco-common package. # FreeBSD does not yet support subpackages. # Therefore both flavors will install totally independant # (partially redundant) files. .if ${FLAVOR} == gtk DATADIR= ${PREFIX}/share/gsciteco .endif SUB_FILES= pkg-message .if ${FLAVOR} == curses USES+= ncurses CONFIGURE_ARGS+= --with-interface=ncurses PLIST_SUB+= GTK="@comment " \ PROGRAM_PREFIX="" .elif ${FLAVOR} == gtk USES+= desktop-file-utils # FIXME: To appease QA checks, we would have to # USE_GNOME+=cairo gdkpixbuf and # gtk_LIB_DEPENDS+=libharfbuzz.so:print/harfbuzz USE_GNOME+= gtk30 CONFIGURE_ARGS+= --program-prefix=g \ --with-interface=gtk \ --with-scitecodatadir="${DATADIR}" PLIST_SUB+= GTK="" \ PROGRAM_PREFIX=g .endif -OPTIONS_DEFINE= LEXILLA MALLOC_REPLACEMENT TECO_INTEGER_32 -OPTIONS_DEFAULT= LEXILLA +OPTIONS_DEFINE= LEXILLA MALLOC_REPLACEMENT TECO_INTEGER_32 LTO +OPTIONS_DEFAULT= LEXILLA MALLOC_REPLACEMENT OPTIONS_SUB= yes LEXILLA_DESC= Build with Lexilla lexer support (larger) -MALLOC_REPLACEMENT_DESC= Force replacement of system malloc() +MALLOC_REPLACEMENT_DESC= Replace system malloc() for memory limiting TECO_INTEGER_32_DESC= Use 32-bit TECO integers +LTO_DESC= Apply Link-Time Optimizations (significantly faster) LEXILLA_CONFIGURE_OFF= --without-lexilla MALLOC_REPLACEMENT_CONFIGURE_ON= --enable-malloc-replacement TECO_INTEGER_32_CONFIGURE_ON= --with-teco-integer=32 +# Once we support an --enable-lto site-config-option, we should rather use that. +LTO_CFLAGS= -flto=thin +LTO_CXXFLAGS= -flto=thin +LTO_LDFLAGS= -flto=thin + .include .if ${FLAVOR} == gtk MAKE_CMD= ${SH} ${FILESDIR}/xvfb-run.sh ${GMAKE} .endif post-install: .for SZ in 16 32 48 256 ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps ${INSTALL_DATA} ${WRKSRC}/ico/sciteco-${SZ}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/sciteco.png .endfor ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/src/sciteco.desktop \ ${STAGEDIR}${PREFIX}/share/applications/sciteco.desktop .include diff --git a/editors/sciteco/distinfo b/editors/sciteco/distinfo index f0688b473d78..9396b55ef41f 100644 --- a/editors/sciteco/distinfo +++ b/editors/sciteco/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1733772734 -SHA256 (sciteco-2.2.0.tar.gz) = 57ad450623761b76ee8742686db9dd9aae9c1436944e982c36dd368dbbf82020 -SIZE (sciteco-2.2.0.tar.gz) = 3989774 +TIMESTAMP = 1776638070 +SHA256 (sciteco-2.5.2.tar.gz) = 94149fa3371e3adff723ae933502b5983804c4e06a681c6d00b0af19c439a978 +SIZE (sciteco-2.5.2.tar.gz) = 4113973 diff --git a/editors/sciteco/files/pkg-message.in b/editors/sciteco/files/pkg-message.in index b91ee0683782..7d95cdb92827 100644 --- a/editors/sciteco/files/pkg-message.in +++ b/editors/sciteco/files/pkg-message.in @@ -1,9 +1,9 @@ [ { type: install message: <