diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk --- a/Mk/Uses/cabal.mk +++ b/Mk/Uses/cabal.mk @@ -23,7 +23,9 @@ # argument of cabal-install utility. Used for both # cabal configure and cabal build. # -# EXECUTABLES List of executable Cabal targets to be built and installed. +# CABAL_EXECUTABLES List of executable Cabal targets to be built and installed. +# Consult the .cabal file of the project being ported to find +# out possible values for this variable. # default: ${PORTNAME} # # opt_USE_CABAL Variant of USE_CABAL to be used with options framework. @@ -31,9 +33,10 @@ # Note that it works a bit differently from CABAL_FLAGS: # it appends "${opt_CABAL_FLAGS}" when the option is enabled # and "-${opt_CABAL_FLAGS}" otherwise. -# opt_EXECUTABLES Variant of EXECUTABLES to be used with options framework. +# opt_CABAL_EXECUTABLES Variant of CABAL_EXECUTABLES to be used with +# options framework. # -# CABAL_WRAPPER_SCRIPTS A subset of ${EXECUTABLES} containing Haskell +# CABAL_WRAPPER_SCRIPTS A subset of ${CABAL_EXECUTABLES} containing Haskell # programs to be wrapped into a shell script that sets # *_datadir environment variables before running the program. # This is needed for Haskell programs that install their @@ -73,7 +76,7 @@ PKGNAMEPREFIX?= hs- -EXECUTABLES?= ${PORTNAME} +CABAL_EXECUTABLES?= ${PORTNAME} CABAL_CMD?= cabal CABAL_PORT= devel/hs-cabal-install @@ -128,7 +131,7 @@ _USES_configure=301:cabal-pre-configure _USES_stage= 751:cabal-post-install-script -BUILD_TARGET?= ${EXECUTABLES:S/^/exe:&/} +BUILD_TARGET?= ${CABAL_EXECUTABLES:S/^/exe:&/} _use_cabal= ${USE_CABAL:O:u} @@ -276,7 +279,7 @@ . if defined(CABAL_WRAPPER_SCRIPTS) && !empty(CABAL_WRAPPER_SCRIPTS) ${MKDIR} ${STAGEDIR}${PREFIX}/${CABAL_LIBEXEC} . endif -. for exe in ${EXECUTABLES} +. for exe in ${CABAL_EXECUTABLES} . if defined(CABAL_WRAPPER_SCRIPTS) && ${CABAL_WRAPPER_SCRIPTS:M${exe}} ${INSTALL_PROGRAM} \ $$(find ${WRKSRC}/dist-newstyle -name ${exe} -type f -perm +111) \ @@ -300,7 +303,7 @@ . if !defined(SKIP_CABAL_PLIST) cabal-post-install-script: -. for exe in ${EXECUTABLES} +. for exe in ${CABAL_EXECUTABLES} ${ECHO_CMD} 'bin/${exe}' >> ${TMPPLIST} . if defined(CABAL_WRAPPER_SCRIPTS) && ${CABAL_WRAPPER_SCRIPTS:M${exe}} ${ECHO_CMD} '${CABAL_LIBEXEC}/${exe}' >> ${TMPPLIST} diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -180,9 +180,9 @@ OPTIONS_NAME?= ${PKGORIGIN:S/\//_/} OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options -_OPTIONS_FLAGS= ALL_TARGET BROKEN CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \ - CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS \ - DESKTOP_ENTRIES DISTFILES EXECUTABLES EXTRA_PATCHES EXTRACT_ONLY \ +_OPTIONS_FLAGS= ALL_TARGET BROKEN CABAL_EXECUTABLES CATEGORIES CFLAGS CONFIGURE_ENV \ + CONFLICTS CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS \ + DESKTOP_ENTRIES DISTFILES EXTRA_PATCHES EXTRACT_ONLY \ GH_ACCOUNT GH_PROJECT GH_SUBDIR GH_TAGNAME GH_TUPLE \ GL_ACCOUNT GL_COMMIT GL_PROJECT GL_SITE GL_SUBDIR GL_TUPLE \ IGNORE INFO INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV \ diff --git a/converters/hs-dhall-bash/Makefile b/converters/hs-dhall-bash/Makefile --- a/converters/hs-dhall-bash/Makefile +++ b/converters/hs-dhall-bash/Makefile @@ -122,8 +122,7 @@ x509-validation-1.6.12 \ zlib-0.6.3.0 -EXECUTABLES= dhall-to-bash - -CABAL_PROJECT= remove +CABAL_EXECUTABLES= dhall-to-bash +CABAL_PROJECT= remove .include diff --git a/converters/hs-dhall-json/Makefile b/converters/hs-dhall-json/Makefile --- a/converters/hs-dhall-json/Makefile +++ b/converters/hs-dhall-json/Makefile @@ -117,8 +117,7 @@ x509-validation-1.6.12 \ zlib-0.6.3.0 -EXECUTABLES= dhall-to-json json-to-dhall - -CABAL_PROJECT= remove +CABAL_EXECUTABLES= dhall-to-json json-to-dhall +CABAL_PROJECT= remove .include diff --git a/converters/hs-dhall-yaml/Makefile b/converters/hs-dhall-yaml/Makefile --- a/converters/hs-dhall-yaml/Makefile +++ b/converters/hs-dhall-yaml/Makefile @@ -120,8 +120,7 @@ x509-validation-1.6.12 \ zlib-0.6.3.0 -EXECUTABLES= dhall-to-yaml-ng yaml-to-dhall - -CABAL_PROJECT= remove +CABAL_EXECUTABLES= dhall-to-yaml-ng yaml-to-dhall +CABAL_PROJECT= remove .include diff --git a/deskutils/hs-arbtt/Makefile b/deskutils/hs-arbtt/Makefile --- a/deskutils/hs-arbtt/Makefile +++ b/deskutils/hs-arbtt/Makefile @@ -63,7 +63,7 @@ vector-algorithms-0.8.0.4_1 \ witherable-0.4.2_2 -EXECUTABLES= arbtt-capture arbtt-stats arbtt-recover arbtt-import arbtt-dump +CABAL_EXECUTABLES= arbtt-capture arbtt-stats arbtt-recover arbtt-import arbtt-dump SUB_FILES= pkg-message SUB_LIST= EXAMPLESDIR=${EXAMPLESDIR} diff --git a/devel/hs-ShellCheck/Makefile b/devel/hs-ShellCheck/Makefile --- a/devel/hs-ShellCheck/Makefile +++ b/devel/hs-ShellCheck/Makefile @@ -51,7 +51,7 @@ vector-0.12.3.1_2 \ witherable-0.4.2_2 -EXECUTABLES= shellcheck +CABAL_EXECUTABLES= shellcheck OPTIONS_DEFINE= MANPAGES OPTIONS_DEFAULT= MANPAGES diff --git a/devel/hs-alex/Makefile b/devel/hs-alex/Makefile --- a/devel/hs-alex/Makefile +++ b/devel/hs-alex/Makefile @@ -10,7 +10,7 @@ USES= cabal -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} OPTIONS_DEFINE= EXAMPLES diff --git a/devel/hs-cabal-install/Makefile b/devel/hs-cabal-install/Makefile --- a/devel/hs-cabal-install/Makefile +++ b/devel/hs-cabal-install/Makefile @@ -38,7 +38,7 @@ th-compat-0.1.3 \ zlib-0.6.2.3_1 -EXECUTABLES= cabal +CABAL_EXECUTABLES= cabal SKIP_CABAL_EXTRACT= yes post-extract: diff --git a/devel/hs-happy/Makefile b/devel/hs-happy/Makefile --- a/devel/hs-happy/Makefile +++ b/devel/hs-happy/Makefile @@ -10,7 +10,7 @@ USES= cabal -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} PORTEXAMPLES= *.ly README glr/* igloo/* diff --git a/devel/hs-haskell-language-server/Makefile b/devel/hs-haskell-language-server/Makefile --- a/devel/hs-haskell-language-server/Makefile +++ b/devel/hs-haskell-language-server/Makefile @@ -284,8 +284,7 @@ CABAL_PROJECT= append CABAL_FLAGS= -dynamic - -EXECUTABLES= ${PORTNAME} \ +CABAL_EXECUTABLES= ${PORTNAME} \ ${PORTNAME}-wrapper NOT_FOR_ARCHS= i386 diff --git a/devel/hs-mueval/Makefile b/devel/hs-mueval/Makefile --- a/devel/hs-mueval/Makefile +++ b/devel/hs-mueval/Makefile @@ -21,6 +21,6 @@ syb-0.7.2.1 \ temporary-1.3 -EXECUTABLES= mueval mueval-core +CABAL_EXECUTABLES= mueval mueval-core .include diff --git a/devel/hs-profiteur/Makefile b/devel/hs-profiteur/Makefile --- a/devel/hs-profiteur/Makefile +++ b/devel/hs-profiteur/Makefile @@ -49,7 +49,7 @@ vector-0.12.3.1_2 \ witherable-0.4.2_3 -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} profiteur_DATADIR_VARS= js-jquery post-install: diff --git a/games/hedgewars-server/Makefile b/games/hedgewars-server/Makefile --- a/games/hedgewars-server/Makefile +++ b/games/hedgewars-server/Makefile @@ -67,6 +67,6 @@ yaml-0.11.4.0 \ zlib-0.6.2.1_1 -EXECUTABLES= hedgewars-server checker +CABAL_EXECUTABLES= hedgewars-server checker .include diff --git a/lang/hs-brainfuck/Makefile b/lang/hs-brainfuck/Makefile --- a/lang/hs-brainfuck/Makefile +++ b/lang/hs-brainfuck/Makefile @@ -10,6 +10,6 @@ USES= cabal -EXECUTABLES= bf +CABAL_EXECUTABLES= bf .include diff --git a/lang/purescript/Makefile b/lang/purescript/Makefile --- a/lang/purescript/Makefile +++ b/lang/purescript/Makefile @@ -145,7 +145,7 @@ xss-sanitize-0.3.7_1 \ zlib-0.6.3.0 -EXECUTABLES= purs -CABAL_FLAGS= release +CABAL_EXECUTABLES= purs +CABAL_FLAGS= release .include diff --git a/print/hs-hscolour/Makefile b/print/hs-hscolour/Makefile --- a/print/hs-hscolour/Makefile +++ b/print/hs-hscolour/Makefile @@ -11,6 +11,6 @@ USES= cabal -EXECUTABLES= HsColour +CABAL_EXECUTABLES= HsColour .include diff --git a/security/hs-cryptol/Makefile b/security/hs-cryptol/Makefile --- a/security/hs-cryptol/Makefile +++ b/security/hs-cryptol/Makefile @@ -122,8 +122,8 @@ zlib-0.6.3.0 \ zlib-bindings-0.1.1.5_2 -EXECUTABLES= cryptol cryptol-html -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_EXECUTABLES= cryptol cryptol-html +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} post-install: cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} diff --git a/textproc/hs-lhs2tex/Makefile b/textproc/hs-lhs2tex/Makefile --- a/textproc/hs-lhs2tex/Makefile +++ b/textproc/hs-lhs2tex/Makefile @@ -16,6 +16,6 @@ regex-compat-0.95.2.1_1 \ regex-posix-0.96.0.1 -EXECUTABLES= lhs2TeX +CABAL_EXECUTABLES= lhs2TeX .include diff --git a/textproc/hs-pandoc/Makefile b/textproc/hs-pandoc/Makefile --- a/textproc/hs-pandoc/Makefile +++ b/textproc/hs-pandoc/Makefile @@ -26,7 +26,7 @@ time-manager-0.0.0 unix-compat-0.6 unix-time-0.4.7 \ unliftio-core-0.2.0.1_2 vault-0.3.1.5_1 void-0.7.3 \ wai-3.2.3 wai-extra-3.1.12.1 wai-logger-2.4.0 word8-0.1.3 -TRYPANDOC_EXECUTABLES= trypandoc +TRYPANDOC_CABAL_EXECUTABLES= trypandoc USE_CABAL= Glob-0.10.2_3 \ HsYAML-0.2.1.1 \ @@ -177,7 +177,7 @@ zlib-0.6.3.0 CABAL_PROJECT= remove -EXECUTABLES= pandoc +CABAL_EXECUTABLES= pandoc CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} OPTIONS_SUB= yes diff --git a/textproc/hs-yaml/Makefile b/textproc/hs-yaml/Makefile --- a/textproc/hs-yaml/Makefile +++ b/textproc/hs-yaml/Makefile @@ -59,7 +59,7 @@ vector-algorithms-0.8.0.4_1 \ witherable-0.4.2_2 -EXECUTABLES= json2yaml yaml2json -CABAL_FLAGS= -no-exe +CABAL_EXECUTABLES= json2yaml yaml2json +CABAL_FLAGS= -no-exe .include diff --git a/www/hs-DAV/Makefile b/www/hs-DAV/Makefile --- a/www/hs-DAV/Makefile +++ b/www/hs-DAV/Makefile @@ -121,6 +121,6 @@ xml-types-0.3.8 \ zlib-0.6.3.0 -EXECUTABLES= hdav +CABAL_EXECUTABLES= hdav .include diff --git a/www/hs-postgrest/Makefile b/www/hs-postgrest/Makefile --- a/www/hs-postgrest/Makefile +++ b/www/hs-postgrest/Makefile @@ -47,7 +47,7 @@ @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKDIR}/default.conf ${STAGEDIR}${ETCDIR}/default.conf.sample ${INSTALL_PROGRAM} \ - $$(find ${WRKSRC}/dist-newstyle -name ${EXECUTABLES} -type f -perm +111) \ - ${STAGEDIR}${PREFIX}/sbin/${EXECUTABLES} + $$(find ${WRKSRC}/dist-newstyle -name ${PORTNAME} -type f -perm +111) \ + ${STAGEDIR}${PREFIX}/sbin/${PORTNAME} .include diff --git a/www/hs-wai-app-static/Makefile b/www/hs-wai-app-static/Makefile --- a/www/hs-wai-app-static/Makefile +++ b/www/hs-wai-app-static/Makefile @@ -103,6 +103,6 @@ x509-1.7.6 \ zlib-0.6.3.0 -EXECUTABLES= warp +CABAL_EXECUTABLES= warp .include diff --git a/www/hs-yesod-bin/Makefile b/www/hs-yesod-bin/Makefile --- a/www/hs-yesod-bin/Makefile +++ b/www/hs-yesod-bin/Makefile @@ -129,6 +129,6 @@ yaml-0.11.8.0 \ zlib-0.6.3.0 -EXECUTABLES= yesod +CABAL_EXECUTABLES= yesod .include