aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ghc
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2015-08-10 23:32:19 +0800
committerpgj <pgj@FreeBSD.org>2015-08-10 23:32:19 +0800
commit3a8a75ac901d0aebbf4dec1343b737fc0bdf6299 (patch)
treee45db0717cefd4fe26c73a39f99cbc9588f3aa98 /lang/ghc
parent032516dd7fabce6f15f9610a136ca98965611039 (diff)
downloadfreebsd-ports-gnome-3a8a75ac901d0aebbf4dec1343b737fc0bdf6299.tar.gz
freebsd-ports-gnome-3a8a75ac901d0aebbf4dec1343b737fc0bdf6299.tar.zst
freebsd-ports-gnome-3a8a75ac901d0aebbf4dec1343b737fc0bdf6299.zip
- Implement a couple of portlint(1) warnings, such as moving the LICENSE
block earlier, sort USES. This change also switches to USES=metaport for metaports, like haskell-platform or gtk2hs PR: 201886 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com> Obtained from: FreeBSD Haskell
Diffstat (limited to 'lang/ghc')
-rw-r--r--lang/ghc/Makefile8
-rw-r--r--lang/ghc/bsd.cabal.mk8
2 files changed, 5 insertions, 11 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index 68c463580321..9e763ff52093 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -12,6 +12,9 @@ DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source
MAINTAINER= haskell@FreeBSD.org
COMMENT= Compiler for the functional language Haskell
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
ONLY_FOR_ARCHS= i386 amd64
MAKE_JOBS_NUMBER_LIMIT= 4
@@ -28,13 +31,10 @@ LIB_DEPENDS+= libgmp.so:${PORTSDIR}/math/gmp
USE_AUTOTOOLS= autoconf autoheader
USE_PERL5= build
-USES= gmake iconv:translit perl5 ncurses tar:bzip2
+USES= gmake iconv:translit ncurses perl5 tar:bzip2
USE_BINUTILS= yes
USE_GCC= yes
-LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
MAKE_ENV= LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
# The configure process accepts,filters and canonicalises
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk
index 54a829aea9cd..7b9188422ecb 100644
--- a/lang/ghc/bsd.cabal.mk
+++ b/lang/ghc/bsd.cabal.mk
@@ -13,13 +13,7 @@
MASTER_SITES?= http://hackage.haskell.org/package/${PORTNAME}-${PORTVERSION}/
DIST_SUBDIR?= cabal
.else
-MASTER_SITES= # empty
-DISTFILES= # empty
-EXTRACT_ONLY= # empty
-NO_FETCH= yes
-NO_BUILD= yes
-NO_INSTALL= yes
-NO_MTREE= yes
+USES+= metaport
.endif # !METAPORT
MAKE_ENV+= LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 DESTDIR=${STAGEDIR} \