aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-uniplate
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-01-02 22:57:05 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-01-02 22:57:05 +0000
commit086316c4aa4686dddf4c675f1b7960659f1f39b0 (patch)
treebc66e20cc423bc1bef0468dcbb70adba5b10d334 /devel/hs-uniplate
parent6278d8eebaedaa424d776902643656ea1f3150da (diff)
downloadports-086316c4aa4686dddf4c675f1b7960659f1f39b0.tar.gz
ports-086316c4aa4686dddf4c675f1b7960659f1f39b0.zip
Notes
Diffstat (limited to 'devel/hs-uniplate')
-rw-r--r--devel/hs-uniplate/Makefile81
-rw-r--r--devel/hs-uniplate/distinfo3
-rw-r--r--devel/hs-uniplate/pkg-descr5
-rw-r--r--devel/hs-uniplate/pkg-plist26
4 files changed, 115 insertions, 0 deletions
diff --git a/devel/hs-uniplate/Makefile b/devel/hs-uniplate/Makefile
new file mode 100644
index 000000000000..2b99b543beb8
--- /dev/null
+++ b/devel/hs-uniplate/Makefile
@@ -0,0 +1,81 @@
+# New ports collection makefile for: hs-uniplate
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uniplate
+PORTVERSION= 1.2.0.3
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Uniform type generic traversals for Haskell
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+UNIPLATE_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DATADIR= ${PREFIX}/share/${DISTNAME}
+PORTDATA= *
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+UNIPLATE_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ UNIPLATE_VERSION=${UNIPLATE_VERSION} \
+ UNIPLATE_LIBDIR_REL=${UNIPLATE_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}/${UNIPLATE_LIBDIR_REL}/register.sh
+.if !defined(NOPORTDATA)
+ ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/uniplate.htm ${DATADIR}
+.endif
+
+post-install:
+ ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+
+.include <bsd.port.mk>
diff --git a/devel/hs-uniplate/distinfo b/devel/hs-uniplate/distinfo
new file mode 100644
index 000000000000..f6d2ab3f8af9
--- /dev/null
+++ b/devel/hs-uniplate/distinfo
@@ -0,0 +1,3 @@
+MD5 (uniplate-1.2.0.3.tar.gz) = e0e10700870f5b9756d4097e640164ca
+SHA256 (uniplate-1.2.0.3.tar.gz) = 77cf07c96ae62799d790284c0c84beca9ee17c9c2416d4de6641f3fddd644b58
+SIZE (uniplate-1.2.0.3.tar.gz) = 15433
diff --git a/devel/hs-uniplate/pkg-descr b/devel/hs-uniplate/pkg-descr
new file mode 100644
index 000000000000..a95486ac1b12
--- /dev/null
+++ b/devel/hs-uniplate/pkg-descr
@@ -0,0 +1,5 @@
+Uniplate is a boilerplate removal library, with similar goals to the
+original Scrap Your Boilerplate work. It requires few extensions to
+Haskell.
+
+WWW: http://www-users.cs.york.ac.uk/~ndm/uniplate/
diff --git a/devel/hs-uniplate/pkg-plist b/devel/hs-uniplate/pkg-plist
new file mode 100644
index 000000000000..25a92b74dfdf
--- /dev/null
+++ b/devel/hs-uniplate/pkg-plist
@@ -0,0 +1,26 @@
+@comment $FreeBSD$
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Biplate.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Compos.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateData.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateDirect.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateInternal.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/PlateTypeable.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/SYB.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Str.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/Uniplate.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateOn.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStr.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics/UniplateStrOn.hi
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuniplate-%%UNIPLATE_VERSION%%.o
+%%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuniplate-%%UNIPLATE_VERSION%%.a
+%%UNIPLATE_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Generics
+@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%UNIPLATE_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%UNIPLATE_LIBDIR_REL%%
+@exec /bin/sh %D/%%UNIPLATE_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister uniplate
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old