aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2018-12-17 06:04:49 +0000
committerGleb Popov <arrowd@FreeBSD.org>2018-12-17 06:04:49 +0000
commita6f762c977954a140e056bda75ccc4a056621cfe (patch)
tree58a70aa82b1f86ea5c0ed565a828472d43ae4fe0
parentc17d83cd2d3d8ebe5c3b1d9b82278067e43c7da1 (diff)
downloadports-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
-rw-r--r--lang/ghc/Makefile2
-rw-r--r--lang/ghc/bsd.ghc.mk17
-rw-r--r--lang/ghc843/Makefile4
-rw-r--r--lang/ghc862/Makefile4
4 files changed, 22 insertions, 5 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
diff --git a/lang/ghc843/Makefile b/lang/ghc843/Makefile
index 0ad97f4ebb3e..ec7ada02be11 100644
--- a/lang/ghc843/Makefile
+++ b/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
diff --git a/lang/ghc862/Makefile b/lang/ghc862/Makefile
index 67632049a0e2..b978b45df301 100644
--- a/lang/ghc862/Makefile
+++ b/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