From 75236c0e70fbf723f4238602428a528496cc2763 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sun, 8 Aug 2004 19:20:32 +0000 Subject: Add ocaml-ocurl 0.2.0, an interface for OCaml to the curl lib. PR: 70085 Submitted by: Marwan BURELLE --- ftp/Makefile | 1 + ftp/ocaml-ocurl/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ ftp/ocaml-ocurl/distinfo | 2 ++ ftp/ocaml-ocurl/pkg-descr | 9 +++++++++ ftp/ocaml-ocurl/pkg-install | 9 +++++++++ 5 files changed, 59 insertions(+) create mode 100644 ftp/ocaml-ocurl/Makefile create mode 100644 ftp/ocaml-ocurl/distinfo create mode 100644 ftp/ocaml-ocurl/pkg-descr create mode 100644 ftp/ocaml-ocurl/pkg-install (limited to 'ftp') diff --git a/ftp/Makefile b/ftp/Makefile index ab6d83014bad..78b70376b858 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -58,6 +58,7 @@ SUBDIR += ncftp2 SUBDIR += ncftp3 SUBDIR += ncftpd + SUBDIR += ocaml-ocurl SUBDIR += oftpd SUBDIR += omi SUBDIR += p5-Net-FTP-Common diff --git a/ftp/ocaml-ocurl/Makefile b/ftp/ocaml-ocurl/Makefile new file mode 100644 index 000000000000..75e14a639d7d --- /dev/null +++ b/ftp/ocaml-ocurl/Makefile @@ -0,0 +1,38 @@ +# Ports collection makefile for: ocurl +# Date created: Aug 6, 2004 +# Whom: Marwan BURELLE +# $FreeBSD$ + +PORTNAME= ocurl +PORTVERSION= 0.2.0 +CATEGORIES= ftp +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMEPREFIX= ocaml- +EXTRACT_SUFX= .tgz + +MAINTAINER= marwan.burelle@lri.fr +COMMENT= An interface for OCaml to the curl lib + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl + +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+="--with-findlib" +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +PKGDEINSTALL= ${PKGINSTALL} +FINDLIB_PKGNAME=${PORTNAME:S/o//} + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/site-lib/${FINDLIB_PKGNAME} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${FINDLIB_PKGNAME}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove ${FINDLIB_PKGNAME} 2>/dev/null || true" >> ${TMPPLIST} + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include diff --git a/ftp/ocaml-ocurl/distinfo b/ftp/ocaml-ocurl/distinfo new file mode 100644 index 000000000000..4bd654157095 --- /dev/null +++ b/ftp/ocaml-ocurl/distinfo @@ -0,0 +1,2 @@ +MD5 (ocurl-0.2.0.tgz) = 79200fb81232c91002b1e008dd75cba5 +SIZE (ocurl-0.2.0.tgz) = 73868 diff --git a/ftp/ocaml-ocurl/pkg-descr b/ftp/ocaml-ocurl/pkg-descr new file mode 100644 index 000000000000..58fc9d4a6c77 --- /dev/null +++ b/ftp/ocaml-ocurl/pkg-descr @@ -0,0 +1,9 @@ +The Ocaml Curl Library (Ocurl) is an interface library for the +programming language Ocaml to the networking library +libcurl. Currently Ocurl requires libcurl 7.9.8 or newer (using older +versions may yield compilation errors). + +WWW: http://sourceforge.net/projects/ocurl + +- Marwan Burelle + diff --git a/ftp/ocaml-ocurl/pkg-install b/ftp/ocaml-ocurl/pkg-install new file mode 100644 index 000000000000..b796d70cafc8 --- /dev/null +++ b/ftp/ocaml-ocurl/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$2" = "POST-INSTALL" ]; then + echo "${PKG_PREFIX}/lib/ocaml/site-lib/curl" >> ${PKG_PREFIX}/lib/ocaml/ld.conf +elif [ "$2" = "DEINSTALL" ]; then + mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp + grep -v curl ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf + rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp +fi -- cgit v1.2.3