Skip to content

Commit 505ecf2

Browse files
committed
Uses/cabal.mk: Rename EXECUTABLES to CABAL_EXECUTABLES.
Approved by: tcberner Differential Revision: https://reviews.freebsd.org/D36079
1 parent 5b45bb0 commit 505ecf2

File tree

25 files changed

+44
-45
lines changed

25 files changed

+44
-45
lines changed

‎Mk/Uses/cabal.mk‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@
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

7477
PKGNAMEPREFIX?= hs-
7578

76-
EXECUTABLES?= ${PORTNAME}
79+
CABAL_EXECUTABLES?= ${PORTNAME}
7780

7881
CABAL_CMD?= cabal
7982
CABAL_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)
302305
cabal-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}

‎Mk/bsd.options.mk‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ OPTIONSMKINCLUDED= bsd.options.mk
180180
OPTIONS_NAME?= ${PKGORIGIN:S/\//_/}
181181
OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options
182182

183-
_OPTIONS_FLAGS= ALL_TARGET BROKEN CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \
184-
CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS \
185-
DESKTOP_ENTRIES DISTFILES EXECUTABLES EXTRA_PATCHES EXTRACT_ONLY \
183+
_OPTIONS_FLAGS= ALL_TARGET BROKEN CABAL_EXECUTABLES CATEGORIES CFLAGS CONFIGURE_ENV \
184+
CONFLICTS CONFLICTS_BUILD CONFLICTS_INSTALL CPPFLAGS CXXFLAGS \
185+
DESKTOP_ENTRIES DISTFILES EXTRA_PATCHES EXTRACT_ONLY \
186186
GH_ACCOUNT GH_PROJECT GH_SUBDIR GH_TAGNAME GH_TUPLE \
187187
GL_ACCOUNT GL_COMMIT GL_PROJECT GL_SITE GL_SUBDIR GL_TUPLE \
188188
IGNORE INFO INSTALL_TARGET LDFLAGS LIBS MAKE_ARGS MAKE_ENV \

‎converters/hs-dhall-bash/Makefile‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ USE_CABAL= Diff-0.4.1 \
122122
x509-validation-1.6.12 \
123123
zlib-0.6.3.0
124124

125-
EXECUTABLES= dhall-to-bash
126-
127-
CABAL_PROJECT= remove
125+
CABAL_EXECUTABLES= dhall-to-bash
126+
CABAL_PROJECT= remove
128127

129128
.include <bsd.port.mk>

‎converters/hs-dhall-json/Makefile‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ USE_CABAL= Diff-0.4.1 \
117117
x509-validation-1.6.12 \
118118
zlib-0.6.3.0
119119

120-
EXECUTABLES= dhall-to-json json-to-dhall
121-
122-
CABAL_PROJECT= remove
120+
CABAL_EXECUTABLES= dhall-to-json json-to-dhall
121+
CABAL_PROJECT= remove
123122

124123
.include <bsd.port.mk>

‎converters/hs-dhall-yaml/Makefile‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ USE_CABAL= Diff-0.4.1 \
120120
x509-validation-1.6.12 \
121121
zlib-0.6.3.0
122122

123-
EXECUTABLES= dhall-to-yaml-ng yaml-to-dhall
124-
125-
CABAL_PROJECT= remove
123+
CABAL_EXECUTABLES= dhall-to-yaml-ng yaml-to-dhall
124+
CABAL_PROJECT= remove
126125

127126
.include <bsd.port.mk>

‎deskutils/hs-arbtt/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ USE_CABAL= OneTuple-0.3.1_2 \
6363
vector-algorithms-0.8.0.4_1 \
6464
witherable-0.4.2_2
6565

66-
EXECUTABLES= arbtt-capture arbtt-stats arbtt-recover arbtt-import arbtt-dump
66+
CABAL_EXECUTABLES= arbtt-capture arbtt-stats arbtt-recover arbtt-import arbtt-dump
6767

6868
SUB_FILES= pkg-message
6969
SUB_LIST= EXAMPLESDIR=${EXAMPLESDIR}

‎devel/hs-ShellCheck/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ USE_CABAL= Diff-0.4.1 \
5151
vector-0.12.3.1_2 \
5252
witherable-0.4.2_2
5353

54-
EXECUTABLES= shellcheck
54+
CABAL_EXECUTABLES= shellcheck
5555

5656
OPTIONS_DEFINE= MANPAGES
5757
OPTIONS_DEFAULT= MANPAGES

‎devel/hs-alex/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LICENSE= BSD3CLAUSE
1010

1111
USES= cabal
1212

13-
CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES}
13+
CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES}
1414

1515
OPTIONS_DEFINE= EXAMPLES
1616

‎devel/hs-cabal-install/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ USE_CABAL= async-2.2.4 \
3838
th-compat-0.1.3 \
3939
zlib-0.6.2.3_1
4040

41-
EXECUTABLES= cabal
41+
CABAL_EXECUTABLES= cabal
4242
SKIP_CABAL_EXTRACT= yes
4343

4444
post-extract:

‎devel/hs-happy/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LICENSE= BSD3CLAUSE
1010

1111
USES= cabal
1212

13-
CABAL_WRAPPER_SCRIPTS= ${EXECUTABLES}
13+
CABAL_WRAPPER_SCRIPTS= ${CABAL_EXECUTABLES}
1414

1515
PORTEXAMPLES= *.ly README glr/* igloo/*
1616

0 commit comments

Comments
 (0)