diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2003-08-30 18:46:21 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2003-08-30 18:46:21 +0000 |
commit | e81aacb9ad861fbc89dae2c176df4ce6c21c8c79 (patch) | |
tree | 599df46fdc9c737353fb2bb05be5519429cebcef /devel/erlslang | |
parent | efb1f5a8cc018a87ffe6df5bb92b5ce051a6ca8b (diff) | |
download | ports-e81aacb9ad861fbc89dae2c176df4ce6c21c8c79.tar.gz ports-e81aacb9ad861fbc89dae2c176df4ce6c21c8c79.zip |
Add erlslang, SLang binding for Erlang.
Submitted by: Chris Pressey <chris_pressey@yahoo.ca>
Notes
Notes:
svn path=/head/; revision=88096
Diffstat (limited to 'devel/erlslang')
-rw-r--r-- | devel/erlslang/Makefile | 47 | ||||
-rw-r--r-- | devel/erlslang/distinfo | 1 | ||||
-rw-r--r-- | devel/erlslang/files/patch-c__src_slang__drv.c | 13 | ||||
-rw-r--r-- | devel/erlslang/pkg-descr | 3 | ||||
-rw-r--r-- | devel/erlslang/pkg-plist | 24 |
5 files changed, 88 insertions, 0 deletions
diff --git a/devel/erlslang/Makefile b/devel/erlslang/Makefile new file mode 100644 index 000000000000..2cb712f5ce0c --- /dev/null +++ b/devel/erlslang/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: erlslang +# Date Created: 18 July 2003 +# Whom: cpressey@catseye.mb.ca +# +# $FreeBSD$ +# + +PORTNAME= erlslang +PORTVERSION= 1.0 +CATEGORIES= devel +MASTER_SITES= http://www.erlang.org/contrib/ \ + http://erlang.stacken.kth.se/contrib/ \ + http://www.csd.uu.se/ftp/mirror/erlang/contrib/ \ + http://www.serc.rmit.edu.au/mirrors/ose_mirror/contrib/ +DISTNAME= slang-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= cpressey@catseye.mb.ca +COMMENT= SLang binding for Erlang/OTP + +BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang +LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang + +PLIST_SUB= VERSION="${PORTVERSION}" + +USE_GMAKE= yes +USE_AUTOCONF= yes +GNU_CONFIGURE= yes +CONFIGURE_WRKSRC=${WRKSRC}/config + +post-build: + @${RM} -r ${WRKSRC}/*/CVS + @${RM} -r ${WRKSRC}/*/.cvsignore + @${RM} -r ${WRKSRC}/*/.empty + @${RM} -r ${WRKSRC}/*/Makefile + @${RM} -r ${WRKSRC}/*/*.orig + +do-install: + @${MKDIR} ${PREFIX}/lib/erlang/lib/${DISTNAME} + @${CP} -r ${WRKSRC}/c_src ${PREFIX}/lib/erlang/lib/${DISTNAME}/c_src + @${CP} -r ${WRKSRC}/demo ${PREFIX}/lib/erlang/lib/${DISTNAME}/demo + @${CP} -r ${WRKSRC}/ebin ${PREFIX}/lib/erlang/lib/${DISTNAME}/ebin + @${CP} -r ${WRKSRC}/priv ${PREFIX}/lib/erlang/lib/${DISTNAME}/priv + @${CP} -r ${WRKSRC}/src ${PREFIX}/lib/erlang/lib/${DISTNAME}/src + @${LN} -sf ${DISTNAME} ${PREFIX}/lib/erlang/lib/slang + +.include <bsd.port.mk> diff --git a/devel/erlslang/distinfo b/devel/erlslang/distinfo new file mode 100644 index 000000000000..9fcbe1065c09 --- /dev/null +++ b/devel/erlslang/distinfo @@ -0,0 +1 @@ +MD5 (slang-1.0.tgz) = 5ef23814c3d0e20463a8108ff5e8ddfe diff --git a/devel/erlslang/files/patch-c__src_slang__drv.c b/devel/erlslang/files/patch-c__src_slang__drv.c new file mode 100644 index 000000000000..f632590427c4 --- /dev/null +++ b/devel/erlslang/files/patch-c__src_slang__drv.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- c_src/slang_drv.c.orig Tue Dec 12 14:16:28 2000 ++++ c_src/slang_drv.c Sat Jul 19 12:28:11 2003 +@@ -1,6 +1,6 @@ + + #include <stdio.h> +-#include "driver.h" ++#include "obsolete/driver.h" + #include <slang.h> + #include <signal.h> + diff --git a/devel/erlslang/pkg-descr b/devel/erlslang/pkg-descr new file mode 100644 index 000000000000..1ee8ec37292e --- /dev/null +++ b/devel/erlslang/pkg-descr @@ -0,0 +1,3 @@ +erlslang is a SLang binding for Erlang/OTP. + +WWW: http://www.erlang.org/contrib/ diff --git a/devel/erlslang/pkg-plist b/devel/erlslang/pkg-plist new file mode 100644 index 000000000000..872fc460192d --- /dev/null +++ b/devel/erlslang/pkg-plist @@ -0,0 +1,24 @@ +lib/erlang/lib/slang-%%VERSION%%/c_src/slang_drv.c +lib/erlang/lib/slang-%%VERSION%%/c_src/slang_drv.o +lib/erlang/lib/slang-%%VERSION%%/demo/ex1.beam +lib/erlang/lib/slang-%%VERSION%%/demo/ex1.erl +lib/erlang/lib/slang-%%VERSION%%/demo/ex2.beam +lib/erlang/lib/slang-%%VERSION%%/demo/ex2.c +lib/erlang/lib/slang-%%VERSION%%/demo/ex2.erl +lib/erlang/lib/slang-%%VERSION%%/demo/ex3.c +lib/erlang/lib/slang-%%VERSION%%/demo/pager.erl +lib/erlang/lib/slang-%%VERSION%%/ebin/slang.app +lib/erlang/lib/slang-%%VERSION%%/ebin/slang.beam +lib/erlang/lib/slang-%%VERSION%%/priv/slang_drv.so +lib/erlang/lib/slang-%%VERSION%%/src/slang.app.src +lib/erlang/lib/slang-%%VERSION%%/src/slang.erl +lib/erlang/lib/slang-%%VERSION%%/src/slang_int.hrl +lib/erlang/lib/slang-%%VERSION%%/src/slang_lib.erl +@dirrm lib/erlang/lib/slang-%%VERSION%%/src +@dirrm lib/erlang/lib/slang-%%VERSION%%/priv +@dirrm lib/erlang/lib/slang-%%VERSION%%/ebin +@dirrm lib/erlang/lib/slang-%%VERSION%%/demo +@dirrm lib/erlang/lib/slang-%%VERSION%%/c_src +@dirrm lib/erlang/lib/slang-%%VERSION%% +@exec ln -sf slang-%%VERSION%% %D/lib/erlang/lib/slang +@unexec rm -f %D/lib/erlang/lib/slang |