Move almost all Haskell distfiles fetched from hackage.haskell.org

into a common subdirectory `ghc', and also move the ghc distfiles
there (from ghc-${MODGHC_VER}).

This will avoid potential conflicts of hs-* ports distfiles coming
from hackage.haskell.org with distfiles used by other ports.

Based on an idea from dcoppa@ for databases/hs-redis.

ok dcoppa@

If you want to save some bandwdith and disk space, see my mail to
ports@, which contains a shell script that can move distfiles around
under your DISTDIR.
This commit is contained in:
kili 2011-04-23 20:16:38 +00:00
parent e41950b136
commit 71daab7260
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.53 2011/04/23 12:52:36 kili Exp $
# $OpenBSD: Makefile,v 1.54 2011/04/23 20:16:38 kili Exp $
COMMENT-main = compiler for the functional language Haskell
COMMENT-doc = documentation for GHC
@ -44,7 +44,7 @@ MASTER_SITES = ${HOMEPAGE}dist/${MODGHC_VER}/ \
${HOMEPAGE}dist/stable/dist/
MASTER_SITES0 = http://openbsd.dead-parrot.de/distfiles/
DIST_SUBDIR = ghc-${MODGHC_VER}
DIST_SUBDIR = ghc
VMEM_WARNING = Yes

View File

@ -1,4 +1,4 @@
# $OpenBSD: ghc.port.mk,v 1.21 2011/04/20 18:17:27 jeremy Exp $
# $OpenBSD: ghc.port.mk,v 1.22 2011/04/23 20:16:38 kili Exp $
# Module for Glasgow Haskell Compiler
# Not yet ported to other architectures
@ -42,6 +42,7 @@ MODGHC_HACKAGE_VERSION = ${DISTNAME:C,.*-([0-9.]*)$,\1,}
HOMEPAGE ?= http://hackage.haskell.org/package/${MODGHC_HACKAGE_NAME}
MASTER_SITES = http://hackage.haskell.org/packages/archive/${MODGHC_HACKAGE_NAME}/${MODGHC_HACKAGE_VERSION}/
SUBST_VARS += DISTNAME MODGHC_HACKAGE_VERSION
DIST_SUBDIR ?= ghc
. endif
. if ${MODGHC_BUILD:L:Mcabal}