aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftp/hs-curl/Makefile2
-rw-r--r--lang/ghc/bsd.cabal.mk23
-rw-r--r--lang/ghc/bsd.cabal.options.mk2
-rw-r--r--print/hs-hscolour/Makefile2
4 files changed, 13 insertions, 16 deletions
diff --git a/ftp/hs-curl/Makefile b/ftp/hs-curl/Makefile
index 1bddf2f4bd99..ac8476dd0a4e 100644
--- a/ftp/hs-curl/Makefile
+++ b/ftp/hs-curl/Makefile
@@ -12,7 +12,5 @@ LICENSE= BSD3CLAUSE
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
-USE_GHC_NATIVE= yes
-
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
diff --git a/lang/ghc/bsd.cabal.mk b/lang/ghc/bsd.cabal.mk
index a9d6ef14ff2a..f17717441443 100644
--- a/lang/ghc/bsd.cabal.mk
+++ b/lang/ghc/bsd.cabal.mk
@@ -9,8 +9,10 @@
# Maintained by: haskell@FreeBSD.org
#
+PACKAGE= ${PORTNAME}-${PORTVERSION}
+
.if !defined(METAPORT) && !defined(USE_GITHUB)
-MASTER_SITES?= http://hackage.haskell.org/package/${PORTNAME}-${PORTVERSION}/:hackage
+MASTER_SITES?= http://hackage.haskell.org/package/${PACKAGE}/:hackage
DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}:hackage
EXTRACT_ONLY?= ${DISTNAME}${EXTRACT_SUFX}
.endif
@@ -38,14 +40,15 @@ GHC_HADDOCK_CMD=${LOCALBASE}/bin/haddock-ghc-${GHC_VERSION}
CABAL_DOCSDIR= ${PREFIX}/share/doc/cabal/ghc-${GHC_VERSION}
CABAL_DOCSDIR_REL= ${CABAL_DOCSDIR:S,^${PREFIX}/,,}
-DATADIR= ${PREFIX}/share/cabal/ghc-${GHC_VERSION}/${DISTNAME}
-DOCSDIR= ${CABAL_DOCSDIR}/${DISTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/cabal/ghc-${GHC_VERSION}/${DISTNAME}
+
+DATADIR= ${PREFIX}/share/cabal/ghc-${GHC_VERSION}/${PACKAGE}
+DOCSDIR= ${CABAL_DOCSDIR}/${PACKAGE}
+EXAMPLESDIR= ${PREFIX}/share/examples/cabal/ghc-${GHC_VERSION}/${PACKAGE}
GHC_LIB_DOCSDIR_REL= share/doc/ghc-${GHC_VERSION}/html/libraries
CABAL_LIBDIR= ${PREFIX}/lib/cabal/ghc-${GHC_VERSION}
-CABAL_LIBSUBDIR= ${DISTNAME}
+CABAL_LIBSUBDIR= ${PACKAGE}
CABAL_LIBDIR_REL= ${CABAL_LIBDIR:S,^${PREFIX}/,,}
CONFIGURE_ARGS+= --libdir=${CABAL_LIBDIR} --libsubdir=${CABAL_LIBSUBDIR}
@@ -161,11 +164,6 @@ RUN_DEPENDS+= ${dependencies}
.endif
-.if defined(USE_GHC_NATIVE)
-USES+= perl5
-USE_PERL5= build
-.endif
-
.if ${PORT_OPTIONS:MDOCS}
.if !defined(XMLDOCS)
@@ -175,7 +173,6 @@ HADDOCK_OPTS= # empty
.if ${PORT_OPTIONS:MHSCOLOUR}
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
-HSCOLOUR_VERSION= 1.23
HSCOLOUR_DATADIR= ${LOCALBASE}/share/cabal/ghc-${GHC_VERSION}/hscolour-${HSCOLOUR_VERSION}
HADDOCK_OPTS+= --hyperlink-source --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
.endif # HSCOLOUR
@@ -332,7 +329,7 @@ add-plist-cabal:
.endif
.if defined(HADDOCK_AVAILABLE) && ${PORT_OPTIONS:MDOCS}
- @(${ECHO_CMD} '@unexec ${RM} ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL}/${DISTNAME}' ; \
+ @(${ECHO_CMD} '@unexec ${RM} ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL}/${PACKAGE}' ; \
${ECHO_CMD} '@unexec cd ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL} && \
${RM} doc-index*.html && ./gen_contents_index') >> ${TMPPLIST}
.endif
@@ -342,7 +339,7 @@ add-plist-cabal:
.endif
.if defined(HADDOCK_AVAILABLE) && ${PORT_OPTIONS:MDOCS}
- @(${ECHO_CMD} '@exec ${LN} -s ${DOCSDIR}/html ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL}/${DISTNAME} && \
+ @(${ECHO_CMD} '@exec ${LN} -s ${DOCSDIR}/html ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL}/${PACKAGE} && \
cd ${LOCALBASE}/${GHC_LIB_DOCSDIR_REL} && \
${RM} doc-index*.html && ./gen_contents_index') >> ${TMPPLIST}
.endif
diff --git a/lang/ghc/bsd.cabal.options.mk b/lang/ghc/bsd.cabal.options.mk
index 471815fde632..1419370c1833 100644
--- a/lang/ghc/bsd.cabal.options.mk
+++ b/lang/ghc/bsd.cabal.options.mk
@@ -21,6 +21,8 @@ HSCOLOUR_CMD?= ${LOCALBASE}/bin/HsColour
GHC_VERSION?= 7.10.2
LLVM_VERSION= 35
+HSCOLOUR_VERSION= 1.23
+
HSCOLOUR_DESC?= Colorize generated documentation by HsColour
DYNAMIC_DESC?= Add support for dynamic linking
PROFILE_DESC?= Add support for profiling
diff --git a/print/hs-hscolour/Makefile b/print/hs-hscolour/Makefile
index b8a44394f805..e36a82cd91ec 100644
--- a/print/hs-hscolour/Makefile
+++ b/print/hs-hscolour/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= hscolour
-PORTVERSION= 1.23
+PORTVERSION= ${HSCOLOUR_VERSION}
PORTEPOCH= 1
CATEGORIES= print haskell