[MacPorts] #63972: Request to add a Port for the Codegroup CLI Program
MacPorts
noreply at macports.org
Tue Nov 23 11:42:03 UTC 2021
#63972: Request to add a Port for the Codegroup CLI Program
-------------------------+------------------------
Reporter: RobK88 | Owner: ryandesign
Type: submission | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: fixed | Keywords:
Port: codegroup |
-------------------------+------------------------
Comment (by ryandesign):
Replying to [comment:16 RobK88]:
> I wasn't sure how to handle CFLAGS and LDFLAGS in the Makefile given
that Macports must be using its own flags. Now I know how to handle them.
One must patch the Makefile!
Custom Makefiles, like the one this project uses, are, well, custom. Each
one is different. One hopes the developers of any build system would
anticipate the user's need to specify CFLAGS and LDFLAGS but many custom
Makefiles like this one do not. In such situations, one often must patch
them. Ideally, one would contribute the patch back to the developers so
that they can include it in the next version, and after we update to the
new version then we won't have to patch anymore. But if the project is no
longer being developed then that doesn't apply. I don't know whether this
project is still being developed. You could try to contact the developer
to find out.
> Not a big deal but I still do not know why you deleted "test.run yes".
The makefile does have "make test" defined. I must be missing something.
With `test.run yes` in the Portfile, trying to run `sudo port -d test
codegroup` failed with the message:
{{{
make: *** No rule to make target `test'. Stop.
}}}
There is no `test` target in the Makefile. That's why I removed `test.run
yes`—it didn't work.
Looking at it more closely, I see that there is a `check` target, and that
does seem to work, so I'll enable it in the Portfile.
--
Ticket URL: <https://trac.macports.org/ticket/63972#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list