Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 05:46:42 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309288 - head/devel/ocaml-lacaml
Message-ID:  <201212200546.qBK5kgWV081053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Dec 20 05:46:41 2012
New Revision: 309288
URL: http://svnweb.freebsd.org/changeset/ports/309288

Log:
  - Update to 7.0.3.
  - Add LICENSE.
  
  PR:		ports/172229
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/devel/ocaml-lacaml/Makefile   (contents, props changed)
  head/devel/ocaml-lacaml/distinfo   (contents, props changed)
  head/devel/ocaml-lacaml/pkg-descr   (contents, props changed)

Modified: head/devel/ocaml-lacaml/Makefile
==============================================================================
--- head/devel/ocaml-lacaml/Makefile	Thu Dec 20 05:45:56 2012	(r309287)
+++ head/devel/ocaml-lacaml/Makefile	Thu Dec 20 05:46:41 2012	(r309288)
@@ -2,77 +2,62 @@
 # $FreeBSD$
 
 PORTNAME=	lacaml
-PORTVERSION=	5.4.7
-PORTREVISION=	1
+PORTVERSION=	7.0.3
 CATEGORIES=	devel
-MASTER_SITES=	http://hg.ocaml.info/release/lacaml/archive/
-DISTNAME=	release-${PORTVERSION}
+MASTER_SITES=	http://cdn.bitbucket.org/mmottl/lacaml/downloads/
 PKGNAMEPREFIX=	ocaml-
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	OCaml interface to BLAS and LAPACK libraries
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-11-26
+LICENSE=	LGPL21
 
-LIB_DEPENDS=	blas.2:${PORTSDIR}/math/blas \
-		lapack.4:${PORTSDIR}/math/lapack
+LIB_DEPENDS=	blas:${PORTSDIR}/math/blas \
+		lapack:${PORTSDIR}/math/lapack
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
 USE_OCAML=	yes
 USE_OCAML_FINDLIB=yes
+USE_OCAMLFIND_PLIST=yes
 USE_OCAML_LDCONFIG=yes
 USE_OCAML_WASH=	yes
-WRKSRC=		${WRKDIR}/lacaml-${DISTNAME}
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples \
+		--override conf_ccopt "${CFLAGS}" \
+		--override conf_cclib "${LDFLAGS:S,^.*[[:space:]],,}"
+MAKE_JOBS_UNSAFE=yes
 
 CFLAGS+=	-fPIC
-MAKE_ENV+=	OCAMLMKLIB_FLAGS="-L${LOCALBASE}/lib"
-MAKE_JOBS_UNSAFE=	yes
+LDFLAGS+=	-L${LOCALBASE}/lib -lblas -llapack
+
+DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
+EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
 
-DOCS=		README.txt TODO
-DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
-EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
-
-.include <bsd.port.pre.mk>
-
-post-extract:
-#
-# CFLAGS safety
-#
-	@${REINPLACE_CMD} -E \
-		-e 's,^(CFLAGS[[:space:]]*:=[[:space:]]*).*,\1${CFLAGS},' \
-		${WRKSRC}/lib/Makefile
-
-# For nonstandard prefixes
-.if !exists(${OCAMLFIND_DESTDIR})
-	${MKDIR} ${OCAMLFIND_DESTDIR}
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
 .endif
-.if !exists(${OCAMLFIND_LDCONF})
-	${TOUCH} ${OCAMLFIND_LDCONF}
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
 .endif
 
 post-install:
-	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
-		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
-	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-# XXX: temporary workaround for non-standard PREFIX
-	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
-		>> ${TMPPLIST}
-	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
-		>> ${TMPPLIST}
+	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/ocaml-lacaml/distinfo
==============================================================================
--- head/devel/ocaml-lacaml/distinfo	Thu Dec 20 05:45:56 2012	(r309287)
+++ head/devel/ocaml-lacaml/distinfo	Thu Dec 20 05:46:41 2012	(r309288)
@@ -1,2 +1,2 @@
-SHA256 (release-5.4.7.tar.bz2) = 87a833aa88c22accbf340a61dcf21f542def8d401be14df67ab4390f15cf8460
-SIZE (release-5.4.7.tar.bz2) = 86427
+SHA256 (lacaml-7.0.3.tar.gz) = 3ebd0b35ae0e4fe5cc5483e61a8bf1fb46ef8fed60f5c89a09e589b91b7ec982
+SIZE (lacaml-7.0.3.tar.gz) = 151742

Modified: head/devel/ocaml-lacaml/pkg-descr
==============================================================================
--- head/devel/ocaml-lacaml/pkg-descr	Thu Dec 20 05:45:56 2012	(r309287)
+++ head/devel/ocaml-lacaml/pkg-descr	Thu Dec 20 05:46:41 2012	(r309288)
@@ -6,4 +6,4 @@ This allows people to write high-perform
 applications that need linear algebra.
 
 Author:	Markus Mottl <markus.mottl@gmail.com>
-WWW:	http://www.ocaml.info/home/ocaml_sources.html
+WWW:	https://bitbucket.org/mmottl/lacaml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212200546.qBK5kgWV081053>