diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2018-12-17 06:04:49 +0000 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2018-12-17 06:04:49 +0000 |
commit | a6f762c977954a140e056bda75ccc4a056621cfe (patch) | |
tree | 58a70aa82b1f86ea5c0ed565a828472d43ae4fe0 /lang/ghc | |
parent | c17d83cd2d3d8ebe5c3b1d9b82278067e43c7da1 (diff) | |
download | ports-a6f762c977954a140e056bda75ccc4a056621cfe.tar.gz ports-a6f762c977954a140e056bda75ccc4a056621cfe.zip |
GHC ports: use proper sorting for Makefile variables. Add `create-stack-bindist` target in bsd.ghc.mk.
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D18540
Notes
Notes:
svn path=/head/; revision=487653
Diffstat (limited to 'lang/ghc')
-rw-r--r-- | lang/ghc/Makefile | 2 | ||||
-rw-r--r-- | lang/ghc/bsd.ghc.mk | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 86038014f2dc..0c6d28d39da0 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -8,9 +8,9 @@ MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \ 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 diff --git a/lang/ghc/bsd.ghc.mk b/lang/ghc/bsd.ghc.mk index c65a0441b3b0..5fe97b0fdfe8 100644 --- a/lang/ghc/bsd.ghc.mk +++ b/lang/ghc/bsd.ghc.mk @@ -297,3 +297,20 @@ create-bootstrap: && 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 |