new package: mozjs38

This commit is contained in:
Sir_Boops 2017-04-09 17:18:56 -06:00
parent d548d2c59f
commit ac44f1348f
5 changed files with 70 additions and 0 deletions

View file

@ -2808,3 +2808,4 @@ libmutter-clutter-0.so mutter-3.24.0_1
libmutter-cogl-path-0.so mutter-3.24.0_1
libmutter-cogl-0.so mutter-3.24.0_1
libmutter-cogl-pango-0.so mutter-3.24.0_1
libmozjs-.so mozjs38-38.8.0_1

1
srcpkgs/mozjs38-devel Symbolic link
View file

@ -0,0 +1 @@
mozjs38

View file

@ -0,0 +1,11 @@
--- js/src/configure 2017-03-21 06:18:29.372463084 -0600
+++ js/src/configure 2017-03-21 06:27:37.546371605 -0600
@@ -15906,7 +15906,7 @@
fi
fi
- version=`sed -n 's/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
+ version=`sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
if test x"$version" = x; then
{ echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&2; echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&5; exit 1; }
fi

56
srcpkgs/mozjs38/template Normal file
View file

@ -0,0 +1,56 @@
# Template file for 'mozjs38'
pkgname=mozjs38
version=38.8.0
revision=1
wrksrc="mozilla-esr${version%.*.*}"
build_wrksrc="js/src"
build_style=gnu-configure
hostmakedepends="perl python"
makedepends="nspr-devel zlib-devel"
short_desc="Mozilla JavaScript interpreter and library (38.x series)"
homepage="http://www.mozilla.org/js/"
license="MPL-1.1, GPL-2, LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="https://ftp.mozilla.org/pub/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.bz2"
checksum=9475adcee29d590383c4885bc5f958093791d1db4302d694a5d2766698f59982
nopie=yes
do_configure() {
local _args
if [ "$CROSS_BUILD" ]; then
export HOST_CFLAGS="-Os"
export HOST_CXXFLAGS="-Os"
_args+=" --target=$XBPS_CROSS_TRIPLET"
fi
SHELL=/bin/bash ./configure --prefix=/usr --enable-threadsafe \
--with-system-nspr ${_args}
}
post_install() {
# Rename pkgconfig
mv ${PKGDESTDIR}/usr/lib/pkgconfig/js.pc ${PKGDESTDIR}/usr/lib/pkgconfig/mozjs-${version%.*.*}.pc
# Remove links
mv ${PKGDESTDIR}/usr/include/mozjs-/js-config.h ${PKGDESTDIR}/usr/include/
rm -rf ${PKGDESTDIR}/usr/include/mozjs-/*
mv ${PKGDESTDIR}/usr/include/js-config.h ${PKGDESTDIR}/usr/include/mozjs-/
cp -p ${wrksrc}/js/src/js.msg ${PKGDESTDIR}/usr/include/mozjs-/
cp -p ${wrksrc}/js/src/*.h ${PKGDESTDIR}/usr/include/mozjs-/
mkdir ${PKGDESTDIR}/usr/include/mozjs-/js/
cp -p ${wrksrc}/js/public/*.h ${PKGDESTDIR}/usr/include/mozjs-/js/
mkdir ${PKGDESTDIR}/usr/include/mozjs-/mozilla/
cp -p ${wrksrc}/mfbt/*.h ${PKGDESTDIR}/usr/include/mozjs-/mozilla/
}
mozjs38-devel_package() {
depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/js-config
vmove usr/include
vmove usr/lib/pkgconfig
}
}

1
srcpkgs/mozjs38/update Normal file
View file

@ -0,0 +1 @@
pkgname="mozjs"