1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Update to 2.1.1.2

- Add PORTDOCS
- Fix COMMENT

Approved by:	tabthorpe
This commit is contained in:
Gabor Pali 2009-01-26 21:07:08 +00:00
parent 0ec1b121b7
commit a9598846a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226921
6 changed files with 38 additions and 16 deletions

View File

@ -5,8 +5,7 @@
# $FreeBSD$
PORTNAME= glut
PORTVERSION= 2.1.1.1
PORTREVISION= 3
PORTVERSION= 2.1.1.2
CATEGORIES= x11-toolkits haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
PKGNAMEPREFIX= hs-
@ -14,7 +13,7 @@ PKGNAMESUFFIX= -ghc
DISTNAME= GLUT-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Compiler for the functional language Haskell
COMMENT= A Haskell binding for the OpenGL Utility Toolkit
USE_GL= glut
@ -23,6 +22,8 @@ PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
PORTVERSION=${PORTVERSION} \
PORTNAME=${PORTNAME} \
SUBDIR=lib/ghc-${GHC_VERSION}/cabal
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PORTDOCS= LICENSE html
.include <bsd.port.pre.mk>
@ -36,6 +37,13 @@ CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs
SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
PLIST_SUB+= RMLIC="@comment "
.else
PLIST_SUB+= RMLIC=""
.endif
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \
--libsubdir='' --datasubdir=''
@ -43,6 +51,9 @@ do-configure:
do-build:
cd ${WRKSRC} && ${CABALCMD} build \
&& ${CABALCMD} --gen-script register
.if !defined(NOPORTDOCS)
cd ${WRKSRC} && ${CABALCMD} haddock
.endif
do-install:
cd ${WRKSRC} && ${CABALCMD} install \

View File

@ -1,3 +1,3 @@
MD5 (GLUT-2.1.1.1.tar.gz) = 0af5df3ede4db67a1efa03bc55e08c01
SHA256 (GLUT-2.1.1.1.tar.gz) = 09631322c78c1d5d2733fb5324344db68e99015162445c3364b844308c1e027e
SIZE (GLUT-2.1.1.1.tar.gz) = 121577
MD5 (GLUT-2.1.1.2.tar.gz) = 67e5996a7fe56af764393f1cf80b9a43
SHA256 (GLUT-2.1.1.2.tar.gz) = d5ecf4b6bacc5e68ade00710df04fa158c6ed322c74362954716a0baba6bd3fb
SIZE (GLUT-2.1.1.2.tar.gz) = 121228

View File

@ -23,8 +23,8 @@
%%SUBDIR%%/HSGLUT-%%PORTVERSION%%.o
%%SUBDIR%%/include/HsGLUT.h
%%SUBDIR%%/%%PORTNAME%%-register.sh
share/doc/GLUT-%%PORTVERSION%%/LICENSE
@dirrm share/doc/GLUT-%%PORTVERSION%%
%%RMLIC%%%%DOCSDIR%%/LICENSE
%%RMLIC%%@dirrm %%DOCSDIR%%
@dirrm %%SUBDIR%%/Graphics/UI/GLUT/Callbacks
@dirrm %%SUBDIR%%/Graphics/UI/GLUT
@dirrmtry %%SUBDIR%%/Graphics/UI

View File

@ -5,8 +5,7 @@
# $FreeBSD$
PORTNAME= glut
PORTVERSION= 2.1.1.1
PORTREVISION= 3
PORTVERSION= 2.1.1.2
CATEGORIES= x11-toolkits haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/GLUT/${PORTVERSION}/
PKGNAMEPREFIX= hs-
@ -14,7 +13,7 @@ PKGNAMESUFFIX= -ghc
DISTNAME= GLUT-${PORTVERSION}
MAINTAINER= haskell@FreeBSD.org
COMMENT= A Compiler for the functional language Haskell
COMMENT= A Haskell binding for the OpenGL Utility Toolkit
USE_GL= glut
@ -23,6 +22,8 @@ PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
PORTVERSION=${PORTVERSION} \
PORTNAME=${PORTNAME} \
SUBDIR=lib/ghc-${GHC_VERSION}/cabal
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
PORTDOCS= LICENSE html
.include <bsd.port.pre.mk>
@ -36,6 +37,13 @@ CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs
SUBDIR= ${PORTNAME}${PKGNAMESUFFIX}
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
PLIST_SUB+= RMLIC="@comment "
.else
PLIST_SUB+= RMLIC=""
.endif
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX} --libdir=${CABALDIR} \
--libsubdir='' --datasubdir=''
@ -43,6 +51,9 @@ do-configure:
do-build:
cd ${WRKSRC} && ${CABALCMD} build \
&& ${CABALCMD} --gen-script register
.if !defined(NOPORTDOCS)
cd ${WRKSRC} && ${CABALCMD} haddock
.endif
do-install:
cd ${WRKSRC} && ${CABALCMD} install \

View File

@ -1,3 +1,3 @@
MD5 (GLUT-2.1.1.1.tar.gz) = 0af5df3ede4db67a1efa03bc55e08c01
SHA256 (GLUT-2.1.1.1.tar.gz) = 09631322c78c1d5d2733fb5324344db68e99015162445c3364b844308c1e027e
SIZE (GLUT-2.1.1.1.tar.gz) = 121577
MD5 (GLUT-2.1.1.2.tar.gz) = 67e5996a7fe56af764393f1cf80b9a43
SHA256 (GLUT-2.1.1.2.tar.gz) = d5ecf4b6bacc5e68ade00710df04fa158c6ed322c74362954716a0baba6bd3fb
SIZE (GLUT-2.1.1.2.tar.gz) = 121228

View File

@ -23,8 +23,8 @@
%%SUBDIR%%/HSGLUT-%%PORTVERSION%%.o
%%SUBDIR%%/include/HsGLUT.h
%%SUBDIR%%/%%PORTNAME%%-register.sh
share/doc/GLUT-%%PORTVERSION%%/LICENSE
@dirrm share/doc/GLUT-%%PORTVERSION%%
%%RMLIC%%%%DOCSDIR%%/LICENSE
%%RMLIC%%@dirrm %%DOCSDIR%%
@dirrm %%SUBDIR%%/Graphics/UI/GLUT/Callbacks
@dirrm %%SUBDIR%%/Graphics/UI/GLUT
@dirrmtry %%SUBDIR%%/Graphics/UI