From 612f3c695c9908060db6f7710cbb339069a0bb36 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 21 Feb 2012 06:43:35 +0000 Subject: [PATCH] Update gnu global to 6.2 --- dev-util/global/global-6.2.bep | 24 +++++++++++++++ dev-util/global/patches/global-6.2.patch | 38 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 dev-util/global/global-6.2.bep create mode 100644 dev-util/global/patches/global-6.2.patch diff --git a/dev-util/global/global-6.2.bep b/dev-util/global/global-6.2.bep new file mode 100644 index 000000000..a7606c389 --- /dev/null +++ b/dev-util/global/global-6.2.bep @@ -0,0 +1,24 @@ +DESCRIPTION="GNU Global is a source code tagging system." +HOMEPAGE="http://www.gnu.org/software/global/" +SRC_URI="http://ftp.gnu.org/pub/gnu/global/global-6.2.tar.gz" +CHECKSUM_MD5="30f5c6c0f737a3475ec8786ae6e34648" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="dev-util/ctags >= 5.8" +BUILD { + cd global-6.2 + autoreconf -fi + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --with-ncurses \ + --with-exuberant-ctags=$(finddir B_COMMON_BIN_DIRECTORY)/ctags \ + --with-posix-sort=/bin/sort + make +} + +INSTALL { + cd global-6.2 + make install +} +LICENSE="GNU GPL v3" +COPYRIGHT="2000-2012 Tama Communications Corporation + 2007-2012 Free Software Foundation, Inc." diff --git a/dev-util/global/patches/global-6.2.patch b/dev-util/global/patches/global-6.2.patch new file mode 100644 index 000000000..50450843a --- /dev/null +++ b/dev-util/global/patches/global-6.2.patch @@ -0,0 +1,38 @@ +diff -up global-6.2/configure.ac.orig global-6.2/configure.ac +--- global-6.2/configure.ac.orig 2012-01-20 22:15:13.034340864 -0700 ++++ global-6.2/configure.ac 2012-02-20 23:31:39.196870144 -0700 +@@ -58,7 +58,7 @@ LTDL_INIT([recursive]) + dnl Checks for libraries. + + dnl Checks for header files. +-AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h sys/time.h fcntl.h) ++AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h stdint.h sys/time.h fcntl.h) + AC_CHECK_HEADERS(sys/resource.h) + AC_HEADER_DIRENT + if test ${ac_header_dirent} = no; then +diff -up global-6.2/libdb/db.h.orig global-6.2/libdb/db.h +--- global-6.2/libdb/db.h.orig 2012-01-20 22:15:13.058982400 -0700 ++++ global-6.2/libdb/db.h 2012-02-20 23:31:39.197918720 -0700 +@@ -40,6 +40,9 @@ + #ifdef HAVE_UNISTD_H + #include + #endif ++#ifdef HAVE_STDINT_H ++#include ++#endif + + #include "compat.h" + +diff -up global-6.2/m4/check_curses.m4.orig global-6.2/m4/check_curses.m4 +--- global-6.2/m4/check_curses.m4.orig 2012-02-20 23:35:06.375128064 -0700 ++++ global-6.2/m4/check_curses.m4 2012-02-20 23:36:47.207618048 -0700 +@@ -240,6 +240,9 @@ AC_DEFUN([AC_SEARCH_NCURSES], [ + + AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses") + ++ AC_NCURSES(/boot/develop/headers/3rdparty, ncurses.h, -lncurses, -I/boot/develop/headers/3rdparty, "ncurses on /boot/develop") ++ AC_NCURSES(/boot/common/include/ncurses, ncurses.h, -lncurses, -I/boot/common/include/ncurses, "ncurses on /boot/common") ++ + dnl + dnl We couldn't find ncurses, try SysV curses + dnl