Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2009 13:56:58 -0800 (PST)
From:      Jacula Modyun <jacula@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142179: [new port]: haskell port mail/hs-mime
Message-ID:  <200912302156.nBULuvRQ089964@splork.wirewater.yow>
Resent-Message-ID: <200912302200.nBUM08Ls096132@freefall.freebsd.org>

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

>Number:         142179
>Category:       ports
>Synopsis:       [new port]: haskell port mail/hs-mime
>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:00:08 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:

mime: Working with MIME types.

http://hackage.haskell.org/package/mime

>How-To-Repeat:
	
>Fix:

	

--- hs-mime.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-mime
#	hs-mime/Makefile
#	hs-mime/distinfo
#	hs-mime/pkg-plist
#	hs-mime/pkg-descr
#
echo c - hs-mime
mkdir -p hs-mime > /dev/null 2>&1
echo x - hs-mime/Makefile
sed 's/^X//' >hs-mime/Makefile << '8bce6169d4213b72977f7f5889cf74b6'
X# New ports collection makefile for: hs-mime
X# Date created:        December 20 2009
X# Whom:                Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
X#
X
XPORTNAME=	mime
XPORTVERSION=	0.3.2
XCATEGORIES=	mail haskell
XMASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
XPKGNAMEPREFIX=	hs-
X
XMAINTAINER=	jacula@gmail.com
XCOMMENT=	Working with MIME types
X
XBUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
XRUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
X
XGHC_VERSION=	6.10.4
XHSMIME_VERSION=	${PORTVERSION}
X
XGHC_CMD=	${LOCALBASE}/bin/ghc
XSETUP_CMD=	./setup
X
XDOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
XHSMIME_LIBDIR_REL=	lib/${DISTNAME}
X
XPLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
X		HSMIME_VERSION=${HSMIME_VERSION} \
X		HSMIME_LIBDIR_REL=${HSMIME_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.hs -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}/${HSMIME_LIBDIR_REL}/register.sh
X
Xpost-install:
X	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
X
X.include <bsd.port.mk>
8bce6169d4213b72977f7f5889cf74b6
echo x - hs-mime/distinfo
sed 's/^X//' >hs-mime/distinfo << '231a23b4a4b468a2cac9c20ae611cc68'
XMD5 (mime-0.3.2.tar.gz) = ced0701b92c375296dcf30214797951d
XSHA256 (mime-0.3.2.tar.gz) = 39a80fd4d84c8017e78183ff17f8a436ad772bd21816a1ecffe903916a05c413
XSIZE (mime-0.3.2.tar.gz) = 8899
231a23b4a4b468a2cac9c20ae611cc68
echo x - hs-mime/pkg-plist
sed 's/^X//' >hs-mime/pkg-plist << 'da37c5063d73a7279afcb155ad7313a4'
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Base64.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Decode.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Parse.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/QuotedPrintable.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Type.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME/Utils.hi
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSmime-%%HSMIME_VERSION%%.o
X%%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSmime-%%HSMIME_VERSION%%.a
X%%HSMIME_LIBDIR_REL%%/register.sh
X%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
X@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec/MIME
X@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Codec
X@dirrm %%HSMIME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
X@dirrm %%HSMIME_LIBDIR_REL%%
X@exec /bin/sh %D/%%HSMIME_LIBDIR_REL%%/register.sh
X@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X@unexec %D/bin/ghc-pkg unregister mime
X@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
da37c5063d73a7279afcb155ad7313a4
echo x - hs-mime/pkg-descr
sed 's/^X//' >hs-mime/pkg-descr << '34592a2fc4dfc1d7988048c8d82574b4'
XWorking with MIME types.
X
XWWW: http://hackage.haskell.org/package/mime
34592a2fc4dfc1d7988048c8d82574b4
exit
--- hs-mime.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?200912302156.nBULuvRQ089964>