From owner-svn-ports-all@freebsd.org Wed Feb 6 05:46:56 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FCB114B78C1; Wed, 6 Feb 2019 05:46:56 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C712885309; Wed, 6 Feb 2019 05:46:55 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BB68C1033; Wed, 6 Feb 2019 05:46:55 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x165ktx8015233; Wed, 6 Feb 2019 05:46:55 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x165ktXh015228; Wed, 6 Feb 2019 05:46:55 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201902060546.x165ktXh015228@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 6 Feb 2019 05:46:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492286 - in head/lang/mujs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/lang/mujs: . files X-SVN-Commit-Revision: 492286 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C712885309 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2019 05:46:56 -0000 Author: yuri Date: Wed Feb 6 05:46:55 2019 New Revision: 492286 URL: https://svnweb.freebsd.org/changeset/ports/492286 Log: lang/mujs: Enable readline; pass build flags to the build Modified: head/lang/mujs/Makefile head/lang/mujs/files/patch-Makefile Modified: head/lang/mujs/Makefile ============================================================================== --- head/lang/mujs/Makefile Wed Feb 6 01:18:48 2019 (r492285) +++ head/lang/mujs/Makefile Wed Feb 6 05:46:55 2019 (r492286) @@ -2,6 +2,7 @@ PORTNAME= mujs DISTVERSION= 1.0.5 +PORTREVISION= 1 CATEGORIES= lang devel MAINTAINER= yuri@FreeBSD.org @@ -10,7 +11,7 @@ COMMENT= Embeddable Javascript interpreter in C LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake +USES= gmake localbase:ldflags readline USE_GITHUB= yes GH_ACCOUNT= ccxvii USE_LDCONFIG= yes Modified: head/lang/mujs/files/patch-Makefile ============================================================================== --- head/lang/mujs/files/patch-Makefile Wed Feb 6 01:18:48 2019 (r492285) +++ head/lang/mujs/files/patch-Makefile Wed Feb 6 05:46:55 2019 (r492286) @@ -1,6 +1,36 @@ ---- Makefile.orig 2018-07-30 13:35:39 UTC +--- Makefile.orig 2018-09-11 10:47:31 UTC +++ Makefile -@@ -49,9 +49,9 @@ OUT := build/$(build) +@@ -15,7 +15,7 @@ endif + + # Compiler flags for various configurations: + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code +@@ -24,14 +24,17 @@ endif + ifeq "$(shell uname)" "Linux" + HAVE_READLINE := yes + endif ++ifeq "$(shell uname)" "FreeBSD" ++ HAVE_READLINE := yes ++endif + + ifeq "$(build)" "debug" +- CFLAGS += -g ++ #CFLAGS += -g + else ifeq "$(build)" "sanitize" +- CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer ++ CFLAGS += -pipe -fsanitize=address -fno-omit-frame-pointer + LDFLAGS += -fsanitize=address + else +- CFLAGS += -Os ++ #CFLAGS += -Os + LDFLAGS += -Wl,-s + endif + +@@ -49,9 +52,9 @@ OUT := build/$(build) SRCS := $(wildcard js*.c utf*.c regexp.c) HDRS := $(wildcard js*.h mujs.h utf.h regexp.h) @@ -12,7 +42,7 @@ astnames.h: jsparse.h grep -E '(AST|EXP|STM)_' jsparse.h | sed 's/^[^A-Z]*\(AST_\)*/"/;s/,.*/",/' | tr A-Z a-z > $@ -@@ -115,7 +115,7 @@ install-static: install-common +@@ -115,7 +118,7 @@ install-static: install-common install-shared: install-common install -m 755 build/release/libmujs.so $(DESTDIR)$(libdir)