Add ocaml-ocurl 0.2.0, an interface for OCaml to the curl lib.
PR: 70085 Submitted by: Marwan BURELLE
This commit is contained in:
parent
551bf87ac3
commit
75236c0e70
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115676
5 changed files with 59 additions and 0 deletions
|
@ -58,6 +58,7 @@
|
|||
SUBDIR += ncftp2
|
||||
SUBDIR += ncftp3
|
||||
SUBDIR += ncftpd
|
||||
SUBDIR += ocaml-ocurl
|
||||
SUBDIR += oftpd
|
||||
SUBDIR += omi
|
||||
SUBDIR += p5-Net-FTP-Common
|
||||
|
|
38
ftp/ocaml-ocurl/Makefile
Normal file
38
ftp/ocaml-ocurl/Makefile
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Ports collection makefile for: ocurl
|
||||
# Date created: Aug 6, 2004
|
||||
# Whom: Marwan BURELLE <marwan.burelle@lri.fr>
|
||||
# $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 <bsd.port.mk>
|
2
ftp/ocaml-ocurl/distinfo
Normal file
2
ftp/ocaml-ocurl/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
MD5 (ocurl-0.2.0.tgz) = 79200fb81232c91002b1e008dd75cba5
|
||||
SIZE (ocurl-0.2.0.tgz) = 73868
|
9
ftp/ocaml-ocurl/pkg-descr
Normal file
9
ftp/ocaml-ocurl/pkg-descr
Normal file
|
@ -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
|
||||
<marwan.burelle@lri.fr>
|
9
ftp/ocaml-ocurl/pkg-install
Normal file
9
ftp/ocaml-ocurl/pkg-install
Normal file
|
@ -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
|
Loading…
Reference in a new issue