1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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/

PR:		ports/142143
Submitted by:	Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
Gabor Pali 2010-01-02 22:57:05 +00:00
parent 6278d8eeba
commit 086316c4aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247025
5 changed files with 116 additions and 0 deletions

View File

@ -551,6 +551,7 @@
SUBDIR += hs-mmap
SUBDIR += hs-pcre-light-ghc
SUBDIR += hs-readline
SUBDIR += hs-uniplate
SUBDIR += hs-utf8-string-ghc
SUBDIR += hs-uuagc
SUBDIR += hs-uulib

View File

@ -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>

View File

@ -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

View File

@ -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/

View File

@ -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