Index: Mk/Uses/cabal.mk =================================================================== --- Mk/Uses/cabal.mk +++ 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 porter to get +# 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} Index: Mk/bsd.options.mk =================================================================== --- Mk/bsd.options.mk +++ 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 \ Index: converters/hs-dhall-bash/Makefile =================================================================== --- converters/hs-dhall-bash/Makefile +++ 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 Index: converters/hs-dhall-json/Makefile =================================================================== --- converters/hs-dhall-json/Makefile +++ 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 Index: converters/hs-dhall-yaml/Makefile =================================================================== --- converters/hs-dhall-yaml/Makefile +++ 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 Index: deskutils/hs-arbtt/Makefile =================================================================== --- deskutils/hs-arbtt/Makefile +++ 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} Index: devel/hs-ShellCheck/Makefile =================================================================== --- devel/hs-ShellCheck/Makefile +++ 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 Index: devel/hs-alex/Makefile =================================================================== --- devel/hs-alex/Makefile +++ devel/hs-alex/Makefile @@ -10,7 +10,7 @@ USES= cabal -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} OPTIONS_DEFINE= EXAMPLES Index: devel/hs-cabal-install/Makefile =================================================================== --- devel/hs-cabal-install/Makefile +++ 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: Index: devel/hs-happy/Makefile =================================================================== --- devel/hs-happy/Makefile +++ devel/hs-happy/Makefile @@ -10,7 +10,7 @@ USES= cabal -CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES} +CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES} PORTEXAMPLES= *.ly README glr/* igloo/* Index: devel/hs-haskell-language-server/Makefile =================================================================== --- devel/hs-haskell-language-server/Makefile +++ 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 Index: devel/hs-mueval/Makefile =================================================================== --- devel/hs-mueval/Makefile +++ 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 Index: devel/hs-profiteur/Makefile =================================================================== --- devel/hs-profiteur/Makefile +++ 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: Index: games/hedgewars-server/Makefile =================================================================== --- games/hedgewars-server/Makefile +++ 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 Index: lang/hs-brainfuck/Makefile =================================================================== --- lang/hs-brainfuck/Makefile +++ lang/hs-brainfuck/Makefile @@ -10,6 +10,6 @@ USES= cabal -EXECUTABLES= bf +CABAL_EXECUTABLES= bf .include Index: lang/purescript/Makefile =================================================================== --- lang/purescript/Makefile +++ 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 Index: print/hs-hscolour/Makefile =================================================================== --- print/hs-hscolour/Makefile +++ print/hs-hscolour/Makefile @@ -11,6 +11,6 @@ USES= cabal -EXECUTABLES= HsColour +CABAL_EXECUTABLES= HsColour .include Index: security/hs-cryptol/Makefile =================================================================== --- security/hs-cryptol/Makefile +++ 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} Index: textproc/hs-lhs2tex/Makefile =================================================================== --- textproc/hs-lhs2tex/Makefile +++ 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 Index: textproc/hs-pandoc/Makefile =================================================================== --- textproc/hs-pandoc/Makefile +++ 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 Index: textproc/hs-yaml/Makefile =================================================================== --- textproc/hs-yaml/Makefile +++ 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 Index: www/hs-DAV/Makefile =================================================================== --- www/hs-DAV/Makefile +++ www/hs-DAV/Makefile @@ -121,6 +121,6 @@ xml-types-0.3.8 \ zlib-0.6.3.0 -EXECUTABLES= hdav +CABAL_EXECUTABLES= hdav .include Index: www/hs-postgrest/Makefile =================================================================== --- www/hs-postgrest/Makefile +++ 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 Index: www/hs-wai-app-static/Makefile =================================================================== --- www/hs-wai-app-static/Makefile +++ 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 Index: www/hs-yesod-bin/Makefile =================================================================== --- www/hs-yesod-bin/Makefile +++ 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