Bug 176067 - [maintainer update] databases/ocaml-sqlite3 to 2.0.4
Summary: [maintainer update] databases/ocaml-sqlite3 to 2.0.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 13:30 UTC by jaapb
Modified: 2014-03-27 01:20 UTC (History)
0 users

See Also:


Attachments
file.diff (2.02 KB, patch)
2013-02-12 13:30 UTC, jaapb
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jaapb 2013-02-12 13:30:00 UTC
This is an update of databases/ocaml-sqlite3 to 2.0.4. Changes include a new build system and a change in distribution method, as well as bugfixes and some small extensions. It also fixes a build failure on my system.

Fix: svn diff of port directory included.

Patch attached with submission follows:
How-To-Repeat: n/a
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2013-02-14 08:16:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-03-28 06:19:20 UTC
Responsible Changed
From-To: miwi->bf

pass over to bf, he is dealing with the big ocaml update.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-03-26 18:14:25 UTC
Responsible Changed
From-To: bf->marino

Hi Jaap!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-27 01:14:33 UTC
Author: marino
Date: Thu Mar 27 01:14:25 2014
New Revision: 349313
URL: http://svnweb.freebsd.org/changeset/ports/349313
QAT: https://qat.redports.org/buildarchive/r349313/

Log:
  databases/ocaml-sqlite3: Upgrade from 1.6.1 -> 2.0.4 and stage
  
  The referenced PR was implemented, and then augmented with stage
  support from pkgsrc.  The unique license was also documented.
  
  PR:		ports/176067
  Submitted by:	maintainer (Jaap Boender)
  Stage support:	Taken from pkgsrc

Added:
  head/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c   (contents, props changed)
Deleted:
  head/databases/ocaml-sqlite3/files/patch-configure.ac
Modified:
  head/databases/ocaml-sqlite3/Makefile
  head/databases/ocaml-sqlite3/distinfo

Modified: head/databases/ocaml-sqlite3/Makefile
==============================================================================
--- head/databases/ocaml-sqlite3/Makefile	Thu Mar 27 01:03:59 2014	(r349312)
+++ head/databases/ocaml-sqlite3/Makefile	Thu Mar 27 01:14:25 2014	(r349313)
@@ -2,48 +2,42 @@
 # $FreeBSD$
 
 PORTNAME=	sqlite3
-PORTVERSION=	1.6.1
+PORTVERSION=	2.0.4
 CATEGORIES=	databases
-MASTER_SITES=	http://hg.ocaml.info/release/${PKGNAMEPREFIX}${PORTNAME}/archive/
+MASTER_SITES=	http://cdn.bitbucket.org/mmottl/sqlite3-ocaml/downloads/
 PKGNAMEPREFIX=	ocaml-
-DISTNAME=	release-${PORTVERSION}
+DISTNAME=	${PORTNAME}-ocaml-${PORTVERSION}
 
 MAINTAINER=	jaapb@kerguelen.org
 COMMENT=	OCaml bindings to sqlite3 library
 
-WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-release-${PORTVERSION}
+LICENSE=	OCSQLT3
+LICENSE_NAME=	OCaml-SQLite3 unique permissive license
+LICENSE_FILE=	${WRKSRC}/COPYING.txt
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-USE_AUTOTOOLS=		autoconf
-USE_GMAKE=		yes
+USES=			gmake pkgconfig
 USE_SQLITE=		yes
 USE_OCAML=		yes
 USE_OCAML_FINDLIB=	yes
 USE_OCAML_LDCONFIG=	yes
 USE_OCAMLFIND_PLIST=	yes
+HAS_CONFIGURE=		yes
 MAKE_JOBS_UNSAFE=	yes
+CONFIGURE_ARGS=		--destdir "${STAGEDIR}" \
+			--prefix "${PREFIX}"
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	CC="${CC}"\
-		CFLAGS="${CFLAGS}"\
-		CPPFLAGS="-UHAVE_ALLOCA_H -I${PREFIX}/include"\
-		LDFLAGS="-L${PREFIX}/lib"\
-		LIBS="${PTHREAD_LIBS}"
-
-USE_BZIP2=	yes
-
-DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-PORTDOCS=	style.css *.html
-
-PLIST_FILES=	bin/sqlite3top
-
-NO_STAGE=	yes
-post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@( cd ${WRKSRC}/doc;\
-	   for f in `${FIND} . -type f -print`; do\
-		${INSTALL_DATA} $${f} ${DOCSDIR};\
-	   done )
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,' \
+		${WRKSRC}/setup.ml
+
+do-configure:
+	(cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS})
+
+do-build:
+	(cd ${WRKSRC} && ocaml setup.ml -build)
+
+do-install:
+	(cd ${WRKSRC} && ocaml setup.ml -install)
 
 .include <bsd.port.mk>

Modified: head/databases/ocaml-sqlite3/distinfo
==============================================================================
--- head/databases/ocaml-sqlite3/distinfo	Thu Mar 27 01:03:59 2014	(r349312)
+++ head/databases/ocaml-sqlite3/distinfo	Thu Mar 27 01:14:25 2014	(r349313)
@@ -1,2 +1,2 @@
-SHA256 (release-1.6.1.tar.bz2) = 9d5ed422de61497436475329c3a9956870cfb8d0a272f764a9e57faff7ebea9f
-SIZE (release-1.6.1.tar.bz2) = 54462
+SHA256 (sqlite3-ocaml-2.0.4.tar.gz) = 51ccb4c7a240eb40652c59e1770cfe1827dfa1eb926c969d19ff414aef4e80a1
+SIZE (sqlite3-ocaml-2.0.4.tar.gz) = 60665

Added: head/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c	Thu Mar 27 01:14:25 2014	(r349313)
@@ -0,0 +1,14 @@
+$NetBSD: patch-lib_sqlite3_stubs.c,v 1.1 2012/09/16 11:34:46 jaapb Exp $
+
+Correct system-dependent defines
+--- lib/sqlite3_stubs.c.orig	2012-07-20 15:39:49.000000000 +0000
++++ lib/sqlite3_stubs.c
+@@ -40,7 +40,7 @@
+ 
+ #if __GNUC__ >= 3
+ # define inline inline __attribute__ ((always_inline))
+-# if !defined(__FreeBSD__) && !__APPLE__
++# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly) && !__APPLE__
+ # define __unused __attribute__ ((unused))
+ # endif
+ #else
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 John Marino freebsd_committer freebsd_triage 2014-03-27 01:16:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!