Date: Tue, 29 Dec 2009 13:07:06 -0800 (PST) From: Jacula Modyun <jacula@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/142144: [new port]: haskell port devel/hs-safe Message-ID: <200912292107.nBTL72YQ042458@splork.wirewater.yow> Resent-Message-ID: <200912292110.nBTLA48o097763@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142144 >Category: ports >Synopsis: [new port]: haskell port devel/hs-safe >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 Dec 29 21:10:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jacula Modyun >Release: FreeBSD 7.1-PRERELEASE i386 >Organization: >Environment: System: FreeBSD splork.wirewater.yow 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Oct 18 11:22:07 UTC 2008 root@splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386 >Description: A library for increasing the safety of your code, by wrapping Prelude functions that potentially crash. These functions can be used to reduce the number of unsafe pattern matches in a program. These functions can be used in conjunction with Catch. http://www-users.cs.york.ac.uk/~ndm/safe/ >How-To-Repeat: >Fix: --- hs-safe.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: # # hs-safe # hs-safe/Makefile # hs-safe/distinfo # hs-safe/pkg-plist # hs-safe/pkg-descr # echo c - hs-safe mkdir -p hs-safe > /dev/null 2>&1 echo x - hs-safe/Makefile sed 's/^X//' >hs-safe/Makefile << '3fb4a409209edc7a7b3c5322ae3c48ec' X# New ports collection makefile for: hs-safe X# Date created: December 20 2009 X# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> X# X XPORTNAME= safe XPORTVERSION= 0.2 XCATEGORIES= devel haskell XMASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ XPKGNAMEPREFIX= hs- X XMAINTAINER= jacula@gmail.com XCOMMENT= Library for safe (pattern match free) functions X XBUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc XRUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc X XGHC_VERSION= 6.10.4 XSAFE_VERSION= ${PORTVERSION} X XGHC_CMD= ${LOCALBASE}/bin/ghc XSETUP_CMD= ./setup X XDOCSDIR= ${PREFIX}/share/doc/${DISTNAME} XSAFE_LIBDIR_REL= lib/${DISTNAME} X XPLIST_SUB= GHC_VERSION=${GHC_VERSION} \ X SAFE_VERSION=${SAFE_VERSION} \ X SAFE_LIBDIR_REL=${SAFE_LIBDIR_REL} X X.if defined(NOPORTDOCS) XPLIST_SUB+= NOPORTDOCS="" X.else XPLIST_SUB+= NOPORTDOCS="@comment " X.endif X X.if !defined(NOPORTDOCS) X XPORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) X.if !empty(PORT_HADDOCK:M?0) XBUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock X.endif XBUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour X XHSCOLOUR_VERSION= 1.15 XHSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} X XPORTDOCS= * X.endif X X.SILENT: X Xdo-configure: X cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \ X && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} X Xdo-build: X cd ${WRKSRC} && ${SETUP_CMD} build \ X && ${SETUP_CMD} register --gen-script X X.if !defined(NOPORTDOCS) X cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ X --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css X.endif X Xdo-install: X cd ${WRKSRC} && ${SETUP_CMD} install \ X && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${SAFE_LIBDIR_REL}/register.sh X Xpost-install: X ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old X X.include <bsd.port.mk> 3fb4a409209edc7a7b3c5322ae3c48ec echo x - hs-safe/distinfo sed 's/^X//' >hs-safe/distinfo << 'a488d855450861654241c3f9568b76be' XMD5 (safe-0.2.tar.gz) = e5331578ea7e0b68ed1ea4df923a23ca XSHA256 (safe-0.2.tar.gz) = 73b9a247c3ba8092236c8c912687399778ff31bf3df42d707563a1528a6fc0e0 XSIZE (safe-0.2.tar.gz) = 3557 a488d855450861654241c3f9568b76be echo x - hs-safe/pkg-plist sed 's/^X//' >hs-safe/pkg-plist << '3e2853d0a08657aa62d2e496209fc618' X%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSsafe-%%SAFE_VERSION%%.o X%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Safe.hi X%%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSsafe-%%SAFE_VERSION%%.a X%%SAFE_LIBDIR_REL%%/register.sh X%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% X@dirrm %%SAFE_LIBDIR_REL%%/ghc-%%GHC_VERSION%% X@dirrm %%SAFE_LIBDIR_REL%% X@exec /bin/sh %D/%%SAFE_LIBDIR_REL%%/register.sh X@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old X@unexec %D/bin/ghc-pkg unregister safe X@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old 3e2853d0a08657aa62d2e496209fc618 echo x - hs-safe/pkg-descr sed 's/^X//' >hs-safe/pkg-descr << '7601a654d3bc6144eaa4df48cf090a1a' X XPartial functions from the base library, such as head and !!, modified to Xreturn more descriptive error messages, programmer defined error messages, XMaybe wrapped results and default values. X XThese functions can be used to reduce the number of unsafe pattern matches in Xyour code. X XWWW: http://www-users.cs.york.ac.uk/~ndm/safe/ 7601a654d3bc6144eaa4df48cf090a1a exit --- hs-safe.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912292107.nBTL72YQ042458>