View | Details | Raw Unified | Return to bug 230446 | Differences between
and this patch

Collapse All | Expand All

(-)ftp/ocaml-ocurl/Makefile (-17 / +22 lines)
Lines 2-15 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ocurl
4
PORTNAME=	ocurl
5
PORTVERSION=	0.7.9
5
PORTVERSION=	0.8.2
6
CATEGORIES=	ftp
6
CATEGORIES=	ftp
7
MASTER_SITES=	http://ygrek.org.ua/p/release/ocurl/
8
PKGNAMEPREFIX=	ocaml-
7
PKGNAMEPREFIX=	ocaml-
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ndowens@yahoo.com
11
COMMENT=	Interface for OCaml to the curl lib
10
COMMENT=	Interface for OCaml to the curl lib
12
11
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
13
BUILD_DEPENDS=	ocamlc:lang/ocaml \
15
BUILD_DEPENDS=	ocamlc:lang/ocaml \
14
		ocamlfind:devel/ocaml-findlib
16
		ocamlfind:devel/ocaml-findlib
15
RUN_DEPENDS:=	${BUILD_DEPENDS}
17
RUN_DEPENDS:=	${BUILD_DEPENDS}
Lines 17-25 Link Here
17
19
18
USES=		gmake
20
USES=		gmake
19
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
20
CONFIGURE_ARGS+="--with-findlib"
22
#CONFIGURE_ARGS+="--with-findlib"
21
MAKE_JOBS_UNSAFE=	yes
22
23
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	ygrek
26
23
USE_OCAML=		yes
27
USE_OCAML=		yes
24
USE_OCAML_CAMLP4=	yes
28
USE_OCAML_CAMLP4=	yes
25
USE_OCAML_FINDLIB=	yes
29
USE_OCAML_FINDLIB=	yes
Lines 26-48 Link Here
26
USE_OCAML_LDCONFIG=	yes
30
USE_OCAML_LDCONFIG=	yes
27
OCAML_PKGDIRS=		curl
31
OCAML_PKGDIRS=		curl
28
32
29
OPTIONS_DEFINE=	LWT
33
OPTIONS_DEFINE=		LWT
30
OPTIONS_DEFAULT=LWT
34
OPTIONS_DEFAULT=	LWT
31
OPTIONS_SUB=	yes
35
OPTIONS_SUB=		yes
32
LWT_DESC=	Include threading support (ocaml-lwt)
36
LWT_DESC=		Include threading support (ocaml-lwt)
33
LWT_RUN_DEPENDS=${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/lwt.a:devel/ocaml-lwt
37
LWT_RUN_DEPENDS=	${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/lwt.a:devel/ocaml-lwt
34
LWT_BUILD_DEPENDS=${LWT_RUN_DEPENDS}
38
LWT_BUILD_DEPENDS=	${LWT_RUN_DEPENDS}
35
39
40
post-install-LWT-on:
41
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/curl_lwt.cmxs
42
36
post-install:
43
post-install:
37
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/dllcurl-helper.so
44
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/dllcurl-helper.so \
45
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/curl.cmxs \
38
46
39
.include <bsd.port.options.mk>
47
post-configure-LWT-off:
48
# Override auto-detection
40
49
41
.if ! ${PORT_OPTIONS:MLWT}
42
# Override auto-detection
43
post-configure:
44
	${REINPLACE_CMD} 's/(lwt,no)/(no,no)/' ${WRKSRC}/Makefile \
50
	${REINPLACE_CMD} 's/(lwt,no)/(no,no)/' ${WRKSRC}/Makefile \
45
		${WRKSRC}/examples/Makefile
51
		${WRKSRC}/examples/Makefile
46
.endif
47
52
48
.include <bsd.port.mk>
53
.include <bsd.port.mk>
(-)ftp/ocaml-ocurl/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1476625190
1
TIMESTAMP = 1533686147
2
SHA256 (ocurl-0.7.9.tar.gz) = 36a0103cf062ea2c5685a1615295cf765e49495adfcc620e4c17443e46b5a65e
2
SHA256 (ygrek-ocurl-0.8.2_GH0.tar.gz) = dcbadbdf97830de04a68454571bec9592c7f7be135bf1a1a5d8f8aa35c28ed24
3
SIZE (ocurl-0.7.9.tar.gz) = 108242
3
SIZE (ygrek-ocurl-0.8.2_GH0.tar.gz) = 111713
(-)ftp/ocaml-ocurl/pkg-plist (+2 lines)
Lines 6-11 Link Here
6
%%OCAML_SITELIBDIR%%/curl/curl.cmti
6
%%OCAML_SITELIBDIR%%/curl/curl.cmti
7
%%OCAML_SITELIBDIR%%/curl/curl.cmx
7
%%OCAML_SITELIBDIR%%/curl/curl.cmx
8
%%OCAML_SITELIBDIR%%/curl/curl.cmxa
8
%%OCAML_SITELIBDIR%%/curl/curl.cmxa
9
%%OCAML_SITELIBDIR%%/curl/curl.cmxs
10
%%LWT%%%%OCAML_SITELIBDIR%%/curl/curl_lwt.cmxs
9
%%OCAML_SITELIBDIR%%/curl/curl.mli
11
%%OCAML_SITELIBDIR%%/curl/curl.mli
10
%%LWT%%%%OCAML_SITELIBDIR%%/curl/curl_lwt.cmi
12
%%LWT%%%%OCAML_SITELIBDIR%%/curl/curl_lwt.cmi
11
%%LWT%%%%OCAML_SITELIBDIR%%/curl/curl_lwt.cmo
13
%%LWT%%%%OCAML_SITELIBDIR%%/curl/curl_lwt.cmo

Return to bug 230446