diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-03 06:44:04 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-03 06:44:04 +0800 |
commit | 79a4e5d71812db86603ce8a68a25638a3bc8f2a7 (patch) | |
tree | 21201e8088513dbf9366af1c258e3f2c666eb06b | |
parent | 61e9e02d73415d19cce25d3a7bd5ad6094af2da3 (diff) | |
download | freebsd-ports-gnome-79a4e5d71812db86603ce8a68a25638a3bc8f2a7.tar.gz freebsd-ports-gnome-79a4e5d71812db86603ce8a68a25638a3bc8f2a7.tar.zst freebsd-ports-gnome-79a4e5d71812db86603ce8a68a25638a3bc8f2a7.zip |
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/
PR: ports/142127
Submitted by: Jacula Modyun <jacula(at)gmail.com>
-rw-r--r-- | devel/Makefile | 1 | ||||
-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 |
5 files changed, 98 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index a3cc2f5d258c..5cc074211fee 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -525,6 +525,7 @@ SUBDIR += hp48cc SUBDIR += hp48xgcc SUBDIR += hptools + SUBDIR += hs-ObjectName SUBDIR += hs-QuickCheck SUBDIR += hs-Stream SUBDIR += hs-alex 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 |