2323# argument of cabal-install utility. Used for both
2424# cabal configure and cabal build.
2525#
26- # EXECUTABLES List of executable Cabal targets to be built and installed.
26+ # CABAL_EXECUTABLES List of executable Cabal targets to be built and installed.
27+ # Consult the .cabal file of the project being ported to find
28+ # out possible values for this variable.
2729# default: ${PORTNAME}
2830#
2931# opt_USE_CABAL Variant of USE_CABAL to be used with options framework.
3032# opt_CABAL_FLAGS Variant of CABAL_FLAGS to be used with options framework.
3133# Note that it works a bit differently from CABAL_FLAGS:
3234# it appends "${opt_CABAL_FLAGS}" when the option is enabled
3335# and "-${opt_CABAL_FLAGS}" otherwise.
34- # opt_EXECUTABLES Variant of EXECUTABLES to be used with options framework.
36+ # opt_CABAL_EXECUTABLES Variant of CABAL_EXECUTABLES to be used with
37+ # options framework.
3538#
36- # CABAL_WRAPPER_SCRIPTS A subset of ${EXECUTABLES } containing Haskell
39+ # CABAL_WRAPPER_SCRIPTS A subset of ${CABAL_EXECUTABLES } containing Haskell
3740# programs to be wrapped into a shell script that sets
3841# *_datadir environment variables before running the program.
3942# This is needed for Haskell programs that install their
@@ -73,7 +76,7 @@ BROKEN= basement-0.0.14 package doesn't compile on i386
7376
7477PKGNAMEPREFIX? = hs-
7578
76- EXECUTABLES ? = ${PORTNAME}
79+ CABAL_EXECUTABLES ? = ${PORTNAME}
7780
7881CABAL_CMD? = cabal
7982CABAL_PORT = devel/hs-cabal-install
@@ -128,7 +131,7 @@ _USES_patch= 701:cabal-post-patch
128131_USES_configure =301:cabal-pre-configure
129132_USES_stage = 751:cabal-post-install-script
130133
131- BUILD_TARGET? = ${EXECUTABLES :S/^/exe:&/}
134+ BUILD_TARGET? = ${CABAL_EXECUTABLES :S/^/exe:&/}
132135
133136_use_cabal = ${USE_CABAL:O:u}
134137
@@ -276,7 +279,7 @@ do-install:
276279. if defined(CABAL_WRAPPER_SCRIPTS) && !empty(CABAL_WRAPPER_SCRIPTS)
277280 ${MKDIR} ${STAGEDIR}${PREFIX}/${CABAL_LIBEXEC}
278281. endif
279- . for exe in ${EXECUTABLES }
282+ . for exe in ${CABAL_EXECUTABLES }
280283. if defined(CABAL_WRAPPER_SCRIPTS) && ${CABAL_WRAPPER_SCRIPTS :M${exe}}
281284 ${INSTALL_PROGRAM} \
282285 $$(find ${WRKSRC}/dist-newstyle -name ${exe} -type f -perm +111 ) \
@@ -300,7 +303,7 @@ do-install:
300303
301304. if !defined(SKIP_CABAL_PLIST)
302305cabal-post-install-script :
303- . for exe in ${EXECUTABLES }
306+ . for exe in ${CABAL_EXECUTABLES }
304307 ${ECHO_CMD} 'bin/${exe}' >> ${TMPPLIST}
305308. if defined(CABAL_WRAPPER_SCRIPTS) && ${CABAL_WRAPPER_SCRIPTS :M${exe}}
306309 ${ECHO_CMD} ' ${CABAL_LIBEXEC}/${exe}' >> ${TMPPLIST}
0 commit comments