Bug 176163 - [new port] devel/js_of_ocaml (OCaml to JavaScript compiler)
Summary: [new port] devel/js_of_ocaml (OCaml to JavaScript compiler)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 10:40 UTC by jaapb
Modified: 2014-03-27 12:54 UTC (History)
0 users

See Also:


Attachments
file.shar (1.92 KB, text/plain)
2013-02-15 10:40 UTC, jaapb
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaapb 2013-02-15 10:40:00 UTC
This is a new port, devel/js_of_ocaml, an OCaml to JavaScript compiler. It is needed for Eliom - a part of the Ocsigen web framework programming, the original port having been split. This needs the new version of lwt (submitted as ports/176061) and the new port devel/js_of_ocaml (submitted as ports/176162) I have tested it with ocaml 4 (ports/173364), but it should work with the version currently in ports as well.

Fix: shar of port directory included.

Patch attached with submission follows:
How-To-Repeat: n/a
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2013-02-15 12:15:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-03-28 06:19:24 UTC
Responsible Changed
From-To: miwi->bf

pass over to bf, he is dealing with the big ocaml update.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-03-26 18:16:49 UTC
Responsible Changed
From-To: bf->marino

Let's make this a full sweep!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-27 12:29:58 UTC
Author: marino
Date: Thu Mar 27 12:29:54 2014
New Revision: 349330
URL: http://svnweb.freebsd.org/changeset/ports/349330
QAT: https://qat.redports.org/buildarchive/r349330/

Log:
  Add new Ocaml port: lang/js_of_ocaml
  
  The initial version submitted in the PR was augmented by later changes
  seen in pkgsrc where the counterpart is maintained by the submitter.
  
  ==
  Js_of_ocaml is a compiler of OCaml bytecode to Javascript. It makes it
  possible to run Ocaml programs in a Web browser.
  
  WWW: http://ocsigen.org/js_of_ocaml/
  ==
  
  PR:		ports/176163
  Submitted by:	Jaap Boender
  Maintainer:	Jaap Boender
  Stage support:	Taken from pkgsrc

Added:
  head/lang/js_of_ocaml/
  head/lang/js_of_ocaml/Makefile   (contents, props changed)
  head/lang/js_of_ocaml/distinfo   (contents, props changed)
  head/lang/js_of_ocaml/files/
  head/lang/js_of_ocaml/files/patch-Makefile   (contents, props changed)
  head/lang/js_of_ocaml/files/patch-Makefile.conf   (contents, props changed)
  head/lang/js_of_ocaml/pkg-descr   (contents, props changed)
Modified:
  head/lang/Makefile

Modified: head/lang/Makefile
==============================================================================
--- head/lang/Makefile	Thu Mar 27 12:29:25 2014	(r349329)
+++ head/lang/Makefile	Thu Mar 27 12:29:54 2014	(r349330)
@@ -130,6 +130,7 @@
     SUBDIR += jakarta-commons-jelly
     SUBDIR += jimtcl
     SUBDIR += jruby
+    SUBDIR += js_of_ocaml
     SUBDIR += jython
     SUBDIR += kawa
     SUBDIR += klone

Added: head/lang/js_of_ocaml/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/js_of_ocaml/Makefile	Thu Mar 27 12:29:54 2014	(r349330)
@@ -0,0 +1,31 @@
+# Created by: Jaap Boender <jaapb@kerguelen.org>
+# $FreeBSD$
+
+PORTNAME=	js_of_ocaml
+PORTVERSION=	1.3.2
+CATEGORIES=	lang
+MASTER_SITES=	http://ocsigen.org/download/
+
+MAINTAINER=	jaapb@kerguelen.org
+COMMENT=	OCaml to JavaScript compiler
+
+BUILD_DEPENDS=	ocaml-lwt>=2.3.0:${PORTSDIR}/devel/ocaml-lwt \
+		${SA_DIR}/deriving-ocsigen/deriving.a:${PORTSDIR}/devel/ocaml-deriving-ocsigen
+RUN_DEPENDS=	ocaml-lwt>=2.3.0:${PORTSDIR}/devel/ocaml-lwt \
+		${SA_DIR}/deriving-ocsigen/deriving.a:${PORTSDIR}/devel/ocaml-deriving-ocsigen
+
+SA_DIR=		${PREFIX}/${OCAML_SITELIBDIR}
+
+USES=			gmake
+USE_OCAML=		yes
+USE_OCAML_FINDLIB=	yes
+USE_OCAML_LDCONFIG=	yes
+USE_OCAMLFIND_PLIST=	yes
+
+PLIST_FILES+=		bin/js_of_ocaml
+
+MAKE_ENV+=		BINDIR=${STAGEDIR}${PREFIX}/bin \
+			DESTDIR=${STAGEDIR} \
+			OCAML_SITELIBDIR=${PREFIX}/lib/ocaml/site-lib
+
+.include <bsd.port.mk>

Added: head/lang/js_of_ocaml/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/js_of_ocaml/distinfo	Thu Mar 27 12:29:54 2014	(r349330)
@@ -0,0 +1,2 @@
+SHA256 (js_of_ocaml-1.3.2.tar.gz) = 5996d2a9bc32121186e1964af557bb411eb5a27aa155d2c6a8a144ee5f3d0c36
+SIZE (js_of_ocaml-1.3.2.tar.gz) = 1901593

Added: head/lang/js_of_ocaml/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/js_of_ocaml/files/patch-Makefile	Thu Mar 27 12:29:54 2014	(r349330)
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.2 2012/12/14 14:40:24 jaapb Exp $
+
+Install to DESTDIR
+--- Makefile.orig	2012-12-07 19:39:02.000000000 +0000
++++ Makefile
+@@ -31,7 +31,7 @@ include Makefile.filelist
+ 
+ VERSION := $(shell head -n 1 VERSION)
+ install:
+-	ocamlfind install -patch-version ${VERSION} $(LIBRARY) lib/META $(INTF) $(IMPL) $(OTHERS) $(DOC)
++	ocamlfind install -ldconf ignore -destdir ${DESTDIR}${OCAML_SITELIBDIR} -patch-version ${VERSION} $(LIBRARY) lib/META $(INTF) $(IMPL) $(OTHERS) $(DOC)
+ 	install -d -m 755 $(BINDIR)
+ 	install $(BIN) $(BINDIR)
+ 

Added: head/lang/js_of_ocaml/files/patch-Makefile.conf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/js_of_ocaml/files/patch-Makefile.conf	Thu Mar 27 12:29:54 2014	(r349330)
@@ -0,0 +1,13 @@
+$NetBSD: patch-Makefile.conf,v 1.1 2012/07/11 15:35:06 wiz Exp $
+
+Have BINDIR be determined from package Makefile
+--- Makefile.conf.orig	2011-11-30 14:25:06.000000000 +0000
++++ Makefile.conf
+@@ -1,6 +1,6 @@
+ 
+ # Where binaries are installed:
+-BINDIR := /usr/local/bin
++# BINDIR := /usr/local/bin
+ 
+ ####
+ 

Added: head/lang/js_of_ocaml/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/js_of_ocaml/pkg-descr	Thu Mar 27 12:29:54 2014	(r349330)
@@ -0,0 +1,4 @@
+Js_of_ocaml is a compiler of OCaml bytecode to Javascript. It makes it
+possible to run Ocaml programs in a Web browser.
+
+WWW: http://ocsigen.org/js_of_ocaml/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 John Marino freebsd_committer freebsd_triage 2014-03-27 12:54:05 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!