Commit d1586efe authored by Rene Ladan's avatar Rene Ladan
Browse files

lang/spidermonkey78: Remove expired port

2025-12-31 lang/spidermonkey78: Legacy version
parent f95d5860
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4991,3 +4991,4 @@ www/moodle44||2025-12-31|Has expired: Upstream EOL
www/angie-module-rtmp||2025-12-31|Has expired: Upstream development has slowed down and there are a lot of unresolved issues and PRs upstream, consider migrating to multimedia/mediamtx
www/mediawiki139||2025-12-31|Has expired: Upstream EOL
www/forgejo7||2025-12-31|Has expired: Obsolete, please switch to www/forgejo-lts
lang/spidermonkey78||2025-12-31|Has expired: Legacy version
+0 −1
Original line number Diff line number Diff line
@@ -371,7 +371,6 @@
    SUBDIR += spidermonkey115
    SUBDIR += spidermonkey128
    SUBDIR += spidermonkey140
    SUBDIR += spidermonkey78
    SUBDIR += squeak
    SUBDIR += squirrel
    SUBDIR += starlark-rust

lang/spidermonkey78/Makefile

deleted100644 → 0
+0 −87
Original line number Diff line number Diff line
PORTNAME=	spidermonkey
DISTVERSION=	78.15.0
PORTREVISION=	39
CATEGORIES=	lang
MASTER_SITES=	MOZILLA/firefox/releases/${DISTVERSION}esr/source
PKGNAMESUFFIX=	${SP_VER}
DISTNAME=	firefox-${DISTVERSION}esr.source

PATCH_SITES=	https://hg.mozilla.org/mozilla-central/raw-rev/
PATCHFILES+=	223087fdc29f18678f6174e9807b8780e439acf6:-p1 # https://bugzilla.mozilla.org/1894423
PATCHFILES+=	68ff4d3f7338248b4d67cf03aade5a73f8d396b2:-p1 # https://bugzilla.mozilla.org/1849070

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Standalone JavaScript based from Mozilla 78-esr
WWW=		https://spidermonkey.dev/

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=	Legacy version
EXPIRATION_DATE=	2025-12-31

BUILD_DEPENDS=	${RUST_DEFAULT}>=1.35:lang/${RUST_DEFAULT} \
		autoconf2.13:devel/autoconf2.13 \
		rust-cbindgen>=0.8.7:devel/rust-cbindgen
LIB_DEPENDS=	libffi.so:devel/libffi \
		libicudata.so:devel/icu \
		libnspr4.so:devel/nspr

USES=		compiler:c++17-lang gmake localbase pathfix pkgconfig python:build \
		readline tar:xz
USE_LDCONFIG=	yes
SP_VER=		78
HAS_CONFIGURE=	yes

CONFIGURE_OUTSOURCE=	yes
WRKSRC=			${WRKDIR}/firefox-${DISTVERSION}
PATCH_WRKSRC=		${WRKDIR}/firefox-${DISTVERSION}/

CONFIGURE_ARGS=	--enable-application=js \
		--disable-debug \
		--disable-debug-symbols \
		--disable-gold \
		--disable-jemalloc \
		--disable-tests \
		--enable-optimize \
		--enable-readline \
		--enable-shared-js \
		--prefix=${PREFIX:Q} \
		--target=${CONFIGURE_TARGET} \
		--with-intl-api \
		--with-system-icu \
		--with-system-nspr \
		--with-system-zlib

CONFIGURE_ENV=	HOST_CC=${CC} \
		HOST_CXX=${CXX}

BINARY_ALIAS=	python3=${PYTHON_CMD}
PLIST_SUB=	SP_VER=${SP_VER}

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
.endif

.if ${CHOSEN_COMPILER_TYPE} == gcc
CONFIGURE_ENV+=	LLVM_CONFIG=llvm-config${LLVM_DEFAULT} \
		LLVM_OBJDUMP=llvm-objdump${LLVM_DEFAULT}
BUILD_DEPENDS+=	${LOCALBASE}/bin/llvm-objdump${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
USE_GCC=	yes
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/js/moz.configure
	@${REINPLACE_CMD} -e 's|icu-i18n|icu-uc icu-i18n|g' ${WRKSRC}/js/moz.configure
	@${FIND} ${WRKSRC}/build/pymake ${WRKSRC}/python/mozbuild -name *.py -exec \
		${REINPLACE_CMD} "s|'rU'|'r'|g" {} \;

post-install:
	${RM} ${STAGEDIR}${PREFIX}/lib/libjs_static.ajs
	${LN} -fs libmozjs-${SP_VER}.so ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.so.1
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/js${SP_VER}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmozjs-${SP_VER}.*

.include <bsd.port.post.mk>

lang/spidermonkey78/distinfo

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
TIMESTAMP = 1732978996
SHA256 (firefox-78.15.0esr.source.tar.xz) = a4438d84d95171a6d4fea9c9f02c2edbf0475a9c614d968ebe2eedc25a672151
SIZE (firefox-78.15.0esr.source.tar.xz) = 330819568
SHA256 (223087fdc29f18678f6174e9807b8780e439acf6) = f234371584e2b2bc9953ae4fd145da19c99a6f04087f53d59616aecf29df039c
SIZE (223087fdc29f18678f6174e9807b8780e439acf6) = 1597
SHA256 (68ff4d3f7338248b4d67cf03aade5a73f8d396b2) = 8d556dcb0d3a76a6cb8870b6eff45fafe0a78760ea24d34ea0b5e7ceb4489a71
SIZE (68ff4d3f7338248b4d67cf03aade5a73f8d396b2) = 2546
+0 −11
Original line number Diff line number Diff line
--- build/moz.configure/flags.configure.orig	2023-06-24 10:37:11 UTC
+++ build/moz.configure/flags.configure
@@ -56,7 +56,7 @@ def new_pass_manager_flags(enabled, compiler, host, ta
         # Temporary until https://bugs.llvm.org/show_bug.cgi?id=45835 gets a
         # real fix: clang 10 hangs with some ubsan-inserted code constructs.
         return None
-    if enabled and compiler.version >= '9.0.0':
+    if enabled and compiler.version >= '9.0.0' and compiler.version < '16.0.0':
         if compiler.type == 'clang':
             return ['-fexperimental-new-pass-manager']
         elif compiler.type == 'clang-cl':
Loading