3c7eb697ab
Changelog: Features: - Try to do better pretty printing when array elements are individually replaced - Just fail quietly on attempt to remove a multi-variable declaration, allowing the semantic patch to continue. A warning message is printed. - Ignore unknown identifiers around known types. - Ignore --use-glimpse if multiple directories given - Added support for c++ namespace syntax in cocci files. - Improved c++ parsing - Addition of gcc min and max operators. Thanks to Holden Karau Bugfix: - use arg_expression for printing iterator arguments instead of expression, to get the right spacing. Thanks to Lars-Peter Clausen for the fix. - Better spacing for generated argument lists. Thanks to Lars-Peter Clausen for reporting the problem. - Collect all module interfaces for ocaml scripting in a single coccilib.cmi file, with the list of exposed internal modules in ocaml/exposed_modules.ml. This simplifies the installation of the ocaml version of coccilib, and allows us to specify which modules can be accessed by an ocaml script. The coccilib.cmi must either reside in $COCCI_DIR/ocaml/ or $COCCI_DIR/ocaml/coccilib/. - Ocamlbuild-based compilation of coccinelle (experimental). In a cleaned repository, use the configure option --enable-ocamlbuild to enable it. The Makefiles will then use ocamlbuild. - Ocamlscripts can access more of coccinelle: the file ocaml/exposed_modules.ml specifies which modules are accessible. - Use arg_expression to print macro arguments. Thanks to Lars-Peter Clausen for the fix. - Remove some trailing whitespace due to unindent or added if braces. Thanks to Eric LeBlond for reporting one of the problems. - Remove undesired newline after if header when body is a metavariable. Thanks to Eric LeBlond for reporting the problem. - Improve macro expansion to take into account variable numbers of arguments - Don't count macros or ifdefs in counting fields - Better counting of indent size when indent contains multiple tabs - Get the right annotation on trailing , that is after a nest. Requires avoiding double processing in transformation_c.ml - Fixed an issue where an 'Impossible' exception could be raised. - Fixed an issue where some identifiers were incorrectly interpreted as typedef. - allow __ at the beginning of a struct or union name - unparsing with precedence - Type metavariable should not match a case where there is no type in the C code. Thanks to SF Markus Elfring for pointing out the problem. - Allow an expression list metavariable to be attached to a parameter list metavariable, to allow using the parameter names as an argument list. Thanks to Michael Stefaniuc for pointing out the need for this feature.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2013/06/11 14:03:19 ryoon Exp $
|
|
|
|
DISTNAME= coccinelle-1.0.0-rc17
|
|
PKGNAME= ${DISTNAME:S/-rc/rc/}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://coccinelle.lip6.fr/distrib/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://coccinelle.lip6.fr/
|
|
COMMENT= Tool for writing and applying semantic patches
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
BUILD_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
|
|
DEPENDS+= menhir>=20071212:../../devel/menhir
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
REPLACE_PERL= configure
|
|
BUILD_TARGET= all all.opt
|
|
|
|
SUBST_CLASSES+= man
|
|
SUBST_FILES.man+= configure
|
|
SUBST_SED.man+= -e "s,$${prefix}/man,$${prefix}/${PKGMANDIR},g"
|
|
SUBST_STAGE.man= pre-configure
|
|
SUBST_MESSAGE.man= Fixing manpath.
|
|
|
|
TEST_TARGET= test
|
|
|
|
.include "../../lang/python/tool.mk"
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
|
|
|
|
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.11
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|