mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
mujs: new recipe (#2911)
This commit is contained in:
13
dev-lang/mujs/licenses/ISC
Normal file
13
dev-lang/mujs/licenses/ISC
Normal file
@@ -0,0 +1,13 @@
|
||||
Copyright (c) 2007-2014, Lloyd Hilaiel <me@lloyd.io>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
78
dev-lang/mujs/mujs-1.0.4.recipe
Normal file
78
dev-lang/mujs/mujs-1.0.4.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="A lightweight Javascript interpreter"
|
||||
DESCRIPTION="MuJS is a lightweight Javascript interpreter designed for \
|
||||
embedding in other software to extend them with scripting capabilities.
|
||||
MuJS was designed with a focus on small size, correctness, and simplicity. It \
|
||||
is written in portable C and implements ECMAScript as specified by ECMA-262. \
|
||||
The interface for binding with native code is designed to be as simple as \
|
||||
possible to use, and is very similar to Lua. There is no need to interact \
|
||||
with byzantine C++ template mechanisms, or worry about marking and unmarking \
|
||||
garbage collection roots, or wrestle with obscure build systems."
|
||||
HOMEPAGE="https://mujs.com/"
|
||||
COPYRIGHT="2013-2017 Artifex Software, Inc."
|
||||
LICENSE="ISC"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://mujs.com/downloads/mujs-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="9ffc7b11f8e16218ee04d0c1a541c6ba79afc185221dab5bcbdbeda5a03126ee"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
mujs$secondaryArchSuffix = $portVersion
|
||||
cmd:mujs$secondaryArchSuffix = $portVersion
|
||||
cmd:mujs_pp$secondaryArchSuffix = $portVersion
|
||||
lib:libmujs$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libreadline$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
mujs${secondaryArchSuffix}_devel = portVersion
|
||||
devel:libmujs$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mujs$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libreadline$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make shared $jobArgs \
|
||||
prefix=$prefix \
|
||||
bindir=$binDir \
|
||||
incdir=$includeDir \
|
||||
libdir=$libDir
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install-shared \
|
||||
prefix=$prefix \
|
||||
bindir=$binDir \
|
||||
incdir=$includeDir \
|
||||
libdir=$libDir
|
||||
|
||||
prepareInstalledDevelLib libmujs
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user