summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorfox <fox@pkgsrc.org>2019-10-06 15:50:31 +0000
committerfox <fox@pkgsrc.org>2019-10-06 15:50:31 +0000
commitbcfdd2d81e0aaf608898916be2ed6288fdc95ba2 (patch)
treedcd1c098ce26ced619d8352cd4f3d5c198888382 /lang
parent5c05b4c66843b51cf9718544b794b2289f47551e (diff)
downloadpkgsrc-bcfdd2d81e0aaf608898916be2ed6288fdc95ba2.tar.gz
Import of gjs-1.53.4 as lang/gjs
Gjs is a Javascript binding for GNOME. It's mainly based on Spidermonkey javascript engine and the GObject introspection framework. Reviewed by: nia@
Diffstat (limited to 'lang')
-rw-r--r--lang/gjs/DESCR3
-rw-r--r--lang/gjs/Makefile45
-rw-r--r--lang/gjs/PLIST14
-rw-r--r--lang/gjs/buildlink3.mk18
-rw-r--r--lang/gjs/distinfo8
-rw-r--r--lang/gjs/patches/patch-Makefile.am16
-rw-r--r--lang/gjs/patches/patch-configure.ac24
7 files changed, 128 insertions, 0 deletions
diff --git a/lang/gjs/DESCR b/lang/gjs/DESCR
new file mode 100644
index 00000000000..6bc76b1eaf7
--- /dev/null
+++ b/lang/gjs/DESCR
@@ -0,0 +1,3 @@
+Gjs is a Javascript binding for GNOME. It's mainly based on
+Spidermonkey javascript engine and the GObject introspection
+framework.
diff --git a/lang/gjs/Makefile b/lang/gjs/Makefile
new file mode 100644
index 00000000000..39536db4276
--- /dev/null
+++ b/lang/gjs/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2019/10/06 15:50:31 fox Exp $
+
+DISTNAME= gjs-1.53.4
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gjs/1.53/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://live.gnome.org/Gjs
+COMMENT= Javascript binding for GNOME based on Spidermonkey
+LICENSE= mit
+
+BUILD_DEPENDS+= autoconf-archive-[0-9]*:../../devel/autoconf-archive
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= autoconf autoreconf automake
+USE_TOOLS+= gmake pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= gjs-1.0.pc.in
+
+CONFIGURE_ARGS+= --disable-profiler
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+
+LDFLAGS.NetBSD+= ${X11_LDFLAGS}
+
+# Needed by the Javascript JIT used in gjs
+NOT_PAX_MPROTECT_SAFE+= bin/gjs-console
+NOT_PAX_MPROTECT_SAFE+= bin/gjs
+
+pre-configure:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} autoreconf -vfi
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../graphics/cairo-gobject/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../lang/spidermonkey52/buildlink3.mk"
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/gjs/PLIST b/lang/gjs/PLIST
new file mode 100644
index 00000000000..e95a42d6d68
--- /dev/null
+++ b/lang/gjs/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/06 15:50:31 fox Exp $
+bin/gjs
+bin/gjs-console
+include/gjs-1.0/gjs/context.h
+include/gjs-1.0/gjs/coverage.h
+include/gjs-1.0/gjs/gjs.h
+include/gjs-1.0/gjs/macros.h
+include/gjs-1.0/gjs/profiler.h
+include/gjs-1.0/util/error.h
+lib/gjs/girepository-1.0/GjsPrivate-1.0.typelib
+lib/libgjs.la
+lib/pkgconfig/gjs-1.0.pc
+share/gjs-1.0/lsan/lsan.supp
+share/gjs-1.0/valgrind/gjs.supp
diff --git a/lang/gjs/buildlink3.mk b/lang/gjs/buildlink3.mk
new file mode 100644
index 00000000000..8a7839c06a0
--- /dev/null
+++ b/lang/gjs/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/10/06 15:50:31 fox Exp $
+
+BUILDLINK_TREE+= gjs
+
+.if !defined(GJS_BUILDLINK3_MK)
+GJS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gjs+= gjs>=1.53.4
+BUILDLINK_PKGSRCDIR.gjs?= ../../lang/gjs
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../lang/spidermonkey52/buildlink3.mk"
+.include "../../graphics/cairo-gobject/buildlink3.mk"
+.include "../../sysutils/dbus-glib/buildlink3.mk"
+.endif # GJS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -gjs
diff --git a/lang/gjs/distinfo b/lang/gjs/distinfo
new file mode 100644
index 00000000000..2c40e220010
--- /dev/null
+++ b/lang/gjs/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2019/10/06 15:50:31 fox Exp $
+
+SHA1 (gjs-1.53.4.tar.xz) = 7193dffbc30e08fec94bc315feeb41bfdaa67c64
+RMD160 (gjs-1.53.4.tar.xz) = 1263754399afd24e0522d67241685192574d4e35
+SHA512 (gjs-1.53.4.tar.xz) = 5876a8912699fcb22bdfe678a5c9d9893be9dc5b2242160985dd6491c1b4c6148fd4d57d62a9be9c98186176440cf9f99239f8be6b57126cb077c3f90aeb8e2e
+Size (gjs-1.53.4.tar.xz) = 635936 bytes
+SHA1 (patch-Makefile.am) = 5b8f2c6468b557c54541172ca0ceba5b77601f8c
+SHA1 (patch-configure.ac) = acd8d6e1546c14a636478da2a557cef4bdbc146a
diff --git a/lang/gjs/patches/patch-Makefile.am b/lang/gjs/patches/patch-Makefile.am
new file mode 100644
index 00000000000..d575cef4b2e
--- /dev/null
+++ b/lang/gjs/patches/patch-Makefile.am
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile.am,v 1.1 2019/10/06 15:50:31 fox Exp $
+
+Disable tests, they pull in a lot more dependencies.
+
+--- Makefile.am.orig 2019-10-05 08:36:21.151106816 +0000
++++ Makefile.am
+@@ -161,9 +161,6 @@ gjs_console_SOURCES = $(gjs_console_srcs
+ install-exec-hook:
+ (cd $(DESTDIR)$(bindir) && $(LN_S) -f gjs-console$(EXEEXT) gjs$(EXEEXT))
+
+-include Makefile-test.am
+-include Makefile-insttest.am
+-
+ EXTRA_DIST += \
+ autogen.sh \
+ COPYING.LGPL \
diff --git a/lang/gjs/patches/patch-configure.ac b/lang/gjs/patches/patch-configure.ac
new file mode 100644
index 00000000000..0765ac3406b
--- /dev/null
+++ b/lang/gjs/patches/patch-configure.ac
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure.ac,v 1.1 2019/10/06 15:50:31 fox Exp $
+
+Disable tests, they pull in a lot more dependencies.
+
+--- configure.ac.orig 2019-10-05 08:36:32.253994276 +0000
++++ configure.ac
+@@ -313,17 +313,6 @@ dnl automake 1.11/1.12 defines this but
+ AC_SUBST([pkglibexecdir], ["${libexecdir}/${PACKAGE}"])
+
+ AC_CONFIG_FILES([Makefile gjs-1.0.pc win32/config.h.win32])
+-dnl Symlink the files from gobject-introspection's test libraries into the tree;
+-dnl Automake plans to drop support for compiling them in-place.
+-AC_CONFIG_LINKS([
+- installed-tests/gitestmacros.h:$GI_DATADIR/tests/gitestmacros.h
+- installed-tests/regress.c:$GI_DATADIR/tests/regress.c
+- installed-tests/regress.h:$GI_DATADIR/tests/regress.h
+- installed-tests/warnlib.c:$GI_DATADIR/tests/warnlib.c
+- installed-tests/warnlib.h:$GI_DATADIR/tests/warnlib.h
+- installed-tests/gimarshallingtests.c:$GI_DATADIR/tests/gimarshallingtests.c
+- installed-tests/gimarshallingtests.h:$GI_DATADIR/tests/gimarshallingtests.h
+-])
+ AC_OUTPUT
+
+ # Warn about conditions that affect runtime