svn commit: r495797 - in head/lang/mujs: . files

Yuri Victorovich yuri at FreeBSD.org
Fri Mar 15 16:50:55 UTC 2019


Author: yuri
Date: Fri Mar 15 16:50:53 2019
New Revision: 495797
URL: https://svnweb.freebsd.org/changeset/ports/495797

Log:
  lang/mujs: Update 1.0.5-10 -> 1.0.5-21
  
  Port changes:
  * Add the pull request patch enabling readline in FreeBSD
  * WITH_DEBUG triggers build=debug - the project manages its build options itself
  * Rm the post-install patch - the .pc issue has been fixed
  * Add FreeBSD-related patches eliminating build warnings, build using -O3 instead of -Os

Added:
  head/lang/mujs/files/
  head/lang/mujs/files/patch-Makefile   (contents, props changed)
Modified:
  head/lang/mujs/Makefile
  head/lang/mujs/distinfo

Modified: head/lang/mujs/Makefile
==============================================================================
--- head/lang/mujs/Makefile	Fri Mar 15 16:42:31 2019	(r495796)
+++ head/lang/mujs/Makefile	Fri Mar 15 16:50:53 2019	(r495797)
@@ -1,29 +1,33 @@
 # $FreeBSD$
 
 PORTNAME=	mujs
-DISTVERSION=	1.0.5-10
-DISTVERSIONSUFFIX=	-g9f40dfb
+DISTVERSION=	1.0.5-21
+DISTVERSIONSUFFIX=	-g269904f
 CATEGORIES=	lang devel
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
+PATCHFILES=	d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch:-p1
+
 MAINTAINER=	yuri at FreeBSD.org
 COMMENT=	Embeddable Javascript interpreter in C
 
 LICENSE=	ISCL
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		compiler:c11 gmake localbase:ldflags readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code
+USES=		compiler:c11 gmake readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code
 USE_GITHUB=	yes
 GH_ACCOUNT=	ccxvii
 USE_LDCONFIG=	yes
 ALL_TARGET=	shared
 INSTALL_TARGET=	install-shared
 
+.if defined(WITH_DEBUG) # this project manages its build options itself
+MAKE_ARGS=	build=debug
+.endif
+
 PLIST_FILES=	bin/mujs \
 		include/mujs.h \
 		lib/libmujs.so \
 		libdata/pkgconfig/mujs.pc
-
-post-install: # https://github.com/ccxvii/mujs/issues/83
-	@${REINPLACE_CMD} -i '' 's|${STAGEDIR}||' ${STAGEDIR}${PREFIX}/libdata/pkgconfig/mujs.pc
 
 .include <bsd.port.mk>

Modified: head/lang/mujs/distinfo
==============================================================================
--- head/lang/mujs/distinfo	Fri Mar 15 16:42:31 2019	(r495796)
+++ head/lang/mujs/distinfo	Fri Mar 15 16:50:53 2019	(r495797)
@@ -1,3 +1,5 @@
-TIMESTAMP = 1550977747
-SHA256 (ccxvii-mujs-1.0.5-10-g9f40dfb_GH0.tar.gz) = f4155fca71d62cae48f0eb0a6091889bb67835b1ecbc8c90105470b55d88fe37
-SIZE (ccxvii-mujs-1.0.5-10-g9f40dfb_GH0.tar.gz) = 119479
+TIMESTAMP = 1552667764
+SHA256 (ccxvii-mujs-1.0.5-21-g269904f_GH0.tar.gz) = 6a81cc6a323b8a7595d87d16814160deef5f5c5e6ce7e20cd2720f31514f3422
+SIZE (ccxvii-mujs-1.0.5-21-g269904f_GH0.tar.gz) = 119947
+SHA256 (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = de236ceb1d7df002bf0930ff31f07f58260e0faf780edef72f05d478185cb279
+SIZE (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = 589

Added: head/lang/mujs/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/mujs/files/patch-Makefile	Fri Mar 15 16:50:53 2019	(r495797)
@@ -0,0 +1,21 @@
+--- Makefile.orig	2019-03-15 16:38:36 UTC
++++ Makefile
+@@ -15,7 +15,8 @@ endif
+ 
+ # Compiler flags for various configurations:
+ 
+-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
++# change to c11 on FreeBSD because FreeBSD headers induce c11 through isnan(3), etc.
++CFLAGS := -std=c11 -pedantic -Wall -Wextra -Wno-unused-parameter
+ 
+ ifeq "$(CC)" "clang"
+   CFLAGS += -Wunreachable-code
+@@ -31,7 +32,7 @@ else ifeq "$(build)" "sanitize"
+   CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
+   LDFLAGS += -fsanitize=address
+ else
+-  CFLAGS += -Os
++  CFLAGS += -O3 # use -O3 on FreeBSD instead of -Os because this isn't an embedded platform
+   LDFLAGS += -Wl,-s
+ endif
+ 


More information about the svn-ports-all mailing list