import onyx 5.1.2

Onyx is a powerful stack-based, multi-threaded, interpreted, general
purpose programming language similar to PostScript.

ok aja@
This commit is contained in:
jasper 2011-03-07 19:26:28 +00:00
parent 025a73982e
commit 5058e93845
12 changed files with 431 additions and 0 deletions

45
lang/onyx/Makefile Normal file
View File

@ -0,0 +1,45 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
COMMENT= powerful stack-based, multi-threaded language
V= 5.1.2
DISTNAME= onyx-$V
CATEGORIES= lang
SHARED_LIBS += onyx 0.0
HOMEPAGE= http://www.canonware.com/onyx/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# 2-clause BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c curses edit m pcre pthread
BUILD_DEPENDS= devel/cook
LIB_DEPENDS= devel/pcre
MASTER_SITES= http://www.canonware.com/download/onyx/
EXTRACT_SUFX= .tar.bz2
CONFIGURE_STYLE= gnu
SUBST_VARS+= V
pre-configure:
${SUBST_CMD} ${WRKSRC}/lib/libonyx/Cookfile.inc.in
do-build:
@cd ${WRKSRC} && ${LOCALBASE}/bin/cook
do-install:
@cd ${WRKSRC} && ${LOCALBASE}/bin/cook PREFIX=${PREFIX} install
do-regress:
@cd ${WRKSRC} && ${LOCALBASE}/bin/cook check
.include <bsd.port.mk>

