pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cad/adms add missing lex/yacc to USE_TOOLS and fix a s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e77e445905d3
branches:  trunk
changeset: 528674:e77e445905d3
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Sat May 12 11:33:42 2007 +0000

description:
add missing lex/yacc to USE_TOOLS and fix a stupid
configure test that forces the name of LEX and YACC
to be "flex" and "bison -y".  The old test doesn't even
allow a path name.

diffstat:

 cad/adms/Makefile         |   4 ++--
 cad/adms/distinfo         |   6 +++---
 cad/adms/patches/patch-aa |  29 ++++++++++++++++++++++++++++-
 cad/adms/patches/patch-ab |  31 ++++++++++++++++++++++++++++++-
 4 files changed, 63 insertions(+), 7 deletions(-)

diffs (114 lines):

diff -r c1cd73f92e1c -r e77e445905d3 cad/adms/Makefile
--- a/cad/adms/Makefile Sat May 12 11:19:18 2007 +0000
+++ b/cad/adms/Makefile Sat May 12 11:33:42 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/05/09 02:40:18 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.2 2007/05/12 11:33:42 dmcmahill Exp $
 #
 
 DISTNAME=      adms-2.2.5
@@ -13,7 +13,7 @@
 
 AUTOMAKE_OVERRIDE=     NO
 GNU_CONFIGURE=         YES
-USE_TOOLS+=            gmake pkg-config
+USE_TOOLS+=            gmake lex pkg-config yacc
 USE_LIBTOOL=           YES
 
 CONFIGURE_ENV+=        PKGCONFIG_CONFIG=${PKG_CONFIG:Q}
diff -r c1cd73f92e1c -r e77e445905d3 cad/adms/distinfo
--- a/cad/adms/distinfo Sat May 12 11:19:18 2007 +0000
+++ b/cad/adms/distinfo Sat May 12 11:33:42 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/05/09 02:40:18 dmcmahill Exp $
+$NetBSD: distinfo,v 1.2 2007/05/12 11:33:42 dmcmahill Exp $
 
 SHA1 (adms-2.2.5.tar.gz) = 03093643feee7ef759cf2f65b497155e2e0df791
 RMD160 (adms-2.2.5.tar.gz) = 274f2330696e9e0825b77a3a3ca0a307e9f00bed
 Size (adms-2.2.5.tar.gz) = 706220 bytes
-SHA1 (patch-aa) = 8a2d74b1f4ccec749e65a0ed6e2cc334050d7805
-SHA1 (patch-ab) = 4405750dda622a9ccc9063ca827a692f19279b9b
+SHA1 (patch-aa) = d1aae5799925a164841b7905ef991d261a33867a
+SHA1 (patch-ab) = fc6914555c5ccaa33c1b787f705ce6a205d83235
diff -r c1cd73f92e1c -r e77e445905d3 cad/adms/patches/patch-aa
--- a/cad/adms/patches/patch-aa Sat May 12 11:19:18 2007 +0000
+++ b/cad/adms/patches/patch-aa Sat May 12 11:33:42 2007 +0000
@@ -1,4 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 2007/05/09 02:40:18 dmcmahill Exp $
+$NetBSD: patch-aa,v 1.2 2007/05/12 11:33:42 dmcmahill Exp $
+
+- don't force the use of gcc.
+- avoid a check for flex/bison which fail if you have specified
+  the full path.
 
 --- configure.ac.orig  2007-02-01 21:29:53.000000000 +0000
 +++ configure.ac
@@ -11,3 +15,26 @@
  
  # specific configuration.
  AC_CONFIG_AUX_DIR([auxconf])
+@@ -512,14 +512,14 @@ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+ 
+ #force use of flex/bison
+-if test "x$LEX" != "xflex"; then
+-  AC_MSG_WARN(Program flex not found (found $LEX))
+-  AC_MSG_ERROR(Please install gnu flex from http://www.gnu.org/software/flex/)
+-fi
+-if test "x$YACC" != "xbison -y"; then
+-  AC_MSG_WARN(Program bison not found (found $YACC))
+-  AC_MSG_ERROR(Please install gnu bison from http://www.gnu.org/software/bison/)
+-fi
++#if test "x$LEX" != "xflex"; then
++#  AC_MSG_WARN(Program flex not found (found $LEX))
++#  AC_MSG_ERROR(Please install gnu flex from http://www.gnu.org/software/flex/)
++#fi
++#if test "x$YACC" != "xbison -y"; then
++#  AC_MSG_WARN(Program bison not found (found $YACC))
++#  AC_MSG_ERROR(Please install gnu bison from http://www.gnu.org/software/bison/)
++#fi
+ 
+ #advice use of gcc
+ if test "x$GCC" = "xyes"; then
diff -r c1cd73f92e1c -r e77e445905d3 cad/adms/patches/patch-ab
--- a/cad/adms/patches/patch-ab Sat May 12 11:19:18 2007 +0000
+++ b/cad/adms/patches/patch-ab Sat May 12 11:33:42 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/05/09 02:40:18 dmcmahill Exp $
+$NetBSD: patch-ab,v 1.2 2007/05/12 11:33:42 dmcmahill Exp $
 
 --- configure.orig     2007-02-05 12:21:02.000000000 +0000
 +++ configure
@@ -11,3 +11,32 @@
  
  # specific configuration.
  ac_aux_dir=
+@@ -4116,20 +4116,14 @@ fi
+ 
+ 
+ #force use of flex/bison
+-if test "x$LEX" != "xflex"; then
+-  { echo "$as_me:$LINENO: WARNING: Program flex not found (found $LEX)" >&5
+-echo "$as_me: WARNING: Program flex not found (found $LEX)" >&2;}
+-  { { echo "$as_me:$LINENO: error: Please install gnu flex from http://www.gnu.org/software/flex/"; >&5
+-echo "$as_me: error: Please install gnu flex from http://www.gnu.org/software/flex/"; >&2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-if test "x$YACC" != "xbison -y"; then
+-  { echo "$as_me:$LINENO: WARNING: Program bison not found (found $YACC)" >&5
+-echo "$as_me: WARNING: Program bison not found (found $YACC)" >&2;}
+-  { { echo "$as_me:$LINENO: error: Please install gnu bison from http://www.gnu.org/software/bison/"; >&5
+-echo "$as_me: error: Please install gnu bison from http://www.gnu.org/software/bison/"; >&2;}
+-   { (exit 1); exit 1; }; }
+-fi
++#if test "x$LEX" != "xflex"; then
++#  AC_MSG_WARN(Program flex not found (found $LEX))
++#  AC_MSG_ERROR(Please install gnu flex from http://www.gnu.org/software/flex/)
++#fi
++#if test "x$YACC" != "xbison -y"; then
++#  AC_MSG_WARN(Program bison not found (found $YACC))
++#  AC_MSG_ERROR(Please install gnu bison from http://www.gnu.org/software/bison/)
++#fi
+ 
+ #advice use of gcc
+ if test "x$GCC" = "xyes"; then



Home | Main Index | Thread Index | Old Index