Hi Caspar,

Caspar Schutijser <cas...@schutijser.com> writes:

> I'm a bit late but yes, I think it would be nice to have this in ports.
> Last week I was looking at updating the devel/shellcheck port (which,
> thanks to your work, is a feasible task now) and I came across
> cabal-module(5) where cabal-bundler is mentioned for the generation of
> the contents of MODCABAL_MANIFEST.

Glad to hear the documentation led in you in the right
direction. Would've been even better if the whole thing worked without a
hitch :)

> Regarding pkg/MESSAGE: would it perhaps make sense to make it a
> pkg-readme? I have no doubt I will forget about running cabal v2-update
> at some point and as a pkg-readme, I'll have a way to find it back
> later. I guess whether my suggestion makes sense depends on whether
> cabal v2-update should be rerun every now and then to keep the hackage
> package list updated; my assumption is that that is necessary. Is that
> correct?

The cabal database needs to contain the package that you want. I see
little harm in running cabal v2-update often if we specify the version
number anyway.

> I tried to use this for ShellCheck but that fails (see below). Still
> need to have a closer look at that.

ShellCheck cabal files is a bit creative so we have to give
cabal-bundler a hint about the executable name.

% cabal-bundler --openbsd ShellCheck-0.7.2 --executable shellcheck

MODCABAL_STEM         = ShellCheck
MODCABAL_VERSION        = 0.7.2
MODCABAL_MANIFEST       = \
        Diff    0.4.0   0       \
        QuickCheck      2.14.2  0       \
        aeson   1.5.6.0 1       \
        assoc   1.0.2   1       \
        attoparsec      0.14.1  0       \
        base-compat     0.11.2  0       \
        base-compat-batteries   0.11.2  0       \
        base-orphans    0.8.4   0       \
        bifunctors      5.5.10  0       \
        comonad 5.0.8   0       \
        data-fix        0.3.1   0       \
        distributive    0.6.2.1 0       \
        dlist   1.0     0       \
        hashable        1.3.1.0 0       \
        indexed-traversable     0.1.1   0       \
        integer-logarithms      1.0.3.1 0       \
        primitive       0.7.1.0 2       \
        random  1.2.0   5       \
        regex-base      0.94.0.1        0       \
        regex-tdfa      1.3.1.0 2       \
        scientific      0.3.6.2 0       \
        splitmix        0.1.0.3 0       \
        strict  0.4.0.1 0       \
        tagged  0.8.6.1 1       \
        th-abstraction  0.4.2.0 0       \
        these   1.1.1.1 1       \
        time-compat     1.9.5   1       \
        transformers-compat     0.6.6   0       \
        unordered-containers    0.2.13.0        0       \
        uuid-types      1.0.4   0       \
        vector  0.12.3.0        0       \

> Regardless: tested it on amd64 (with some hackage packages other than
> ShellCheck) and it works fine here.

Very cool, thanks for testing.

Thanks
Greg

Reply via email to