diff options
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/Makefile | 70 | ||||
-rw-r--r-- | freebsd/distinfo | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | freebsd/files/xvfb-run.sh (renamed from freebsd/scripts/xvfb-run.sh) | 0 | ||||
-rw-r--r-- | freebsd/pkg-plist | 4 |
4 files changed, 45 insertions, 35 deletions
diff --git a/freebsd/Makefile b/freebsd/Makefile index 8de1173..d8b7924 100644 --- a/freebsd/Makefile +++ b/freebsd/Makefile @@ -1,5 +1,5 @@ PORTNAME= sciteco -DISTVERSION= 2.1.1 +DISTVERSION= 2.3.0 CATEGORIES= editors textproc devel MASTER_SITES= https://github.com/rhaberkorn/${PORTNAME}/releases/download/v${DISTVERSION}/ \ SOURCEFORGE/${PORTNAME}/v${DISTVERSION}/ @@ -11,27 +11,32 @@ WWW= https://rhaberkorn.github.io/sciteco/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -FLAVORS= curses gtk -FLAVOR?= ${FLAVORS:[1]} -curses_PKGNAMESUFFIX=-curses -gtk_PKGNAMESUFFIX=-gtk +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=Xvfb:x11-servers/xorg-server@xvfb \ - xauth:x11/xauth mcookie:devel/util-linux +gtk_BUILD_DEPENDS= mcookie:devel/util-linux \ + xauth:x11/xauth \ + Xvfb:x11-servers/xorg-server@xvfb -USES= gmake pkgconfig compiler:c11 compiler:c++17-lang gnome groff +USES= compiler:c11 gmake gnome groff pkgconfig USE_GNOME= glib20 -GNU_CONFIGURE= yes +GNU_CONFIGURE= yes CONFIGURE_ARGS= -CONFIGURE_OUTSOURCE=yes +CONFIGURE_OUTSOURCE= yes MAKEFILE= GNUmakefile TEST_TARGET= check +# SciTECO uses an install-exec-hook to fix up hash-bang lines. +# This is broken by the default 0555 mode. +BINMODE= 755 + # NOTE: Unlike on Debian, we cannot build a sciteco-common package. # FreeBSD does not yet support subpackages. # Therefore both flavors will install totally independant @@ -43,38 +48,41 @@ DATADIR= ${PREFIX}/share/gsciteco SUB_FILES= pkg-message .if ${FLAVOR} == curses -USES+= ncurses -CONFIGURE_ARGS+=--with-interface=ncurses -PLIST_SUB+= GTK="@comment " PROGRAM_PREFIX="" +USES+= ncurses +CONFIGURE_ARGS+= --with-interface=ncurses +PLIST_SUB+= GTK="@comment " \ + PROGRAM_PREFIX="" .elif ${FLAVOR} == gtk -USES+= desktop-file-utils +USES+= desktop-file-utils # FIXME: To appease QA checks, we would have to # USE_GNOME+=cairo gdkpixbuf2 and # gtk_LIB_DEPENDS+=libharfbuzz.so:print/harfbuzz -USE_GNOME+= gtk30 -CONFIGURE_ARGS+=--with-interface=gtk --program-prefix=g \ - --with-scitecodatadir="${DATADIR}" -PLIST_SUB+= GTK="" PROGRAM_PREFIX=g +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_SUB= yes +OPTIONS_DEFINE= LEXILLA MALLOC_REPLACEMENT TECO_INTEGER_32 +OPTIONS_DEFAULT= LEXILLA +OPTIONS_SUB= yes + +LEXILLA_DESC= Build with Lexilla lexer support (larger) +MALLOC_REPLACEMENT_DESC= Force replacement of system malloc() +TECO_INTEGER_32_DESC= Use 32-bit TECO integers -LEXILLA_DESC=Build with Lexilla lexer support (larger) -MALLOC_REPLACEMENT_DESC=Force replacement of system malloc() -TECO_INTEGER_32_DESC=Use 32-bit TECO integers +LEXILLA_CONFIGURE_OFF= --without-lexilla +MALLOC_REPLACEMENT_CONFIGURE_ON= --enable-malloc-replacement +TECO_INTEGER_32_CONFIGURE_ON= --with-teco-integer=32 -LEXILLA_CONFIGURE_OFF=--without-lexilla -MALLOC_REPLACEMENT_CONFIGURE_ON=--enable-malloc-replacement -TECO_INTEGER_32_CONFIGURE_ON=--with-teco-integer=32 +WITH_LTO= yes .include <bsd.port.pre.mk> .if ${FLAVOR} == gtk -# Run under Xvfb (see above). -# This is done only now, since USES=gmake would overwrite MAKE_CMD. -MAKE_CMD="${SCRIPTDIR}/xvfb-run.sh" ${GMAKE} +MAKE_CMD= ${SH} ${FILESDIR}/xvfb-run.sh ${GMAKE} .endif post-install: @@ -83,8 +91,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/ico/sciteco-${SZ}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/sciteco.png .endfor - # To appease `make check-plist`: - ${RM} ${STAGEDIR}${DATADIR}/*.png ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/src/sciteco.desktop \ ${STAGEDIR}${PREFIX}/share/applications/sciteco.desktop diff --git a/freebsd/distinfo b/freebsd/distinfo index 76b2d07..9da3f9c 100644 --- a/freebsd/distinfo +++ b/freebsd/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1731881990 -SHA256 (sciteco-2.1.1.tar.gz) = 5f7f55b2d46f11f73cd122e821daccdfdba9f804473df6213e5f0982bf245c2e -SIZE (sciteco-2.1.1.tar.gz) = 3983183 +TIMESTAMP = 1735085085 +SHA256 (sciteco-2.3.0.tar.gz) = f131cd88164bd4ee271813a7c6f448b9987ddb54ca6f39328beb979fba3e56a2 +SIZE (sciteco-2.3.0.tar.gz) = 4005903 diff --git a/freebsd/scripts/xvfb-run.sh b/freebsd/files/xvfb-run.sh index b4fd5a0..b4fd5a0 100755..100644 --- a/freebsd/scripts/xvfb-run.sh +++ b/freebsd/files/xvfb-run.sh diff --git a/freebsd/pkg-plist b/freebsd/pkg-plist index 5539757..c129643 100644 --- a/freebsd/pkg-plist +++ b/freebsd/pkg-plist @@ -73,6 +73,7 @@ share/man/man7/%%PROGRAM_PREFIX%%sciteco.7.gz %%LEXILLA%%%%DATADIR%%/lib/lexers/rebol.tes %%LEXILLA%%%%DATADIR%%/lib/lexers/rust.tes %%LEXILLA%%%%DATADIR%%/lib/lexers/scheme.tes +%%LEXILLA%%%%DATADIR%%/lib/lexers/sciteco.tes %%LEXILLA%%%%DATADIR%%/lib/lexers/specman.tes %%LEXILLA%%%%DATADIR%%/lib/lexers/spice.tes %%LEXILLA%%%%DATADIR%%/lib/lexers/swift.tes @@ -102,6 +103,9 @@ share/man/man7/%%PROGRAM_PREFIX%%sciteco.7.gz %%DATADIR%%/lib/women/tedoc.tes.1.woman.tec %%DATADIR%%/sample.teco_ini %%DATADIR%%/sciteco.tmac +%%GTK%%%%DATADIR%%/sciteco-16.png +%%GTK%%%%DATADIR%%/sciteco-32.png +%%GTK%%%%DATADIR%%/sciteco-48.png %%GTK%%%%DATADIR%%/fallback.css %%GTK%%share/icons/hicolor/16x16/apps/sciteco.png %%GTK%%share/icons/hicolor/32x32/apps/sciteco.png |