Index: head/lang/ghc/Makefile =================================================================== --- head/lang/ghc/Makefile +++ head/lang/ghc/Makefile @@ -8,9 +8,9 @@ LOCAL/arrowd/:boot \ ${HACKAGE_SITE}hscolour-${HSCOLOUR_VERSION}/:docs -EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \ hscolour-${HSCOLOUR_VERSION}.tar.gz:docs +EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} MAINTAINER= haskell@FreeBSD.org COMMENT= Compiler for the functional language Haskell Index: head/lang/ghc/bsd.ghc.mk =================================================================== --- head/lang/ghc/bsd.ghc.mk +++ head/lang/ghc/bsd.ghc.mk @@ -297,3 +297,20 @@ && sha256 ghc-${GHC_VERSION}-boot-${ARCH}-freebsd.tar.xz \ && ${ECHO} -n "SIZE (ghc-${GHC_VERSION}-boot-${ARCH}-freebsd.tar.xz) = " \ && ${STAT} -f %z ghc-${GHC_VERSION}-boot-${ARCH}-freebsd.tar.xz + +# Much like create-bootstrap, just different naming and output format +.PHONY: create-stack-bindist +create-stack-bindist: + cd ${WRKSRC} \ + && gmake binary-dist TAR_COMP=xz \ + && ${MV} ${WRKSRC}/ghc-${GHC_VERSION}-${GHC_ARCH}-portbld-freebsd.tar.xz /tmp/ + + cd /tmp \ + && ${ECHO} "${GHC_VERSION}:" \ + && ${ECHO} "url: \"http://distcache.FreeBSD.org/local-distfiles/arrowd/stack-bindists/ghc-${GHC_VERSION}-${GHC_ARCH}-portbld-freebsd.tar.xz\"" \ + && ${ECHO} -n "content-length: " \ + && ${STAT} -f %z ghc-${GHC_VERSION}-${GHC_ARCH}-portbld-freebsd.tar.xz \ + && ${ECHO} -n "sha1: " \ + && sha1 -q ghc-${GHC_VERSION}-${GHC_ARCH}-portbld-freebsd.tar.xz \ + && ${ECHO} -n "sha256: " \ + && sha256 -q ghc-${GHC_VERSION}-${GHC_ARCH}-portbld-freebsd.tar.xz Index: head/lang/ghc843/Makefile =================================================================== --- head/lang/ghc843/Makefile +++ head/lang/ghc843/Makefile @@ -4,15 +4,15 @@ PORTNAME= ghc PORTVERSION= ${GHC_VERSION} PORTREVISION= 1 -PKGNAMESUFFIX= 843 CATEGORIES= lang haskell MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \ LOCAL/arrowd/:boot \ ${HACKAGE_SITE}hscolour-${HSCOLOUR_VERSION}/:docs +PKGNAMESUFFIX= 843 -EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \ hscolour-${HSCOLOUR_VERSION}.tar.gz:docs +EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} MAINTAINER= haskell@FreeBSD.org COMMENT= Compiler for the functional language Haskell Index: head/lang/ghc862/Makefile =================================================================== --- head/lang/ghc862/Makefile +++ head/lang/ghc862/Makefile @@ -2,15 +2,15 @@ PORTNAME= ghc PORTVERSION= ${GHC_VERSION} -PKGNAMESUFFIX= 862 CATEGORIES= lang haskell MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \ LOCAL/arrowd/:boot \ ${HACKAGE_SITE}hscolour-${HSCOLOUR_VERSION}/:docs +PKGNAMESUFFIX= 862 -EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \ hscolour-${HSCOLOUR_VERSION}.tar.gz:docs +EXTRACT_ONLY= ${_DISTFILES:C/hscolour.*$//g} MAINTAINER= haskell@FreeBSD.org COMMENT= Compiler for the functional language Haskell