Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2009 14:08:06 -0800 (PST)
From:      Jacula Modyun <jacula@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142182: [new port]: haskell port www/hs-oeis
Message-ID:  <200912302208.nBUM85ck091891@splork.wirewater.yow>
Resent-Message-ID: <200912302210.nBUMA2I0005224@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142182
>Category:       ports
>Synopsis:       [new port]: haskell port www/hs-oeis
>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:   Wed Dec 30 22:10:02 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:

oeis: Interface to the Online Encyclopedia of Integer Sequences.

http://code.haskell.org/oeis

>How-To-Repeat:
	
>Fix:

	

--- hs-oeis.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-oeis
#	hs-oeis/Makefile
#	hs-oeis/distinfo
#	hs-oeis/pkg-plist
#	hs-oeis/pkg-descr
#
echo c - hs-oeis
mkdir -p hs-oeis > /dev/null 2>&1
echo x - hs-oeis/Makefile
sed 's/^X//' >hs-oeis/Makefile << 'a75b4172b00ee59d4a4a79e923816b49'
X# New ports collection makefile for: hs-oeis
X# Date created:        December 20 2009
X# Whom:                Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
X#
X
XPORTNAME=	oeis
XPORTVERSION=	0.2.2
XCATEGORIES=	www haskell
XMASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
XPKGNAMEPREFIX=	hs-
X
XMAINTAINER=	jacula@gmail.com
XCOMMENT=	Interface to the Online Encyclopedia of Integer Sequences
X
XBUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc \
X		hs-HTTP>=4000.0.2:${PORTSDIR}/www/hs-HTTP
XRUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc \
X		hs-HTTP>=4000.0.2:${PORTSDIR}/www/hs-HTTP
X
XGHC_VERSION=	6.10.4
XOEIS_VERSION=	${PORTVERSION}
X
XGHC_CMD=	${LOCALBASE}/bin/ghc
XSETUP_CMD=	./setup
X
XDATADIR=		${PREFIX}/share/${DISTNAME}
XDOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
XOEIS_LIBDIR_REL=	lib/${DISTNAME}
X
XPLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
X		OEIS_VERSION=${OEIS_VERSION} \
X		OEIS_LIBDIR_REL=${OEIS_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.lhs -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}/${OEIS_LIBDIR_REL}/register.sh
X
Xpost-install:
X	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
X
X.include <bsd.port.mk>
a75b4172b00ee59d4a4a79e923816b49
echo x - hs-oeis/distinfo
sed 's/^X//' >hs-oeis/distinfo << 'f24614e53d3505f052ed79a0f944cc21'
XMD5 (oeis-0.2.2.tar.gz) = 3e5f1a94647081033a27336d9a34f7fb
XSHA256 (oeis-0.2.2.tar.gz) = ac69aa48b29ea89c58c7ead5d0c2d62280526618667a024f35e89a71380606d0
XSIZE (oeis-0.2.2.tar.gz) = 7287
f24614e53d3505f052ed79a0f944cc21
echo x - hs-oeis/pkg-plist
sed 's/^X//' >hs-oeis/pkg-plist << '8a673b08a17f6ea8a44607c16ca231a7'
X%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSoeis-%%OEIS_VERSION%%.o
X%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math/OEIS.hi
X%%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSoeis-%%OEIS_VERSION%%.a
X%%OEIS_LIBDIR_REL%%/register.sh
X%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
X%%DATADIR%%/README
X%%DATADIR%%/example/Catalan.hs
X@dirrm %%DATADIR%%/example
X@dirrmtry %%DATADIR%%
X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
X@dirrm %%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Math
X@dirrm %%OEIS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
X@dirrm %%OEIS_LIBDIR_REL%%
X@exec /bin/sh %D/%%OEIS_LIBDIR_REL%%/register.sh
X@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X@unexec %D/bin/ghc-pkg unregister oeis
X@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
8a673b08a17f6ea8a44607c16ca231a7
echo x - hs-oeis/pkg-descr
sed 's/^X//' >hs-oeis/pkg-descr << '388c6fb578c9b8877c1ec8532960bea4'
XHaskell interface to the Online Encyclopedia of Integer Sequences.
X
XWWW: http://code.haskell.org/oeis
388c6fb578c9b8877c1ec8532960bea4
exit
--- hs-oeis.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?200912302208.nBUM85ck091891>