ports/102107: [NEW PORT] devel/ocaml-res: Automatically Resizing Contiguous Memory for OCaml

Stanislav Sedov ssedov at mbsd.msk.ru
Tue Aug 15 18:40:30 UTC 2006


>Number:         102107
>Category:       ports
>Synopsis:       [NEW PORT] devel/ocaml-res: Automatically Resizing Contiguous Memory for OCaml
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 15 18:40:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug  2 21:44:37 MSD
>Description:
This OCaml-library consists of a set of modules which implement
automatically resizing (= reallocating) datastructures that consume
a contiguous part of memory. This allows appending and removing of
elements to/from arrays (both boxed and unboxed), strings (-> buffers),
bit strings and weak arrays while still maintaining fast constant-time
access to elements.

There are also functors that allow the generation of similar modules
which use different reallocation strategies.

Author:	Markus Mottl <markus.mottl at gmail.com>
WWW:	http://www.ocaml.info/home/ocaml_sources.html

>How-To-Repeat:
>Fix:

--- ocaml-res-2.2.4.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	res
#	res/pkg-descr
#	res/Makefile
#	res/distinfo
#
echo c - res
mkdir -p res > /dev/null 2>&1
echo x - res/pkg-descr
sed 's/^X//' >res/pkg-descr << 'END-of-res/pkg-descr'
XThis OCaml-library consists of a set of modules which implement
Xautomatically resizing (= reallocating) datastructures that consume
Xa contiguous part of memory. This allows appending and removing of
Xelements to/from arrays (both boxed and unboxed), strings (-> buffers),
Xbit strings and weak arrays while still maintaining fast constant-time
Xaccess to elements.
X
XThere are also functors that allow the generation of similar modules
Xwhich use different reallocation strategies.
X
XAuthor:	Markus Mottl <markus.mottl at gmail.com>
XWWW:	http://www.ocaml.info/home/ocaml_sources.html
END-of-res/pkg-descr
echo x - res/Makefile
sed 's/^X//' >res/Makefile << 'END-of-res/Makefile'
X# New ports collection makefile for:	res
X# Date created:		2006-08-15
X# Whom:			Stanislav Sedov <ssedov at mbsd.msk.ru>
X#
X# $MBSDlabs$
X# $FreeBSD$
X#
X
XPORTNAME=	res
XPORTVERSION=	2.2.4
XCATEGORIES=	devel
XMASTER_SITES=	http://www.ocaml.info/ocaml_sources/
XPKGNAMEPREFIX=	ocaml-
X
XMAINTAINER=	ssedov at mbsd.msk.ru
XCOMMENT=	Automatically Resizing Contiguous Memory for OCaml
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_OCAML=	yes
XUSE_OCAML_FINDLIB=yes
XUSE_OCAML_WASH=	yes
X
XDOCS=		README
XDOCSDIR=	${TARGETDIR}/share/doc/ocaml/${PORTNAME}
XEXAMPLESDIR=	${TARGETDIR}/share/examples/ocaml/${PORTNAME}
X
X# XXX: exists untill it will be committed to bsd.port.mk
XCOPYTREE_SHARE=	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
X		2>&1) && \
X		${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
X		${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
X		${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
X
Xpost-extract:
X# For nonstandard prefixes
X.if !exists(${OCAMLFIND_DESTDIR})
X	${MKDIR} ${OCAMLFIND_DESTDIR}
X.endif
X
Xpost-install:
X	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
X		${SED} "s,^${TARGETDIR}/,," >> ${TMPPLIST}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
X	@${MKDIR} ${EXAMPLESDIR}
X	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
X	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
X		${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
X	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
X		${SED} 's,^${TARGETDIR}/, at dirrm ,' >> ${TMPPLIST}
X	@${FIND} ${DOCSDIR}/ ! -type d | \
X		${SED} 's,^${TARGETDIR}/,,' >> ${TMPPLIST}
X	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
X		${SED} 's,^${TARGETDIR}/, at dirrm ,' >> ${TMPPLIST}
X# XXX: temporary workaround for non-standard PREFIX
X	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
X		>> ${TMPPLIST}
X	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
X		>> ${TMPPLIST}
X.endif
X
X.include <bsd.port.post.mk>
END-of-res/Makefile
echo x - res/distinfo
sed 's/^X//' >res/distinfo << 'END-of-res/distinfo'
XMD5 (res-2.2.4.tar.bz2) = 1d1c522c193ad1bc9bd13760bc34f778
XSHA256 (res-2.2.4.tar.bz2) = a38dccb25822112a1e69acba6b271f587d299a7e3bd2cb0e8a09d11307744ac7
XSIZE (res-2.2.4.tar.bz2) = 33581
END-of-res/distinfo
exit
--- ocaml-res-2.2.4.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list