Skip to content

Commit

Permalink
devel/hs-haskell-language-server: Adapt to recent USES=cabal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowd committed May 19, 2021
1 parent 317c619 commit 8cc38e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 1 addition & 11 deletions devel/hs-haskell-language-server/Makefile
Expand Up @@ -210,6 +210,7 @@ USE_CABAL= Diff-0.4.0 \
zlib-0.6.2.3

SKIP_CABAL_PLIST= yes
CABAL_PROJECT= append

EXECUTABLES= ${PORTNAME} \
${PORTNAME}-wrapper
Expand All @@ -219,17 +220,6 @@ PLIST_FILES= bin/${PORTNAME} \
bin/${PORTNAME}-8.10.4 \
bin/${PORTNAME}-wrapper

post-extract:
${MV} ${WRKSRC}/cabal.project ${WRKSRC}/cabal.project.hls

post-patch:
echo "packages: " > ${WRKSRC}/cabal.project.port
.for package in ${USE_CABAL}
echo " ${package:C/_[0-9]+//}" >> ${WRKSRC}/cabal.project.port
.endfor
${REINPLACE_CMD} '/ .\/shake-bench/d' ${WRKSRC}/cabal.project.hls
${CAT} ${WRKSRC}/cabal.project.port ${WRKSRC}/cabal.project.hls > ${WRKSRC}/cabal.project

do-build:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} HOME=${CABAL_HOME} hls-install hls
Expand Down
@@ -0,0 +1,10 @@
--- cabal.project.haskell-language-server.orig 2021-04-13 07:56:15 UTC
+++ cabal.project.haskell-language-server
@@ -1,7 +1,6 @@
packages:
./
./hie-compat
- ./shake-bench
./ghcide
./hls-plugin-api
./hls-test-utils

0 comments on commit 8cc38e0

Please sign in to comment.