1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Uses/cabal.mk: More correct fix for EXTRACT_ONLY problem from r559679.

This commit is contained in:
Gleb Popov 2021-01-04 11:31:37 +00:00
parent 713c3be300
commit 41d66222fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=560282

View File

@ -80,6 +80,8 @@ MASTER_SITES?= https://hackage.haskell.org/package/${PORTNAME}-${PORTVERSION}/ \
DISTFILES?= ${PORTNAME}-${PORTVERSION}${CABAL_EXTRACT_SUFX}
. endif
EXTRACT_ONLY?= ${PORTNAME}-${PORTVERSION}${CABAL_EXTRACT_SUFX}
_USES_extract= 701:cabal-post-extract
_USES_patch= 701:cabal-post-patch
_USES_stage= 751:cabal-post-install-script
@ -101,15 +103,16 @@ MASTER_SITES+= https://hackage.haskell.org/package/:${package:C/[\.-]//g} \
http://hackage.haskell.org/package/:${package:C/[\.-]//g}
DISTFILES+= ${package:C/_[0-9]+//}/${package:C/_[0-9]+//}${CABAL_EXTRACT_SUFX}:${package:C/[\.-]//g}
. if !defined(CABAL_BOOTSTRAP)
EXTRACT_ONLY+= ${package:C/_[0-9]+//}/${package:C/_[0-9]+//}${CABAL_EXTRACT_SUFX}
. endif
. if ${package:C/[^_]*//:S/_//} != ""
DISTFILES+= ${package:C/_[0-9]+//}/revision/${package:C/[^_]*//:S/_//}.cabal:${package:C/[\.-]//g}
. endif
. endfor
. if !defined(CABAL_BOOTSTRAP)
EXTRACT_ONLY= ${DISTFILES:C/:.*//:N*\.cabal}
. endif
# Fetches and unpacks package source from Hackage using only PORTNAME and PORTVERSION.
cabal-extract: ${WRKDIR}