pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/coccinelle Update to 0.1.6a: pkgsrc fixes integr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a12160440d27
branches: trunk
changeset: 556886:a12160440d27
user: wiz <wiz%pkgsrc.org@localhost>
date: Mon Apr 06 10:11:05 2009 +0000
description:
Update to 0.1.6a: pkgsrc fixes integrated upstream; another
post-0.1.6a patch from upstream for a pkgsrc bug report added.
diffstat:
devel/coccinelle/Makefile | 21 +++++++++-----
devel/coccinelle/PLIST | 6 ++--
devel/coccinelle/distinfo | 12 +++-----
devel/coccinelle/patches/patch-aa | 52 --------------------------------------
devel/coccinelle/patches/patch-ab | 13 ---------
devel/coccinelle/patches/patch-ac | 32 -----------------------
devel/coccinelle/patches/patch-ad | 53 +++++++++++++++++++++++++++++++++++++++
7 files changed, 74 insertions(+), 115 deletions(-)
diffs (256 lines):
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/Makefile
--- a/devel/coccinelle/Makefile Mon Apr 06 10:09:55 2009 +0000
+++ b/devel/coccinelle/Makefile Mon Apr 06 10:11:05 2009 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2009/03/22 17:51:36 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2009/04/06 10:11:05 wiz Exp $
-DISTNAME= coccinelle-0.1.6
-PKGREVISION= 1
+DISTNAME= coccinelle-0.1.6a
CATEGORIES= devel
MASTER_SITES= http://www.emn.fr/x-info/coccinelle/distrib/
EXTRACT_SUFX= .tgz
@@ -15,24 +14,30 @@
HAS_CONFIGURE= yes
USE_TOOLS= gmake perl
REPLACE_PERL= configure
-REPLACE_SH= runspatch.opt scripts/spatch.sh
+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/bsd.fast.prefs.mk"
+.include "../../mk/dlopen.buildlink3.mk"
-.if ${OPSYS} != "Linux"
-BUILDLINK_TRANSFORM+= rm:-ldl
-.endif
+BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
.include "../../lang/ocaml/buildlink3.mk"
.include "../../lang/python/application.mk"
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/PLIST
--- a/devel/coccinelle/PLIST Mon Apr 06 10:09:55 2009 +0000
+++ b/devel/coccinelle/PLIST Mon Apr 06 10:11:05 2009 +0000
@@ -1,10 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/21 23:50:53 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2009/04/06 10:11:05 wiz Exp $
bin/spatch
+bin/spatch.opt
lib/dllpycaml_stubs.so
man/man1/spatch.1
-share/coccinelle/python/coccilib/Makefile
share/coccinelle/python/coccilib/__init__.py
-share/coccinelle/python/coccilib/coccigui/Makefile
share/coccinelle/python/coccilib/coccigui/__init__.py
share/coccinelle/python/coccilib/coccigui/coccigui.py
share/coccinelle/python/coccilib/coccigui/pycoccimodel.py
@@ -18,6 +17,7 @@
share/coccinelle/python/coccilib/output.py
share/coccinelle/python/coccilib/output_base.py
share/coccinelle/python/coccilib/output_trac.py
+share/coccinelle/spatch
share/coccinelle/spatch.opt
share/coccinelle/standard.h
share/coccinelle/standard.iso
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/distinfo
--- a/devel/coccinelle/distinfo Mon Apr 06 10:09:55 2009 +0000
+++ b/devel/coccinelle/distinfo Mon Apr 06 10:11:05 2009 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.2 2009/03/22 17:51:36 wiz Exp $
+$NetBSD: distinfo,v 1.3 2009/04/06 10:11:05 wiz Exp $
-SHA1 (coccinelle-0.1.6.tgz) = f027dc3f14b7e9b9ad0c28d73e57c01dc7ac02a6
-RMD160 (coccinelle-0.1.6.tgz) = 2836e816aa16147d18051265563164b6de73a447
-Size (coccinelle-0.1.6.tgz) = 3308204 bytes
-SHA1 (patch-aa) = 4322764ba5a7572aafe9d5fdd8d8ce7e6bc43cc1
-SHA1 (patch-ab) = 9f66851118d443140ded2c2e84177b746c676b2b
-SHA1 (patch-ac) = bbf01eab3030f897c910add77c48f320795baf4a
+SHA1 (coccinelle-0.1.6a.tgz) = 31bcd77f8708da23604821392f87468f6c8325cc
+RMD160 (coccinelle-0.1.6a.tgz) = fa42b46da2c3c81b1d2023a2132c7bf1822a4a55
+Size (coccinelle-0.1.6a.tgz) = 2909054 bytes
+SHA1 (patch-ad) = c3e41db702596255c60357676b713429dfb0a1ea
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/patches/patch-aa
--- a/devel/coccinelle/patches/patch-aa Mon Apr 06 10:09:55 2009 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/03/21 23:50:53 wiz Exp $
-
---- Makefile.orig 2009-03-20 18:15:41.000000000 +0000
-+++ Makefile
-@@ -207,12 +207,19 @@ install-common:
- mkdir -p $(DESTDIR)$(LIBDIR)
- mkdir -p $(DESTDIR)$(SHAREDIR)
- mkdir -p $(DESTDIR)$(MANDIR)/man1
-- cp standard.h $(DESTDIR)$(SHAREDIR)
-- cp standard.iso $(DESTDIR)$(SHAREDIR)
-- cp docs/spatch.1 $(DESTDIR)$(MANDIR)/man1/
-+ ${BSD_INSTALL_DATA} standard.h $(DESTDIR)$(SHAREDIR)
-+ ${BSD_INSTALL_DATA} standard.iso $(DESTDIR)$(SHAREDIR)
-+ ${BSD_INSTALL_DATA} docs/spatch.1 $(DESTDIR)$(MANDIR)/man1/
- mkdir -p $(DESTDIR)$(SHAREDIR)/python
-- cp -a python/coccilib $(DESTDIR)$(SHAREDIR)/python
-- cp -f dllpycaml_stubs.so $(DESTDIR)$(LIBDIR)
-+ mkdir -p $(DESTDIR)$(SHAREDIR)/python/coccilib
-+ ${BSD_INSTALL_DATA} python/coccilib/Makefile \
-+ $(DESTDIR)$(SHAREDIR)/python/coccilib
-+ ${BSD_INSTALL_DATA} python/coccilib/*.* \
-+ $(DESTDIR)$(SHAREDIR)/python/coccilib
-+ mkdir -p $(DESTDIR)$(SHAREDIR)/python/coccilib/coccigui
-+ ${BSD_INSTALL_DATA} python/coccilib/coccigui/* \
-+ $(DESTDIR)$(SHAREDIR)/python/coccilib/coccigui
-+ ${BSD_INSTALL_LIB} dllpycaml_stubs.so $(DESTDIR)$(LIBDIR)
- @echo ""
- @echo "You can also install spatch by copying the program spatch"
- @echo "(available in this directory) anywhere you want and"
-@@ -221,17 +228,18 @@ install-common:
-
- # user will use spatch to run spatch.opt (native)
- install: all.opt install-common
-- cp spatch.opt $(DESTDIR)$(SHAREDIR)
-- cat scripts/spatch.sh | sed "s|SHAREDIR|$(DESTDIR)$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch
-+ ${BSD_INSTALL_PROGRAM} spatch.opt $(DESTDIR)$(SHAREDIR)
-+ cat scripts/spatch.sh | sed "s|SHAREDIR|$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch
-+ chmod 555 $(DESTDIR)$(BINDIR)/spatch
-
- # user will use spatch to run spatch (bytecode)
- install-byte: all install-common
-- cp spatch $(DESTDIR)$(SHAREDIR)
-+ ${BSD_INSTALL_PROGRAM} spatch $(DESTDIR)$(SHAREDIR)
- cat scripts/spatch.sh | sed "s|\.opt||" | sed "s|SHAREDIR|$(DESTDIR)$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch
-
- # user will use spatch.opt to run spatch.opt (native)
- install-opt: all.opt install-common
-- cp spatch.opt $(DESTDIR)$(SHAREDIR)
-+ ${BSD_INSTALL_PROGRAM} spatch.opt $(DESTDIR)$(SHAREDIR)
- cat scripts/spatch.sh | sed "s|SHAREDIR|$(DESTDIR)$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch.opt
-
- uninstall:
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/patches/patch-ab
--- a/devel/coccinelle/patches/patch-ab Mon Apr 06 10:09:55 2009 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2009/03/22 17:51:36 wiz Exp $
-
---- tools/alloc_free.ml.orig 2009-03-22 17:22:38.000000000 +0000
-+++ tools/alloc_free.ml
-@@ -167,7 +167,7 @@ let _ =
- then
- begin
- let o = open_out (Printf.sprintf "%s/files" !dir) in
-- Printf.fprintf o "#!/bin/bash\n\n";
-+ Printf.fprintf o "#!/bin/sh\n\n";
- sedify o !gen !dir l;
- sedify_ors o !gen !dir l;
- Printf.fprintf o "\nwait\n/bin/rm tmp*out\n";
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/patches/patch-ac
--- a/devel/coccinelle/patches/patch-ac Mon Apr 06 10:09:55 2009 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2009/03/22 17:51:36 wiz Exp $
-
---- scripts/spatch.sh.orig 2009-03-19 10:42:38.000000000 +0000
-+++ scripts/spatch.sh
-@@ -1,20 +1,20 @@
--#!/bin/bash
-+#!/bin/sh
-
- echo setting COCCINELLE_HOME=${COCCINELLE_HOME:=SHAREDIR}
-
--if [ ! -r $COCCINELLE_HOME/standard.iso ] ; then
-+if [ ! -r "$COCCINELLE_HOME"/standard.iso ] ; then
- echo "There is no standard.iso in SHAREDIR."
- echo "Are you sure you run a properly installed version of spatch ?\n"
- else
-
- export COCCINELLE_HOME
-- export LD_LIBRARY_PATH=$COCCINELLE_HOME:$LD_LIBRARY_PATH
-- export PYTHONPATH=$COCCINELLE_HOME/python:$PYTHONPATH
-+ export LD_LIBRARY_PATH="$COCCINELLE_HOME:$LD_LIBRARY_PATH"
-+ export PYTHONPATH="$COCCINELLE_HOME/python:$PYTHONPATH"
-
-- echo setting LD_LIBRARY_PATH=$LD_LIBRARY_PATH
-- echo setting PYTHONPATH=$PYTHONPATH
-+ echo setting LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
-+ echo setting PYTHONPATH="$PYTHONPATH"
-
- fi
-
--$COCCINELLE_HOME/spatch.opt $*
-+"$COCCINELLE_HOME"/spatch.opt "$@"
-
diff -r 80a3d40bb9b3 -r a12160440d27 devel/coccinelle/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/coccinelle/patches/patch-ad Mon Apr 06 10:11:05 2009 +0000
@@ -0,0 +1,53 @@
+$NetBSD: patch-ad,v 1.1 2009/04/06 10:11:05 wiz Exp $
+
+--- Makefile.orig 2009-03-22 20:48:19.000000000 +0000
++++ Makefile
+@@ -38,7 +38,7 @@ ifeq ($(FEATURE_PYTHON),1)
+ PYCMA=pycaml/pycaml.cma
+ PYDIR=pycaml
+ PYLIB=dllpycaml_stubs.so
+-# the following is essential for Coccinelle to compile under gentoo (wierd)
++# the following is essential for Coccinelle to compile under gentoo (weird)
+ OPTLIBFLAGS=-cclib dllpycaml_stubs.so
+ else
+ PYCMA=
+@@ -224,22 +224,36 @@ install-python:
+ $(DESTDIR)$(SHAREDIR)/python/coccilib
+ $(INSTALL_DATA) python/coccilib/coccigui/*.py \
+ $(DESTDIR)$(SHAREDIR)/python/coccilib/coccigui
++ $(INSTALL_DATA) python/coccilib/coccigui/pygui.glade \
++ $(DESTDIR)$(SHAREDIR)/python/coccilib/coccigui
++ $(INSTALL_DATA) python/coccilib/coccigui/pygui.gladep \
++ $(DESTDIR)$(SHAREDIR)/python/coccilib/coccigui
+ $(INSTALL_LIB) dllpycaml_stubs.so $(DESTDIR)$(LIBDIR)
+
++install:
++ @if test -x spatch -a ! -x spatch.opt ; then \
++ $(MAKE) install-byte;fi
++ @if test ! -x spatch -a -x spatch.opt ; then \
++ $(MAKE) install-def; $(MAKE) install-opt;fi
++ @if test -x spatch -a -x spatch.opt ; then \
++ $(MAKE) install-byte; $(MAKE) install-opt;fi
++ @if test ! -x spatch -a ! -x spatch.opt ; then \
++ echo "\n\n\t==> Run 'make', 'make opt', or both first. <==\n\n";fi
++
+ # user will use spatch to run spatch.opt (native)
+-install: all.opt install-common
++install-def: install-common
+ $(INSTALL_PROGRAM) spatch.opt $(DESTDIR)$(SHAREDIR)
+ cat scripts/spatch.sh | sed "s|SHAREDIR|$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch
+ chmod 755 $(DESTDIR)$(BINDIR)/spatch
+
+ # user will use spatch to run spatch (bytecode)
+-install-byte: all install-common
++install-byte: install-common
+ $(INSTALL_PROGRAM) spatch $(DESTDIR)$(SHAREDIR)
+ cat scripts/spatch.sh | sed "s|\.opt||" | sed "s|SHAREDIR|$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch
+ chmod 755 $(DESTDIR)$(BINDIR)/spatch
+
+ # user will use spatch.opt to run spatch.opt (native)
+-install-opt: all.opt install-common
++install-opt: install-common
+ $(INSTALL_PROGRAM) spatch.opt $(DESTDIR)$(SHAREDIR)
+ cat scripts/spatch.sh | sed "s|SHAREDIR|$(SHAREDIR)|g" > $(DESTDIR)$(BINDIR)/spatch.opt
+ chmod 755 $(DESTDIR)$(BINDIR)/spatch.opt
Home |
Main Index |
Thread Index |
Old Index