aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-fgl
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-01-13 05:55:40 +0800
committerpgj <pgj@FreeBSD.org>2010-01-13 05:55:40 +0800
commita5de891199c48d59ca57cbcec04598470b000c10 (patch)
tree02229a305a6063cc13611942d468f515959d74fa /devel/hs-fgl
parentae24224a33625add80248fe74f0ca7911b7de2b5 (diff)
downloadfreebsd-ports-gnome-a5de891199c48d59ca57cbcec04598470b000c10.tar.gz
freebsd-ports-gnome-a5de891199c48d59ca57cbcec04598470b000c10.tar.zst
freebsd-ports-gnome-a5de891199c48d59ca57cbcec04598470b000c10.zip
Martin Erwig's Functional Graph Library.
WWW: http://web.engr.oregonstate.edu/~erwig/fgl/haskell PR: ports/142496 Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'devel/hs-fgl')
-rw-r--r--devel/hs-fgl/Makefile82
-rw-r--r--devel/hs-fgl/distinfo3
-rw-r--r--devel/hs-fgl/pkg-descr3
-rw-r--r--devel/hs-fgl/pkg-plist47
4 files changed, 135 insertions, 0 deletions
diff --git a/devel/hs-fgl/Makefile b/devel/hs-fgl/Makefile
new file mode 100644
index 000000000000..bda8320c9114
--- /dev/null
+++ b/devel/hs-fgl/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for: hs-fgl
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fgl
+PORTVERSION= 5.4.2.2
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Martin Erwig Functional Graph Library
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+FGL_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DATADIR= ${PREFIX}/share/${DISTNAME}
+PORTDATA= *
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+FGL_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ FGL_VERSION=${FGL_VERSION} \
+ FGL_LIBDIR_REL=${FGL_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}/${FGL_LIBDIR_REL}/register.sh
+.if !defined(NOPORTDATA)
+ @${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/doc/CHANGES ${DATADIR} \
+ && ${INSTALL_DATA} ${WRKSRC}/doc/README ${DATADIR}
+.endif
+
+post-install:
+ ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+
+.include <bsd.port.mk>
diff --git a/devel/hs-fgl/distinfo b/devel/hs-fgl/distinfo
new file mode 100644
index 000000000000..d3efdd57b211
--- /dev/null
+++ b/devel/hs-fgl/distinfo
@@ -0,0 +1,3 @@
+MD5 (fgl-5.4.2.2.tar.gz) = ad49ce31af04c0fd9c6dbfa52801ff83
+SHA256 (fgl-5.4.2.2.tar.gz) = 8232c337f0792854bf2a12a5fd1bc46726fff05d2f599053286ff873364cd7d2
+SIZE (fgl-5.4.2.2.tar.gz) = 40401
diff --git a/devel/hs-fgl/pkg-descr b/devel/hs-fgl/pkg-descr
new file mode 100644
index 000000000000..9b3f068aae30
--- /dev/null
+++ b/devel/hs-fgl/pkg-descr
@@ -0,0 +1,3 @@
+Martin Erwig's Functional Graph Library.
+
+WWW: http://web.engr.oregonstate.edu/~erwig/fgl/haskell
diff --git a/devel/hs-fgl/pkg-plist b/devel/hs-fgl/pkg-plist
new file mode 100644
index 000000000000..7715fa9965cd
--- /dev/null
+++ b/devel/hs-fgl/pkg-plist
@@ -0,0 +1,47 @@
+@comment $FreeBSD$
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Basic.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Example.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graph.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Graphviz.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/FiniteMap.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Heap.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Queue.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/RootPath.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal/Thread.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad/IOArray.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/NodeMap.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/PatriciaTree.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/ArtPoint.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BCC.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/BFS.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/DFS.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Dominators.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/GVD.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Indep.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MST.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/MaxFlow2.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/Monad.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/SP.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query/TransClos.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Tree.hi
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSfgl-%%FGL_VERSION%%.o
+%%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSfgl-%%FGL_VERSION%%.a
+%%FGL_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Query
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Monad
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive/Internal
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph/Inductive
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Graph
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%FGL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%FGL_LIBDIR_REL%%
+@exec /bin/sh %D/%%FGL_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister fgl
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old