On 2009/12/06 13:35, Sebastian Reitenbach wrote:
> -RUN_DEPENDS= ::x11/tk/8.4
> +RUN_DEPENDS= ::x11/tk/8.5 \
this should use MODULES=x11/tk and RUN_DEPENDS=${MODTK_RUN_DEPENDS}
> +--- Coccinella.tcl.orig Mon Feb 23 05:47:12 2009
> ++++ Coccinella.tcl Sat Aug 29 13:13:35 2009
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/env wish
> ++#!/usr/bin/env wish8.5
and this should be done using ${MODTCL_WISH_ADJ} in pre-configure.
there are some similar changes to make for the other ports, basically
tcl versions/directory names/library names/path to wish/etc shouldn't
be hardcoded, the module-provided variables should be used instead -
see the lang/tcl and x11/tk sections of port-modules(5).
the other ports with shared libraries should have the versions set to
0.0 to start with, license comments for GPL should have the license
version (GPLv2 only, GPLv2+, GPLv3+/whatever), and there are some
dependencies to fix (for starters, run make port-lib-depends-check,
also some just have BUILD_DEPENDS on tcl but it seems they should
also be RUN_DEPENDS).
> -set thisPath [file normalize [file dirname $thisScript]]
> +set thisPath "!!COCCINELLALIB!!"
we have a standard format for substitutions, using ${SUBST_CMD} rather
than a handrolled perl -pi -e... line, so you'd change the patch to use
${COCCINELLALIB} instead of !!COCCINELLALIB!!, set COCCINELLALIB=<...>
in Makefile, add SUBST_VARS+=COCCINELLALIB, and change the perl -pi -e
line to ${SUBST_CMD} ${WRKSRC}/file(s).