View | Details | Raw Unified | Return to bug 280295
Collapse All | Expand All

(-)b/databases/ocaml-sqlite3/Makefile (-23 / +12 lines)
Lines 1-7 Link Here
1
PORTNAME=	sqlite3
1
PORTNAME=	sqlite3
2
PORTVERSION=	4.0.5
2
PORTVERSION=	5.1.0
3
DISTVERSIONPREFIX=	v
4
PORTREVISION=	2
5
CATEGORIES=	databases
3
CATEGORIES=	databases
6
PKGNAMEPREFIX=	ocaml-
4
PKGNAMEPREFIX=	ocaml-
7
5
Lines 11-46 WWW= https://mmottl.github.io/sqlite3-ocaml/ Link Here
11
9
12
LICENSE=	OCSQLT3
10
LICENSE=	OCSQLT3
13
LICENSE_NAME=	OCaml-SQLite3 unique permissive license
11
LICENSE_NAME=	OCaml-SQLite3 unique permissive license
14
LICENSE_FILE=	${WRKSRC}/COPYING.txt
12
LICENSE_FILE=	${WRKSRC}/LICENSE.md
15
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
13
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
14
17
BUILD_DEPENDS=	ocamlbuild:devel/ocaml-ocamlbuild
15
BUILD_DEPENDS=	ocamlbuild:devel/ocaml-ocamlbuild
18
16
19
USES=			compiler:features gmake pkgconfig sqlite
17
USES=			ocaml:dune pkgconfig sqlite
20
USE_OCAML=		yes
18
USE_GITHUB=	yes
21
USE_OCAML_FINDLIB=	yes
19
USE_OCAML=	yes
22
USE_OCAML_LDCONFIG=	yes
20
USE_OCAML_LDCONFIG=	yes
23
USE_OCAMLFIND_PLIST=	yes
24
HAS_CONFIGURE=		yes
25
MAKE_JOBS_UNSAFE=	yes
26
CONFIGURE_ARGS=		--destdir "${STAGEDIR}" \
27
			--prefix "${PREFIX}"
28
21
29
GH_ACCOUNT=	mmottl
22
GH_ACCOUNT=	mmottl
30
GH_PROJECT=	${PORTNAME}-ocaml
23
GH_PROJECT=	${PORTNAME}-ocaml
31
USE_GITHUB=	yes
32
33
post-patch:
34
	@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,' \
35
		${WRKSRC}/setup.ml
36
24
37
do-configure:
25
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
38
	(cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS})
26
PORTDOCS=	CHANGES.md LICENSE.md README.md
39
27
40
do-build:
28
OPTIONS_DEFINE=	DOCS
41
	(cd ${WRKSRC} && ocaml setup.ml -build)
42
29
43
do-install:
30
post-install:
44
	(cd ${WRKSRC} && ocaml setup.ml -install)
31
	@${STRIP_CMD} \
32
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/dllsqlite3_stubs.so \
33
		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/sqlite3.cmxs
45
34
46
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)b/databases/ocaml-sqlite3/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1470261597
1
TIMESTAMP = 1717452118
2
SHA256 (mmottl-sqlite3-ocaml-v4.0.5_GH0.tar.gz) = bf0bdc597533d62b8de2798e9aa46c37570875cb4af4f9f42fba21dd59f3f0cb
2
SHA256 (mmottl-sqlite3-ocaml-5.1.0_GH0.tar.gz) = 046ceaacb08f97a699eddd6d3201b4586ea3ec3ed59adc019e97ce1490090086
3
SIZE (mmottl-sqlite3-ocaml-v4.0.5_GH0.tar.gz) = 67839
3
SIZE (mmottl-sqlite3-ocaml-5.1.0_GH0.tar.gz) = 33362
(-)a/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c (-14 lines)
Removed Link Here
1
$NetBSD: patch-lib_sqlite3_stubs.c,v 1.1 2012/09/16 11:34:46 jaapb Exp $
2
3
Correct system-dependent defines
4
--- lib/sqlite3_stubs.c.orig	2012-07-20 15:39:49 UTC
5
+++ lib/sqlite3_stubs.c
6
@@ -40,7 +40,7 @@
7
 
8
 #if __GNUC__ >= 3
9
 # define inline inline __attribute__ ((always_inline))
10
-# if !defined(__FreeBSD__) && !__APPLE__
11
+# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !__APPLE__
12
 # define __unused __attribute__ ((unused))
13
 # endif
14
 #else
(-)b/databases/ocaml-sqlite3/pkg-plist (+15 lines)
Added Link Here
1
%%OCAML_SITELIBDIR%%/sqlite3/META
2
%%OCAML_SITELIBDIR%%/sqlite3/dllsqlite3_stubs.so
3
%%OCAML_SITELIBDIR%%/sqlite3/dune-package
4
%%OCAML_SITELIBDIR%%/sqlite3/libsqlite3_stubs.a
5
%%OCAML_SITELIBDIR%%/sqlite3/opam
6
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.a
7
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cma
8
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmi
9
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmt
10
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmti
11
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmx
12
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmxa
13
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmxs
14
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.ml
15
%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.mli

Return to bug 280295