mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
cabal.mk: Transforms check-revs aux target into make-use-cabal-revs, which works much better.
Submitted by: Evilham <contact@evilham.com>
This commit is contained in:
parent
0fe3d86947
commit
cfcbf160b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=507062
@ -110,11 +110,11 @@ make-use-cabal:
|
||||
@echo -n USE_CABAL=
|
||||
@find ${CABAL_HOME} -name '*.conf' -exec basename {} + | sed -E 's|-[0-9a-z]{64}\.conf||' | sort | sed 's/$$/ \\/'
|
||||
|
||||
# Checks USE_CABAL items that have revisions.
|
||||
check-revs:
|
||||
# Re-generates USE_CABAL items to have revision numbers.
|
||||
make-use-cabal-revs:
|
||||
. for package in ${_use_cabal}
|
||||
@(fetch -o /dev/null http://hackage.haskell.org/package/${package:C/_[0-9]+//}/revision/1.cabal 2>/dev/null && echo "Package ${package} has revisions") || true
|
||||
@([ -d ${DISTDIR}/${DIST_SUBDIR}/${package:C/_[0-9]+//}/revision ] && echo " hint: " `find ${DISTDIR}/${DIST_SUBDIR}/${package:C/_[0-9]+//} -name *.cabal | xargs basename`) || true
|
||||
@(${ENV} HTTP_ACCEPT="application/json" fetch -q -o - http://hackage.haskell.org/package/${package:C/_[0-9]+//}/revisions/ | sed -Ee 's/.*":([0-9]+)}\]/${package:C/_[0-9]+//}_\1 /' -e 's/_0//')
|
||||
@echo '\'
|
||||
. endfor
|
||||
|
||||
. if !defined(CABAL_BOOTSTRAP)
|
||||
|
Loading…
Reference in New Issue
Block a user