diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-01-02 22:44:04 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-01-02 22:44:04 +0000 |
commit | e03809acea95ed881b62ecdbf1f7ec4a44e09bdf (patch) | |
tree | b7628f7b02f380b9ced34452ca7a7028903a8dce /devel/hs-ObjectName | |
parent | 7f3c36366f9083983919fec00110b853be0a81fe (diff) | |
download | ports-e03809acea95ed881b62ecdbf1f7ec4a44e09bdf.tar.gz ports-e03809acea95ed881b62ecdbf1f7ec4a44e09bdf.zip |
Notes
Diffstat (limited to 'devel/hs-ObjectName')
-rw-r--r-- | devel/hs-ObjectName/Makefile | 75 | ||||
-rw-r--r-- | devel/hs-ObjectName/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-ObjectName/pkg-descr | 5 | ||||
-rw-r--r-- | devel/hs-ObjectName/pkg-plist | 14 |
4 files changed, 97 insertions, 0 deletions
diff --git a/devel/hs-ObjectName/Makefile b/devel/hs-ObjectName/Makefile new file mode 100644 index 000000000000..dbb2d795f862 --- /dev/null +++ b/devel/hs-ObjectName/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: hs-ObjectName +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= ObjectName +PORTVERSION= 1.0.0.0 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Explicitly handled object names for Haskell + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.10.4 +OBJECTNAME_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +OBJECTNAME_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + OBJECTNAME_VERSION=${OBJECTNAME_VERSION} \ + OBJECTNAME_LIBDIR_REL=${OBJECTNAME_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}/${OBJECTNAME_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-ObjectName/distinfo b/devel/hs-ObjectName/distinfo new file mode 100644 index 000000000000..d1defce2acb1 --- /dev/null +++ b/devel/hs-ObjectName/distinfo @@ -0,0 +1,3 @@ +MD5 (ObjectName-1.0.0.0.tar.gz) = 00140131c26a51ae1118f685a73ad923 +SHA256 (ObjectName-1.0.0.0.tar.gz) = 358b7185d1f3e414a4a28155a93e15b433833967542f81354e50d0a88052217b +SIZE (ObjectName-1.0.0.0.tar.gz) = 1843 diff --git a/devel/hs-ObjectName/pkg-descr b/devel/hs-ObjectName/pkg-descr new file mode 100644 index 000000000000..3dda124ae15f --- /dev/null +++ b/devel/hs-ObjectName/pkg-descr @@ -0,0 +1,5 @@ +This tiny Haskell package contains the class ObjectName, which corresponds to +the general notion of explicitly handled identifiers for API objects, e.g. a +texture object name in OpenGL or a buffer object name in OpenAL. + +WWW: http://www.haskell.org/HOpenGL/ diff --git a/devel/hs-ObjectName/pkg-plist b/devel/hs-ObjectName/pkg-plist new file mode 100644 index 000000000000..14ac62aeaac6 --- /dev/null +++ b/devel/hs-ObjectName/pkg-plist @@ -0,0 +1,14 @@ +@comment $FreeBSD$ +%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ObjectName.hi +%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSObjectName-%%OBJECTNAME_VERSION%%.o +%%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSObjectName-%%OBJECTNAME_VERSION%%.a +%%OBJECTNAME_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data +@dirrm %%OBJECTNAME_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%OBJECTNAME_LIBDIR_REL%% +@exec /bin/sh %D/%%OBJECTNAME_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister ObjectName +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |