diff options
author | johans <johans@FreeBSD.org> | 2010-02-14 19:34:24 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2010-02-14 19:34:24 +0800 |
commit | d6c3b730aab6e9353152eec0198ea74c9fe09688 (patch) | |
tree | a047584274f7c1cc1a2825266bf9524eb5c48111 /ftp | |
parent | 042d54c72f5d78082044b37cbf1aa950297da93f (diff) | |
download | freebsd-ports-gnome-d6c3b730aab6e9353152eec0198ea74c9fe09688.tar.gz freebsd-ports-gnome-d6c3b730aab6e9353152eec0198ea74c9fe09688.tar.zst freebsd-ports-gnome-d6c3b730aab6e9353152eec0198ea74c9fe09688.zip |
- Update to 0.5.2
- Simplify Makefile using USE_OCAML_* variables
- Replace dynamic PLIST with static pkg-plist
- Claim maintainership
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/ocaml-ocurl/Makefile | 19 | ||||
-rw-r--r-- | ftp/ocaml-ocurl/distinfo | 6 | ||||
-rw-r--r-- | ftp/ocaml-ocurl/pkg-install | 9 | ||||
-rw-r--r-- | ftp/ocaml-ocurl/pkg-plist | 7 |
4 files changed, 16 insertions, 25 deletions
diff --git a/ftp/ocaml-ocurl/Makefile b/ftp/ocaml-ocurl/Makefile index 3331521697ef..542b7a388d44 100644 --- a/ftp/ocaml-ocurl/Makefile +++ b/ftp/ocaml-ocurl/Makefile @@ -4,14 +4,13 @@ # $FreeBSD$ PORTNAME= ocurl -PORTVERSION= 0.5.1 -PORTREVISION= 1 +PORTVERSION= 0.5.2 CATEGORIES= ftp MASTER_SITES= SF PKGNAMEPREFIX= ocaml- EXTRACT_SUFX= .tgz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= johans@stack.nl COMMENT= An interface for OCaml to the curl lib BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ @@ -20,20 +19,14 @@ RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ ocamlfind:${PORTSDIR}/devel/ocaml-findlib LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl -WRKSRC= ${WRKDIR}/ocurl +WRKSRC= ${WRKDIR}/${PORTNAME} USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+="--with-findlib" MAKE_JOBS_UNSAFE= yes -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 +USE_OCAML= yes +USE_OCAML_FINDLIB= yes +USE_OCAML_LDCONFIG= yes .include <bsd.port.mk> diff --git a/ftp/ocaml-ocurl/distinfo b/ftp/ocaml-ocurl/distinfo index 67966a2cd1e8..19a132126087 100644 --- a/ftp/ocaml-ocurl/distinfo +++ b/ftp/ocaml-ocurl/distinfo @@ -1,3 +1,3 @@ -MD5 (ocurl-0.5.1.tgz) = 0c6601090c9d3ef8ecb3f7b5e3c66541 -SHA256 (ocurl-0.5.1.tgz) = aca165cf30dceda90a0c65c273d9a6857c9ddc08da0f3e6880e5f9ac605404d3 -SIZE (ocurl-0.5.1.tgz) = 91211 +MD5 (ocurl-0.5.2.tgz) = c4b0fdf5ecf31333c98a6716ef0dd989 +SHA256 (ocurl-0.5.2.tgz) = 70641d774e3ee296fe0ec35a47cfd7f56c2013119412fbe28489d35363746016 +SIZE (ocurl-0.5.2.tgz) = 91376 diff --git a/ftp/ocaml-ocurl/pkg-install b/ftp/ocaml-ocurl/pkg-install deleted file mode 100644 index b796d70cafc8..000000000000 --- a/ftp/ocaml-ocurl/pkg-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/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 diff --git a/ftp/ocaml-ocurl/pkg-plist b/ftp/ocaml-ocurl/pkg-plist new file mode 100644 index 000000000000..11962ef45b0c --- /dev/null +++ b/ftp/ocaml-ocurl/pkg-plist @@ -0,0 +1,7 @@ +%%OCAML_SITELIBDIR%%/curl/META +%%OCAML_SITELIBDIR%%/curl/curl.a +%%OCAML_SITELIBDIR%%/curl/curl.cma +%%OCAML_SITELIBDIR%%/curl/curl.cmi +%%OCAML_SITELIBDIR%%/curl/curl.cmxa +%%OCAML_SITELIBDIR%%/curl/libcurl-helper.a +@dirrm %%OCAML_SITELIBDIR%%/curl |