mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
A type class for the error function, erf, and related functions for Haskell.
Instances for Float and Double. WWW: http://hackage.haskell.org/package/erf PR: ports/142284 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
0750ae01b0
commit
d8d1f7445d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247108
@ -115,6 +115,7 @@
|
||||
SUBDIR += hs-Agda
|
||||
SUBDIR += hs-Agda-executable
|
||||
SUBDIR += hs-category-extras
|
||||
SUBDIR += hs-erf
|
||||
SUBDIR += igraph
|
||||
SUBDIR += isabelle
|
||||
SUBDIR += itl
|
||||
|
75
math/hs-erf/Makefile
Normal file
75
math/hs-erf/Makefile
Normal file
@ -0,0 +1,75 @@
|
||||
# New ports collection makefile for: hs-erf
|
||||
# Date created: December 20 2009
|
||||
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= erf
|
||||
PORTVERSION= 1.0.0.0
|
||||
CATEGORIES= math haskell
|
||||
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
|
||||
PKGNAMEPREFIX= hs-
|
||||
|
||||
MAINTAINER= jacula@gmail.com
|
||||
COMMENT= The error function, erf, and friends for Haskell
|
||||
|
||||
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
||||
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
|
||||
|
||||
GHC_VERSION= 6.10.4
|
||||
ERF_VERSION= ${PORTVERSION}
|
||||
|
||||
GHC_CMD= ${LOCALBASE}/bin/ghc
|
||||
SETUP_CMD= ./setup
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
|
||||
ERF_LIBDIR_REL= lib/${DISTNAME}
|
||||
|
||||
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
|
||||
ERF_VERSION=${ERF_VERSION} \
|
||||
ERF_LIBDIR_REL=${ERF_LIBDIR_REL}
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
PLIST_SUB+= NOPORTDOCS=""
|
||||
.else
|
||||
PLIST_SUB+= NOPORTDOCS="@comment "
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
||||
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
|
||||
.if !empty(PORT_HADDOCK:M?0)
|
||||
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
||||
.endif
|
||||
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
|
||||
|
||||
HSCOLOUR_VERSION= 1.15
|
||||
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
|
||||
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
.SILENT:
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
|
||||
&& ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${SETUP_CMD} build \
|
||||
&& ${SETUP_CMD} register --gen-script
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
|
||||
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ${SETUP_CMD} install \
|
||||
&& ${INSTALL_SCRIPT} register.sh ${PREFIX}/${ERF_LIBDIR_REL}/register.sh
|
||||
|
||||
post-install:
|
||||
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
|
||||
|
||||
.include <bsd.port.mk>
|
3
math/hs-erf/distinfo
Normal file
3
math/hs-erf/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (erf-1.0.0.0.tar.gz) = 1bdb56838565abfaa7d7ab6e2870ddaa
|
||||
SHA256 (erf-1.0.0.0.tar.gz) = d6e27965a5961e135b68c39f38137727ccd01d8c1d588c67fb996167354b6b7e
|
||||
SIZE (erf-1.0.0.0.tar.gz) = 974
|
4
math/hs-erf/pkg-descr
Normal file
4
math/hs-erf/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
A type class for the error function, erf, and related functions for Haskell.
|
||||
Instances for Float and Double.
|
||||
|
||||
WWW: http://hackage.haskell.org/package/erf
|
14
math/hs-erf/pkg-plist
Normal file
14
math/hs-erf/pkg-plist
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $FreeBSD$
|
||||
%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number/Erf.hi
|
||||
%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSerf-%%ERF_VERSION%%.o
|
||||
%%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSerf-%%ERF_VERSION%%.a
|
||||
%%ERF_LIBDIR_REL%%/register.sh
|
||||
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Number
|
||||
@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
|
||||
@dirrm %%ERF_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm %%ERF_LIBDIR_REL%%
|
||||
@exec /bin/sh %D/%%ERF_LIBDIR_REL%%/register.sh
|
||||
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec %D/bin/ghc-pkg unregister erf
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user