Date: Thu, 10 Feb 2005 11:59:24 +0100 From: "Marwan Burelle <marwan.burelle@lri.fr>" <marwan.burelle@lri.fr> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Cc: marwan.burelle@lri.fr Subject: ports/77342: New port : lang/cduce An XML oriented functionnal programming language Message-ID: <1108033164.0@pc5-179.lri.fr> Resent-Message-ID: <200502101100.j1AB0DDQ086194@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77342 >Category: ports >Synopsis: New port : lang/cduce An XML oriented functionnal programming language >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 10 11:00:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marwan Burelle <marwan.burelle@lri.fr> >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD 5.3-STABLE #0: Fri Feb 4 18:45:33 CET 2005 root@:/usr/home/obj/usr/src/sys/KER_pc5-179 >Description: CDuce is an XML oriented functionnal programming language. It is strongly typed, thus enforcing valid XML output. It relies on an efficient pattern matching operation based on non-uniform tree automata. It also include an SQL query language for XML, support for DTD and XML-namespace and efficient JIT compilation. see http://www.cduce.org for more informations, documentations, scientific publication, a tutorial and an online toplevel. >How-To-Repeat: >Fix: --- cduce.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/lang/cduce # /usr/ports/lang/cduce/files # /usr/ports/lang/cduce/files/patch-aa # /usr/ports/lang/cduce/Makefile # /usr/ports/lang/cduce/pkg-descr # /usr/ports/lang/cduce/pkg-install # /usr/ports/lang/cduce/distinfo # echo c - /usr/ports/lang/cduce mkdir -p /usr/ports/lang/cduce > /dev/null 2>&1 echo c - /usr/ports/lang/cduce/files mkdir -p /usr/ports/lang/cduce/files > /dev/null 2>&1 echo x - /usr/ports/lang/cduce/files/patch-aa sed 's/^X//' >/usr/ports/lang/cduce/files/patch-aa << 'END-of-/usr/ports/lang/cduce/files/patch-aa' X--- Makefile.orig Wed Feb 9 16:57:50 2005 X+++ Makefile Wed Feb 9 16:58:38 2005 X@@ -81,7 +81,7 @@ X $(HIDE)$(MAKE) NATIVE=false $@ X endif X X-install: all install_lib install_doc X+install: all install_lib X $(HIDE)mkdir -p $(BINDIR) X $(HIDE)mkdir -p $(MANDIR)/man1 X @echo "Install binaries" X@@ -231,7 +231,7 @@ X test_schema: $(OBJECTS:.cmo=.$(EXTENSION)) $(NEW_SCHEMA_OBJS:.cmo=.$(EXTENSION)) X @echo "Build $@" X $(HIDE)$(LINK) $(INCLUDES) -o $@ $^ $(EXTRA_LINK_OPTS) X- X+ X X cduce_packed.ml: $(CDUCE:.cmo=.ml) X rm -f cduce_packed.ml END-of-/usr/ports/lang/cduce/files/patch-aa echo x - /usr/ports/lang/cduce/Makefile sed 's/^X//' >/usr/ports/lang/cduce/Makefile << 'END-of-/usr/ports/lang/cduce/Makefile' X# New ports collection makefile for: cduce X# Date created: Feb 9, 2005 X# Whom: Marwan Burelle <burelle@lri.fr> X# X# $FreeBSD$ X XPORTNAME= cduce XPORTVERSION= 0.2.2 XCATEGORIES= lang XMASTER_SITES= http://www.cduce.org/download/ X XMAINTAINER= burelle@lri.fr XCOMMENT= An XML oriented functionnal programming language X XLIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre:install XBUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ X ocamlfind:${PORTSDIR}/devel/ocaml-findlib \ X ${LOCALBASE}/lib/ocaml/site-lib/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \ X ${LOCALBASE}/lib/ocaml/site-lib/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre \ X ${LOCALBASE}/lib/ocaml/site-lib/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \ X ${LOCALBASE}/lib/ocaml/site-lib/pxp-lex-iso88591/pxp_lex_iso88591.a:${PORTSDIR}/textproc/ocaml-pxp X X# Support for url via ftp/ocaml-ocurl X.if !defined(WITHOUT_OCURL) XBUILD_DEPENDS+= ${LOCALBASE}/lib/ocaml/site-lib/curl/curl.cmi:${PORTSDIR}/ftp/ocaml-ocurl X.endif X X# Support for the expat XML parser X.if defined(WITH_OCAML_EXPAT) XBUILD_DEPENDS+= ${LOCALBASE}/lib/ocaml/site-lib/expat/expat.cmi:${PORTSDIR}/textproc/ocaml-expat X.endif X XHAS_CONFIGURE= yes XCONFIGURE_ARGS= --prefix=${PREFIX} --with-ocamlopt X X# Be sure to not build ocurl support if WITHOUT_OCURL is defined, X# even if ocurl is present. X.if defined(WITHOUT_OCURL) XCONFIGURE_ARGS+= --without-curl X.endif X X.if defined(WITH_OCAML_EXPAT) XCONFIGURE_ARGS+= --with-expat X.endif X XUSE_GMAKE= yes X XALL_TARGET= all X XINSTALL_TARGET= install X X.if !defined(NOPORTDOCS) XCONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/${PORTNAME} XALL_TARGET+= doc XINSTALL_TARGET+= install_doc XPORTDOCS= * X.endif X XMAN1= cduce.1 dtd2cduce.1 validate.1 cdo2ml.1 X XPKGDEINSTALL= ${PKGINSTALL} XFINDLIB_PKGNAME=${PORTNAME} X XPLIST_FILES= bin/cduce bin/dtd2cduce bin/validate bin/cdo2ml X Xpost-install: X @${FIND} ${PREFIX}/lib/ocaml/site-lib/${FINDLIB_PKGNAME} -type f | \ X ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} X @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${FINDLIB_PKGNAME}" >> ${TMPPLIST} X @${ECHO_CMD} "@unexec ocamlfind remove ${FINDLIB_PKGNAME} 2>/dev/null || true" >> ${TMPPLIST} X Xpre-everything:: X @${ECHO} "" X @${ECHO} "You may define the following build options:" X @${ECHO} "" X @${ECHO} " WITHOUT_CURL Disable url support via ftp/ocaml-ocurl (=> no url support)" X @${ECHO} " WITH_OCAML_EXPAT Enable support for the expat XML parser" X @${ECHO} "" X @${ECHO} "WARNING : If you want to use the expat XML parser, you must install" X @${ECHO} "the port textproc/expat with option WITH_UT8, it won't prevent the" X @${ECHO} "port from building but the program will fail to run without it." X @${ECHO} "" X X.include <bsd.port.mk> END-of-/usr/ports/lang/cduce/Makefile echo x - /usr/ports/lang/cduce/pkg-descr sed 's/^X//' >/usr/ports/lang/cduce/pkg-descr << 'END-of-/usr/ports/lang/cduce/pkg-descr' XCDuce is modern programming language, adapted to the manipulation of XXML documents. This project is a spin-off of a research effort split Xamongst two CNRS labs (the Languages group of ENS in Paris and the XDatabases group of LRI in Orsay), and one INRIA project (the Cristal Xproject). Please see the CDuce team page for a list of researchers Xcontributing to this research effort. Some technical papers present Xthe theoretical foundations of the language. X XWARNING : If you want to use the expat XML parser, you must install Xthe port textproc/expat with option WITH_UT8, it won't prevent the Xport from building but the program will fail to run without it. X XWWW: http://www.cduce.org X X- Burelle Marwan Xburelle@lri.fr END-of-/usr/ports/lang/cduce/pkg-descr echo x - /usr/ports/lang/cduce/pkg-install sed 's/^X//' >/usr/ports/lang/cduce/pkg-install << 'END-of-/usr/ports/lang/cduce/pkg-install' X#!/bin/sh X Xif [ "$2" = "POST-INSTALL" ]; then X echo "${PKG_PREFIX}/lib/ocaml/site-lib/cduce" >> ${PKG_PREFIX}/lib/ocaml/ld.conf Xelif [ "$2" = "DEINSTALL" ]; then X mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp X grep -v cduce ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf X rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp Xfi END-of-/usr/ports/lang/cduce/pkg-install echo x - /usr/ports/lang/cduce/distinfo sed 's/^X//' >/usr/ports/lang/cduce/distinfo << 'END-of-/usr/ports/lang/cduce/distinfo' XMD5 (cduce-0.2.2.tar.gz) = dcfcc0d95afd349275e865da859d60db XSIZE (cduce-0.2.2.tar.gz) = 337483 END-of-/usr/ports/lang/cduce/distinfo exit --- cduce.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1108033164.0>