5
lang/onyx/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (onyx-5.1.2.tar.bz2) = HEZa/jWFkzV9knHXh4UN6g==
RMD160 (onyx-5.1.2.tar.bz2) = DsypQ/N+ud+2NwxX6ZMlZ6lV7Vk=
SHA1 (onyx-5.1.2.tar.bz2) = EWRDHkxdT9USK31BaYuu/Bxw1j0=
SHA256 (onyx-5.1.2.tar.bz2) = loESBOig22z7EGm2XxFLoVNIus9ndqB15MCPn17euGA=
SIZE (onyx-5.1.2.tar.bz2) = 1397404

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-bin_onyx_Cookfile_inc_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- bin/onyx/Cookfile.inc.in.orig Thu Mar 3 19:52:28 2011
+++ bin/onyx/Cookfile.inc.in Thu Mar 3 19:52:40 2011
@@ -438,8 +438,6 @@ onyx_bins_install : [ONYX] mods_install
@INSTALL@ -m 0444 @objroot@/bin/onyx/man/man1/onyx.1 [MANDIR]/man1;
@INSTALL@ -d [DATADIR];
- rm -f [DATADIR]/onyx;
- ln -s onyx-@onyx_version@ [DATADIR]/onyx;
}
onyx_bins_uninstall :

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-configure,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- configure.orig Thu Mar 17 08:55:12 2005
+++ configure Thu Mar 3 18:58:05 2011
@@ -3786,13 +3786,13 @@ fi
done
- echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
+ echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
+echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -3851,7 +3851,7 @@ fi
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
if test $ac_cv_lib_pthread_pthread_create = yes; then
- LIBS="$LIBS -lpthread"
+ LIBS="$LIBS -pthread"
else
echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-doc_latex_onyx_Cookfile_inc_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- doc/latex/onyx/Cookfile.inc.in.orig Thu Mar 3 19:46:37 2011
+++ doc/latex/onyx/Cookfile.inc.in Thu Mar 3 19:47:16 2011
@@ -82,30 +82,28 @@ onyx_docs_html :
onyx_docs_install_pdf : onyx_docs_pdf onyx_docs_install
{
- @INSTALL@ -d [DATADIR]/doc/onyx-@onyx_version@/pdf;
- @INSTALL@ -m 0444 [ONYX_PDF] [DATADIR]/doc/onyx-@onyx_version@/pdf;
+ @INSTALL@ -d [DATADIR]/doc/onyx/pdf;
+ @INSTALL@ -m 0444 [ONYX_PDF] [DATADIR]/doc/onyx/pdf;
}
onyx_docs_install_html : onyx_docs_html onyx_docs_install
{
- @INSTALL@ -d [DATADIR]/doc/onyx-@onyx_version@/html;
+ @INSTALL@ -d [DATADIR]/doc/onyx/html;
loop local f = [glob [dirname [ONYX_HTML]]"/*"]
{
- @INSTALL@ -m 0444 [f] [DATADIR]/doc/onyx-@onyx_version@/html;
+ @INSTALL@ -m 0444 [f] [DATADIR]/doc/onyx/html;
}
}
onyx_docs_install :
{
@INSTALL@ -d [DATADIR]/doc;
- rm -f [DATADIR]/doc/onyx;
- ln -s onyx-@onyx_version@ [DATADIR]/doc/onyx;
}
onyx_docs_uninstall :
{
- rm -rf [DATADIR]/doc/onyx-@onyx_version@;
+ rm -rf [DATADIR]/doc/onyx;
rm -f [DATADIR]/doc/onyx;
}

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-lib_libonyx_Cookfile_inc_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- lib/libonyx/Cookfile.inc.in.orig Thu Mar 17 08:54:57 2005
+++ lib/libonyx/Cookfile.inc.in Thu Mar 3 19:20:00 2011
@@ -162,7 +162,7 @@ ONYX_TEX_SRCS += [addprefix @srcroot@/lib/libonyx/doc/
@objroot@/lib/libonyx/doc/latex/manual.tex;
/* Libraries. */
-LIBONYX_REV = 13;
+LIBONYX_REV = ${LIBonyx_VERSION};
LIBBONYX_A = @objroot@/lib/libonyx/lib/libbonyx.a;
LIBOONYX_A = @objroot@/lib/libonyx/lib/liboonyx.a;
@@ -311,9 +311,9 @@ libonyx_libs_install_i :
}
#if @enable_posix@
- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/libonyx;
+ @INSTALL@ -d [DATADIR]/onyx/libonyx;
- @INSTALL@ -m 0644 [LIBONYX_INIT] [DATADIR]/onyx-@onyx_version@/libonyx/;
+ @INSTALL@ -m 0644 [LIBONYX_INIT] [DATADIR]/onyx/libonyx/;
#endif
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_libonyx_src_nx_gen_nx_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- lib/libonyx/src/nx_gen.nx.in.orig Thu Mar 3 19:17:01 2011
+++ lib/libonyx/src/nx_gen.nx.in Thu Mar 3 19:17:33 2011
@@ -254,7 +254,7 @@ bind eval end");
$init_file
opt_dstdir {
- `@DATADIR@/onyx-@onyx_version@/libonyx/libonyx_init.nx'
+ `@DATADIR@/onyx/libonyx/libonyx_init.nx'
}{
`@abs_objroot@/lib/libonyx/src/liboonyx_init.nx'
} ifelse

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-mod_modclopt_Cookfile_inc_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- mod/modclopt/Cookfile.inc.in.orig Thu Mar 3 19:18:32 2011
+++ mod/modclopt/Cookfile.inc.in Thu Mar 3 19:18:45 2011
@@ -92,11 +92,11 @@ modclopt_mods_check_update : modclopt_mods_tests [OONY
modclopt_mods_install :
{
- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nx/modclopt;
+ @INSTALL@ -d [DATADIR]/onyx/nx/modclopt;
loop local f = [MODCLOPT_NX] [MODCLOPT_NX_GEN]
{
- @INSTALL@ -m 0644 [f] [DATADIR]/onyx-@onyx_version@/nx/modclopt/;
+ @INSTALL@ -m 0644 [f] [DATADIR]/onyx/nx/modclopt/;
}
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-mod_modprompt_Cookfile_inc_in,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
--- mod/modprompt/Cookfile.inc.in.orig Thu Mar 3 19:17:46 2011
+++ mod/modprompt/Cookfile.inc.in Thu Mar 3 19:18:19 2011
@@ -73,13 +73,13 @@ modprompt_mods_check_update : ;
modprompt_mods_install : [MODPROMPT]
{
- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nxm;
- @INSTALL@ -m 0444 [MODPROMPT] [DATADIR]/onyx-@onyx_version@/nxm;
- @INSTALL@ -d [DATADIR]/onyx-@onyx_version@/nx/modprompt;
+ @INSTALL@ -d [DATADIR]/onyx/nxm;
+ @INSTALL@ -m 0444 [MODPROMPT] [DATADIR]/onyx/nxm;
+ @INSTALL@ -d [DATADIR]/onyx/nx/modprompt;
loop local f = [MODPROMPT_NX] [MODPROMPT_NX_GEN]
{
- @INSTALL@ -m 0644 [f] [DATADIR]/onyx-@onyx_version@/nx/modprompt/;
+ @INSTALL@ -m 0644 [f] [DATADIR]/onyx/nx/modprompt/;
}
}

2
lang/onyx/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
Onyx is a powerful stack-based, multi-threaded, interpreted, general
purpose programming language similar to PostScript.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
lib/libonyx.so
@lib lib/libonyx.so.${LIBonyx_VERSION}

222
lang/onyx/pkg/PLIST Normal file
View File

@ -0,0 +1,222 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/07 19:26:28 jasper Exp $
%%SHARED%%
bin/onyx
@bin bin/onyx-${V}
bin/onyx_config
bin/onyx_config-${V}
include/libonyx/
include/libonyx/ch.h
include/libonyx/cnd.h
include/libonyx/dch.h
include/libonyx/gcdict.h
include/libonyx/libonyx.h
include/libonyx/libonyx_defs.h
include/libonyx/mb.h
include/libonyx/mem.h
include/libonyx/mq.h
include/libonyx/mtx.h
include/libonyx/nx.h
include/libonyx/nxa.h
include/libonyx/nxm.h
include/libonyx/nxn.h
include/libonyx/nxo.h
include/libonyx/nxo_array.h
include/libonyx/nxo_boolean.h
include/libonyx/nxo_class.h
include/libonyx/nxo_condition.h
include/libonyx/nxo_dict.h
include/libonyx/nxo_file.h
include/libonyx/nxo_fino.h
include/libonyx/nxo_handle.h
include/libonyx/nxo_instance.h
include/libonyx/nxo_integer.h
include/libonyx/nxo_mark.h
include/libonyx/nxo_mutex.h
include/libonyx/nxo_name.h
include/libonyx/nxo_no.h
include/libonyx/nxo_null.h
include/libonyx/nxo_operator.h
include/libonyx/nxo_pmark.h
include/libonyx/nxo_real.h
include/libonyx/nxo_regex.h
include/libonyx/nxo_regsub.h
include/libonyx/nxo_stack.h
include/libonyx/nxo_string.h
include/libonyx/nxo_thread.h
include/libonyx/ql.h
include/libonyx/qr.h
include/libonyx/qs.h
include/libonyx/systemdict.h
include/libonyx/thd.h
include/libonyx/tsd.h
include/libonyx/xep.h
lib/libonyx.a
@man man/man1/onyx.1
@man man/man1/onyx_config.1
share/doc/onyx/
share/doc/onyx/html/
share/doc/onyx/html/contents.png
share/doc/onyx/html/img1.png
share/doc/onyx/html/img10.png
share/doc/onyx/html/img11.png
share/doc/onyx/html/img12.png
share/doc/onyx/html/img13.png
share/doc/onyx/html/img14.png
share/doc/onyx/html/img15.png
share/doc/onyx/html/img2.png
share/doc/onyx/html/img3.png
share/doc/onyx/html/img4.png
share/doc/onyx/html/img5.png
share/doc/onyx/html/img6.png
share/doc/onyx/html/img7.png
share/doc/onyx/html/img8.png
share/doc/onyx/html/img9.png
share/doc/onyx/html/index.html
share/doc/onyx/html/index.png
share/doc/onyx/html/next.png
share/doc/onyx/html/next_g.png
share/doc/onyx/html/node1.html
share/doc/onyx/html/node10.html
share/doc/onyx/html/node100.html
share/doc/onyx/html/node101.html
share/doc/onyx/html/node102.html
share/doc/onyx/html/node103.html
share/doc/onyx/html/node104.html
share/doc/onyx/html/node105.html
share/doc/onyx/html/node106.html
share/doc/onyx/html/node107.html
share/doc/onyx/html/node108.html
share/doc/onyx/html/node109.html
share/doc/onyx/html/node11.html
share/doc/onyx/html/node110.html
share/doc/onyx/html/node111.html
share/doc/onyx/html/node112.html
share/doc/onyx/html/node113.html
share/doc/onyx/html/node114.html
share/doc/onyx/html/node115.html
share/doc/onyx/html/node116.html
share/doc/onyx/html/node117.html
share/doc/onyx/html/node118.html
share/doc/onyx/html/node119.html
share/doc/onyx/html/node12.html
share/doc/onyx/html/node120.html
share/doc/onyx/html/node121.html
share/doc/onyx/html/node122.html
share/doc/onyx/html/node123.html
share/doc/onyx/html/node124.html
share/doc/onyx/html/node13.html
share/doc/onyx/html/node14.html
share/doc/onyx/html/node15.html
share/doc/onyx/html/node16.html
share/doc/onyx/html/node17.html
share/doc/onyx/html/node18.html
share/doc/onyx/html/node19.html
share/doc/onyx/html/node2.html
share/doc/onyx/html/node20.html
share/doc/onyx/html/node21.html
share/doc/onyx/html/node22.html
share/doc/onyx/html/node23.html
share/doc/onyx/html/node24.html
share/doc/onyx/html/node25.html
share/doc/onyx/html/node26.html
share/doc/onyx/html/node27.html
share/doc/onyx/html/node28.html
share/doc/onyx/html/node29.html
share/doc/onyx/html/node3.html
share/doc/onyx/html/node30.html
share/doc/onyx/html/node31.html
share/doc/onyx/html/node32.html
share/doc/onyx/html/node33.html
share/doc/onyx/html/node34.html
share/doc/onyx/html/node35.html
share/doc/onyx/html/node36.html
share/doc/onyx/html/node37.html
share/doc/onyx/html/node38.html
share/doc/onyx/html/node39.html
share/doc/onyx/html/node4.html
share/doc/onyx/html/node40.html
share/doc/onyx/html/node41.html
share/doc/onyx/html/node42.html
share/doc/onyx/html/node43.html
share/doc/onyx/html/node44.html
share/doc/onyx/html/node45.html
share/doc/onyx/html/node46.html
share/doc/onyx/html/node47.html
share/doc/onyx/html/node48.html
share/doc/onyx/html/node49.html
share/doc/onyx/html/node5.html
share/doc/onyx/html/node50.html
share/doc/onyx/html/node51.html
share/doc/onyx/html/node52.html
share/doc/onyx/html/node53.html
share/doc/onyx/html/node54.html
share/doc/onyx/html/node55.html
share/doc/onyx/html/node56.html
share/doc/onyx/html/node57.html
share/doc/onyx/html/node58.html
share/doc/onyx/html/node59.html
share/doc/onyx/html/node6.html
share/doc/onyx/html/node60.html
share/doc/onyx/html/node61.html
share/doc/onyx/html/node62.html
share/doc/onyx/html/node63.html
share/doc/onyx/html/node64.html
share/doc/onyx/html/node65.html
share/doc/onyx/html/node66.html
share/doc/onyx/html/node67.html
share/doc/onyx/html/node68.html
share/doc/onyx/html/node69.html
share/doc/onyx/html/node7.html
share/doc/onyx/html/node70.html
share/doc/onyx/html/node71.html
share/doc/onyx/html/node72.html
share/doc/onyx/html/node73.html
share/doc/onyx/html/node74.html
share/doc/onyx/html/node75.html
share/doc/onyx/html/node76.html
share/doc/onyx/html/node77.html
share/doc/onyx/html/node78.html
share/doc/onyx/html/node79.html
share/doc/onyx/html/node8.html
share/doc/onyx/html/node80.html
share/doc/onyx/html/node81.html
share/doc/onyx/html/node82.html
share/doc/onyx/html/node83.html
share/doc/onyx/html/node84.html
share/doc/onyx/html/node85.html
share/doc/onyx/html/node86.html
share/doc/onyx/html/node87.html
share/doc/onyx/html/node88.html
share/doc/onyx/html/node89.html
share/doc/onyx/html/node9.html
share/doc/onyx/html/node90.html
share/doc/onyx/html/node91.html
share/doc/onyx/html/node92.html
share/doc/onyx/html/node93.html
share/doc/onyx/html/node94.html
share/doc/onyx/html/node95.html
share/doc/onyx/html/node96.html
share/doc/onyx/html/node97.html
share/doc/onyx/html/node98.html
share/doc/onyx/html/node99.html
share/doc/onyx/html/onyx.css
share/doc/onyx/html/onyx.html
share/doc/onyx/html/prev.png
share/doc/onyx/html/prev_g.png
share/doc/onyx/html/up.png
share/doc/onyx/html/up_g.png
share/doc/onyx/pdf/
share/doc/onyx/pdf/onyx.pdf
share/onyx/
share/onyx/libonyx/
share/onyx/libonyx/libonyx_init.nx
share/onyx/nx/
share/onyx/nx/modclopt/
share/onyx/nx/modclopt/clopt.nx
share/onyx/nx/modclopt/modclopt.nx
share/onyx/nx/modclopt/modclopt_defs.nx
share/onyx/nx/modprompt/
share/onyx/nx/modprompt/modprompt.nx
share/onyx/nx/modprompt/modprompt_defs.nx
share/onyx/nxm/
share/onyx/nxm/modprompt.nxm