mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
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>
This commit is contained in:
parent
7f3c36366f
commit
e03809acea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247021
@ -525,6 +525,7 @@
|
||||
SUBDIR += hp48cc
|
||||
SUBDIR += hp48xgcc
|
||||
SUBDIR += hptools
|
||||
SUBDIR += hs-ObjectName
|
||||
SUBDIR += hs-QuickCheck
|
||||
SUBDIR += hs-Stream
|
||||
SUBDIR += hs-alex
|
||||
|
75
devel/hs-ObjectName/Makefile
Normal file
75
devel/hs-ObjectName/Makefile
Normal file
@ -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>
|
3
devel/hs-ObjectName/distinfo
Normal file
3
devel/hs-ObjectName/distinfo
Normal file
@ -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
|
5
devel/hs-ObjectName/pkg-descr
Normal file
5
devel/hs-ObjectName/pkg-descr
Normal file
@ -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/
|
14
devel/hs-ObjectName/pkg-plist
Normal file
14
devel/hs-ObjectName/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user