diff options
author | jaapb <jaapb@pkgsrc.org> | 2012-09-16 12:38:44 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2012-09-16 12:38:44 +0000 |
commit | d7b9e57dfc02eb6d5108b5065d4566c77255ddde (patch) | |
tree | f52d2f05c68adfc343b8d17bf955e5bfc55bcce0 | |
parent | f1441cde2318a88fe79202110c922b60f5fedd81 (diff) | |
download | pkgsrc-d7b9e57dfc02eb6d5108b5065d4566c77255ddde.tar.gz |
Imported ocurl 0.5.3 as www/ocaml-curl. Packaged by Rich Neswold, committed
with some corrections. This closes PR pkg/43601.
This package provides OCaml bindings to the CURL HTTP-client library.
-rw-r--r-- | www/ocaml-curl/DESCR | 1 | ||||
-rw-r--r-- | www/ocaml-curl/Makefile | 40 | ||||
-rw-r--r-- | www/ocaml-curl/PLIST | 9 | ||||
-rw-r--r-- | www/ocaml-curl/distinfo | 6 | ||||
-rw-r--r-- | www/ocaml-curl/patches/patch-Makefile.in | 18 |
5 files changed, 74 insertions, 0 deletions
diff --git a/www/ocaml-curl/DESCR b/www/ocaml-curl/DESCR new file mode 100644 index 00000000000..860673a7eee --- /dev/null +++ b/www/ocaml-curl/DESCR @@ -0,0 +1 @@ +This package provides OCaml bindings to the CURL HTTP-client library. diff --git a/www/ocaml-curl/Makefile b/www/ocaml-curl/Makefile new file mode 100644 index 00000000000..4774a7344d6 --- /dev/null +++ b/www/ocaml-curl/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1 2012/09/16 12:38:44 jaapb Exp $ +# + +DISTNAME= ocurl-0.5.3 +PKGNAME= ocaml-curl-0.5.3 +EXTRACT_SUFX= .tgz +CATEGORIES= www net devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ocurl/} + +MAINTAINER= rich.neswold@gmail.com +HOMEPAGE= http://sourceforge.net/projects/ocurl/ +COMMENT= OCaml bindings to the CURL library +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +MAKE_JOBS_SAFE= no + +DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib + +USE_TOOLS= gmake +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-findlib + +.include "../../mk/bsd.prefs.mk" + +PLIST_VARS+= opt +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") +PLIST.opt= yes +.endif + +WRKSRC= ${WRKDIR}/ocurl +USE_LANGUAGES= c + +INSTALLATION_DIRS+= lib/ocaml/site-lib + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ocaml-curl/PLIST b/www/ocaml-curl/PLIST new file mode 100644 index 00000000000..d0051e746bd --- /dev/null +++ b/www/ocaml-curl/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2012/09/16 12:38:44 jaapb Exp $ +lib/ocaml/site-lib/curl/META +${PLIST.opt}lib/ocaml/site-lib/curl/curl.a +lib/ocaml/site-lib/curl/curl.cma +lib/ocaml/site-lib/curl/curl.cmi +${PLIST.opt}lib/ocaml/site-lib/curl/curl.cmxa +lib/ocaml/site-lib/curl/curl.mli +${PLIST.opt}lib/ocaml/site-lib/curl/libcurl-helper.a +@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/curl diff --git a/www/ocaml-curl/distinfo b/www/ocaml-curl/distinfo new file mode 100644 index 00000000000..8cc9e2f519d --- /dev/null +++ b/www/ocaml-curl/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2012/09/16 12:38:44 jaapb Exp $ + +SHA1 (ocurl-0.5.3.tgz) = d074946ad61663aaed8a95bcdaee5bb6849fa163 +RMD160 (ocurl-0.5.3.tgz) = 588c88adcf6d304f3a1acc8d8fef53c16d4cadcf +Size (ocurl-0.5.3.tgz) = 87849 bytes +SHA1 (patch-Makefile.in) = 2dcf2d6f8ccb12b15dea8cf27cf31e13bbfed8be diff --git a/www/ocaml-curl/patches/patch-Makefile.in b/www/ocaml-curl/patches/patch-Makefile.in new file mode 100644 index 00000000000..fa4f0868c4b --- /dev/null +++ b/www/ocaml-curl/patches/patch-Makefile.in @@ -0,0 +1,18 @@ +$NetBSD: patch-Makefile.in,v 1.1 2012/09/16 12:38:44 jaapb Exp $ + +Install into correct DESTDIR, and install .cmi files +--- Makefile.in.orig 2009-11-07 21:05:52.000000000 +0000 ++++ Makefile.in +@@ -69,8 +69,10 @@ libcurl-helper.a: $(CURLHELPEROBJS) + + install: + ifeq ($(FINDLIB),ocamlfind) +- ocamlfind install curl META $(wildcard *.cmi) \ +- $(wildcard *.a) $(wildcard *.cma) $(wildcard *.cmxa) ++ ocamlfind install -ldconf ignore \ ++ -destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/ \ ++ curl META $(wildcard *.cmi) $(wildcard *.mli) \ ++ $(wildcard *.a) $(wildcard *.cma) $(wildcard *.cmxa) + else + mkdir -p $(INSTALLDIR) + $(INSTALLDATA) curl.cma $(INSTALLDIR) |