FreeBSD Bugzilla – Attachment 218753 Details for
Bug 250359
lang/duktape-lib: Update to 2.6.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for duketape-lib
0001-duktape260lib.patch (text/plain), 5.49 KB, created by
Daniel Engberg
on 2020-10-15 08:13:07 UTC
(
hide
)
Description:
Patch for duketape-lib
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2020-10-15 08:13:07 UTC
Size:
5.49 KB
patch
obsolete
>From b5e0f20122e2fff2e7b469c3c764ee4752acd03c Mon Sep 17 00:00:00 2001 >From: Daniel Engberg <daniel.engberg.lists@pyret.net> >Date: Thu, 15 Oct 2020 09:58:20 +0200 >Subject: [PATCH] duktape260lib > >duktape260lib > >Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> >--- > lang/duktape-lib/Makefile | 20 +++----- > lang/duktape-lib/distinfo | 6 +-- > .../files/patch-Makefile.sharedlibrary | 47 +++++++++++++++++++ > 3 files changed, 57 insertions(+), 16 deletions(-) > create mode 100644 lang/duktape-lib/files/patch-Makefile.sharedlibrary > >diff --git a/lang/duktape-lib/Makefile b/lang/duktape-lib/Makefile >index 5c0884c20539..bb4a95b6d1fc 100644 >--- a/lang/duktape-lib/Makefile >+++ b/lang/duktape-lib/Makefile >@@ -1,7 +1,7 @@ > # $FreeBSD$ > > PORTNAME= duktape >-DISTVERSION= 2.5.0 >+DISTVERSION= 2.6.0 > CATEGORIES= lang devel > MASTER_SITES= https://duktape.org/ > PKGNAMESUFFIX= -lib >@@ -15,28 +15,22 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt > USES= gmake tar:xz > USE_LDCONFIG= yes > >-MAKE_ARGS+= CC=${CC} > MAKEFILE= Makefile.sharedlibrary > >-MAJOR= 205 >-MINOR= 20500 >+MAJOR= 206 >+MINOR= 20600 > > PLIST_FILES= include/duk_config.h \ > include/duktape.h \ > lib/libduktape.so \ > lib/libduktape.so.${MAJOR} \ >- lib/libduktape.so.${MAJOR}.${MINOR} \ >- lib/libduktaped.so \ >- lib/libduktaped.so.${MAJOR} \ >- lib/libduktaped.so.${MAJOR}.${MINOR} >+ lib/libduktape.so.${MAJOR}.${MINOR} > > do-install: > ${INSTALL_DATA} ${WRKSRC}/src/duktape.h ${STAGEDIR}${PREFIX}/include > ${INSTALL_DATA} ${WRKSRC}/src/duk_config.h ${STAGEDIR}${PREFIX}/include >-.for l in libduktape.so libduktaped.so >- ${INSTALL_LIB} ${WRKSRC}/${l}.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib >- ${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/${l} >- ${RLN} ${STAGEDIR}${PREFIX}/lib/${l}.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/${l}.${MAJOR} >-.endfor >+ ${INSTALL_LIB} ${WRKSRC}/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib >+ ${RLN} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/libduktape.so >+ ${RLN} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR} > > .include <bsd.port.mk> >diff --git a/lang/duktape-lib/distinfo b/lang/duktape-lib/distinfo >index c65ac4e54aaa..4b672e7583c7 100644 >--- a/lang/duktape-lib/distinfo >+++ b/lang/duktape-lib/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1575253869 >-SHA256 (duktape-2.5.0.tar.xz) = 83d411560a1cd36ea132bd81d8d9885efe9285c6bc6685c4b71e69a0c4329616 >-SIZE (duktape-2.5.0.tar.xz) = 1031188 >+TIMESTAMP = 1602747604 >+SHA256 (duktape-2.6.0.tar.xz) = 96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7 >+SIZE (duktape-2.6.0.tar.xz) = 1035160 >diff --git a/lang/duktape-lib/files/patch-Makefile.sharedlibrary b/lang/duktape-lib/files/patch-Makefile.sharedlibrary >new file mode 100644 >index 000000000000..66f9296e0c53 >--- /dev/null >+++ b/lang/duktape-lib/files/patch-Makefile.sharedlibrary >@@ -0,0 +1,47 @@ >+--- Makefile.sharedlibrary.orig 2020-10-12 22:23:10 UTC >++++ Makefile.sharedlibrary >+@@ -52,22 +52,20 @@ INSTALL_PREFIX = /usr/local >+ DUKTAPE_SRCDIR = ./src >+ #DUKTAPE_SRCDIR = ./src-noline >+ >+-CC = gcc >+- >+ .PHONY: all >+-all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) >++all: libduktape.$(SO_REALNAME_SUFFIX) >+ >+ # If the default duk_config.h is not suitable for the distribution, modify it >+ # before compiling the shared library and copy the same, edited duk_config.h >+ # to $INSTALL_PREFIX/include on installation. >+ >+ libduktape.$(SO_REALNAME_SUFFIX): >+- $(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ >++ $(CC) -shared -fPIC -Wall -Wextra ${CFLAGS} -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ >+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c >+ >+-libduktaped.$(SO_REALNAME_SUFFIX): >+- $(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ >+- -o $@ $(DUKTAPE_SRCDIR)/duktape.c >++#libduktaped.$(SO_REALNAME_SUFFIX): >++# $(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ >++# -o $@ $(DUKTAPE_SRCDIR)/duktape.c >+ >+ # Symlinks depend on platform conventions. >+ .PHONY: install >+@@ -77,12 +75,12 @@ install: libduktape.$(SO_REALNAME_SUFFIX) libduktaped. >+ rm -f $(INSTALL_PREFIX)/lib/libduktape.so $(INSTALL_PREFIX)/lib/libduktape.$(SO_SONAME_SUFFIX) >+ ln -s libduktape.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktape.so >+ ln -s libduktape.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktape.$(SO_SONAME_SUFFIX) >+- rm -f $(INSTALL_PREFIX)/lib/libduktaped.so $(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX) >+- ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktaped.so >+- ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX) >++# rm -f $(INSTALL_PREFIX)/lib/libduktaped.so $(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX) >++# ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktaped.so >++# ln -s libduktaped.$(SO_REALNAME_SUFFIX) $(INSTALL_PREFIX)/lib/libduktaped.$(SO_SONAME_SUFFIX) >+ mkdir -p $(INSTALL_PREFIX)/include/ >+ cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(INSTALL_PREFIX)/include/ >+ >+ CCOPTS = -I./examples/cmdline >+ duk: >+- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm >++ $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm >-- >2.28.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 250359
: 218753