pkgsrc/devel/coccinelle/Makefile
wiz eaca628f3a Update to 0.1.7.
Did I never commit this??

* 0.1.7

** Language:
- initialize and finalize script code, cf demos/initial_final.cocci

** Features:
- -iso_limit option to limit the depth of isomorphism application
- with the dir option, the include path is implicitly set to the "include"
  subdirectory of the specified directory, if the option -I is not used.
- give a seed for the name of a fresh identifier
- better handling of cpp "constructed" identifiers as in a##b, that in
  the futur will make it easier to match over those idents.
  cf tests/pb_parsing_macro.c. Thanks to Ali-Erdem Ozcan for pointing
  out the problem. A new "parsing hack hint" is also available:
  YACFE_IDENT_BUILDER, cf standard.h.

** Bugfix:
- drop excessive "optimization" in ctl generation for while and for loops
- allow . as the name of the directory
- for type inference for an assignment, take the type of the right-hand
  side expression, not the type of the assigned variable
- allow for with a declartion in the first header element, as in C++
  (partial support)
- allow for matching against variable declarations that include only
  storage, eg static, but no type at all.
- allow for matching against types that contain both short/long and int
- allow the type metavariable in the SmPL code "unsigned T" to match a T
  that is a type consisting of more than one word, eg long int.
- -ifdef_to_if option made to process nested ifdefs
  (partial support)

** Internals:
- improve and fix installation process (usable on BSD)
- improve and fix testing process
- apply patches from Eugeniy Meshcheryakov
- reorganize the way we parse C identifiers, especially concatenated cpp
  identifiers as in a##b. This may lead to some regressions as we may
  not parse as much code as before.
- removed popl/ and popl09/ and popl related stuff from official distrib.
2009-04-29 11:21:52 +00:00

50 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2009/04/29 11:21:52 wiz Exp $
DISTNAME= coccinelle-0.1.7
CATEGORIES= devel
MASTER_SITES= http://aryx.cs.uiuc.edu/~pad/software/project-coccinelle/#http://www.emn.fr/x-info/coccinelle/distrib/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.emn.fr/x-info/coccinelle/
COMMENT= Tool for writing and applying semantic patches
BUILD_DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
DEPENDS+= menhir-[0-9]*:../../devel/menhir
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
#MAKE_JOBS_SAFE= no
HAS_CONFIGURE= yes
USE_TOOLS= gmake perl
REPLACE_PERL= configure
BUILD_TARGET= all all.opt
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIG_SHELL= ${PERL5}
PYTHON_VERSIONS_ACCEPTED= 25
SUBST_CLASSES+= python
SUBST_FILES.python+= pycaml/Makefile
SUBST_SED.python+= -e "s, python , ${PYTHONBIN} ,g"
SUBST_STAGE.python= post-configure
SUBST_MESSAGE.python= Fixing python executable name.
SUBST_CLASSES+= man
SUBST_FILES.man+= docs/spatch.1
SUBST_SED.man+= -e "s,/usr/local,${PREFIX},g"
SUBST_STAGE.man= post-configure
SUBST_MESSAGE.man= Fixing path to examples in man page.
TEST_TARGET= test
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
.include "../../lang/ocaml/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"