diff --git a/lang/mujs/Makefile b/lang/mujs/Makefile index ce29f41e0d51..4fd1c43a9401 100644 --- a/lang/mujs/Makefile +++ b/lang/mujs/Makefile @@ -1,91 +1,88 @@ PORTNAME= mujs -DISTVERSION= 1.3.8 -PORTREVISION= 1 +DISTVERSION= 1.3.9 CATEGORIES= lang devel -MASTER_SITES= https://codeberg.org/ccxvii/mujs/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ \ +MASTER_SITES= https://mujs.com/downloads/ \ https://www.unicode.org/Public/16.0.0/ucd/:unicode DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} DISTFILES= UnicodeData.txt:unicode \ SpecialCasing.txt:unicode \ ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= yuri@FreeBSD.org COMMENT= Embeddable Javascript interpreter in C WWW= https://mujs.com/ \ https://github.com/ccxvii/mujs \ https://codeberg.org/ccxvii/mujs LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= curl:ftp/curl TEST_DEPENDS= git:devel/git USES= compiler:c11 cpe gmake python:build readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code USE_LDCONFIG= yes CPE_VENDOR= artifex -WRKSRC= ${WRKDIR}/${PORTNAME} - LDFLAGS= -Wl,-soname=libmujs.so ALL_TARGET= build/release/mujs \ build/release/libmujs.so \ build/release/libmujs.a INSTALL_TARGET= install-shared install-static .if defined(WITH_DEBUG) # this project manages its build options itself MAKE_ARGS= build=debug .endif BINARY_ALIAS= python3=${PYTHON_CMD} PLIST_FILES= bin/mujs \ bin/mujs-pp \ include/mujs.h \ lib/libmujs.so \ lib/libmujs.a \ libdata/pkgconfig/mujs.pc OPTIONS_DEFINE= 32BIT SANITIZED OPTIONS_DEFAULT= 32BIT 32BIT_DESC= 32-bit address space to allow for larger programs 32BIT_MAKE_ARGS= XCFLAGS="-DJS_INSTRUCTION=int" SANITIZED_DESC= Sanitized build (only for debugging) SANITIZED_MAKE_ARGS= build=sanitize post-patch: ${REINPLACE_CMD} -e 's|https://www.unicode.org/Public/16.0.0/ucd/|file://${DISTDIR}/${DIST_SUBDIR}/|g' \ ${WRKSRC}/Makefile ${REINPLACE_CMD} -e 's| VERSION = .*| VERSION = ${DISTVERSION}|' ${WRKSRC}/Makefile post-install: @${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/bin/mujs \ ${STAGEDIR}${PREFIX}/bin/mujs-pp \ ${STAGEDIR}${PREFIX}/lib/libmujs.so do-test: # Test-262 JavaScript testsuite is downloaded and run. # Something is off with the test harness so too many tests fail: https://github.com/ccxvii/mujs/issues/147 ${RM} -r ${WRKDIR}/testing && \ ${MKDIR} -p ${WRKDIR}/testing && \ cd ${WRKDIR}/testing && \ git clone https://github.com/tc39/test262.git && \ fetch https://github.com/ccxvii/mujs/files/2332077/mujs-test262-harness-and-output.zip && \ unzip mujs-test262-harness-and-output.zip && \ (${TAIL} -3 mujs-harness-out.txt > mujs-harness-out-3.txt) && \ cd test262 && \ git checkout es5-tests && \ ${ECHO} "Running MuJS tests ..." && \ (${FIND} test/suite -name '*.js' | ${STAGEDIR}${PREFIX}/bin/mujs ../mujs-harness.js > mujs-harness-out-our.txt) && \ ${ECHO} "MuJS tests finished: " && \ (${TAIL} -3 mujs-harness-out-our.txt | tee mujs-harness-out-our-3.txt) && \ ${ECHO} "" && \ ${ECHO} "Compare with reference results:" && \ ${DIFF} ../mujs-harness-out-3.txt mujs-harness-out-our-3.txt .include diff --git a/lang/mujs/distinfo b/lang/mujs/distinfo index eb6823e09b3a..0a63e7f19fb4 100644 --- a/lang/mujs/distinfo +++ b/lang/mujs/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1764086141 -SHA256 (mujs-1.3.8/UnicodeData.txt) = ff58e5823bd095166564a006e47d111130813dcf8bf234ef79fa51a870edb48f -SIZE (mujs-1.3.8/UnicodeData.txt) = 2175362 -SHA256 (mujs-1.3.8/SpecialCasing.txt) = 8d5de354eef79f2395a54c9c7dcebbaf3d30fc962d0f85611ea97aa973a0c451 -SIZE (mujs-1.3.8/SpecialCasing.txt) = 16809 -SHA256 (mujs-1.3.8/mujs-1.3.8.tar.gz) = 10e8548033924ada0828a821777371861ea3e127d472e8423ad87426118291d9 -SIZE (mujs-1.3.8/mujs-1.3.8.tar.gz) = 130318 +TIMESTAMP = 1775984594 +SHA256 (mujs-1.3.9/UnicodeData.txt) = ff58e5823bd095166564a006e47d111130813dcf8bf234ef79fa51a870edb48f +SIZE (mujs-1.3.9/UnicodeData.txt) = 2175362 +SHA256 (mujs-1.3.9/SpecialCasing.txt) = 8d5de354eef79f2395a54c9c7dcebbaf3d30fc962d0f85611ea97aa973a0c451 +SIZE (mujs-1.3.9/SpecialCasing.txt) = 16809 +SHA256 (mujs-1.3.9/mujs-1.3.9.tar.gz) = 956d5a20dd4efe5aa58673558787b9e2539255f9bf62585e90e1921fa040d89d +SIZE (mujs-1.3.9/mujs-1.3.9.tar.gz) = 454317