From c3ddab959ca2b4be61f0fa19c1c089f5ebe68bf6 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 16 Oct 2013 16:17:16 -0600 Subject: [PATCH] Convert cscope to working recipe --- dev-util/cscope/cscope-15.7a.recipe | 58 ++++++++++++++++++---- dev-util/cscope/patches/cscope-15.7a.patch | 5 +- 2 files changed, 52 insertions(+), 11 deletions(-) diff --git a/dev-util/cscope/cscope-15.7a.recipe b/dev-util/cscope/cscope-15.7a.recipe index de04966d8..af4f32cdd 100644 --- a/dev-util/cscope/cscope-15.7a.recipe +++ b/dev-util/cscope/cscope-15.7a.recipe @@ -1,22 +1,62 @@ -DESCRIPTION="Cscope is a developer's tool for browsing source code." +SUMMARY="Cscope is a developer's tool for browsing source code." +DESCRIPTION=" +Allows searching code for: + * all references to a symbol + * global definitions + * functions called by a function + * functions calling a function + * text string + * regular expression pattern + * a file + * files including a file +" HOMEPAGE="http://cscope.sourceforge.net/" -SRC_URI="http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2/download" +SRC_URI="http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2" CHECKSUM_MD5="da43987622ace8c36bbf14c15a350ec1" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" +ARCHITECTURES="x86 x86_gcc2" +LICENSE="BSD (3-clause)" +COPYRIGHT="1998-2000 The Santa Cruz Operation" + +SOURCE_DIR="$portVersionedName" + +PATCHES="cscope-15.7a.patch" + +PROVIDES=" + cscope = $portVersion compat >= 15 + cmd:cscope = $portVersion compat >= 15 + cmd:ocs = $portVersion compat >= 15 + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libncurses + " + +BUILD_REQUIRES=" + devel:libncurses + " + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:gcc + cmd:make + cmd:autoreconf + cmd:aclocal + cmd:flex + cmd:bison + cmd:pkg_config + cmd:gawk + " + BUILD() { - cd cscope-15.7a autoreconf -fvi - ./configure --prefix=`finddir B_COMMON_DIRECTORY` + runConfigure ./configure make } INSTALL() { - cd cscope-15.7a make install } -LICENSE="BSD (3-clause)" -COPYRIGHT="1998-2000 The Santa Cruz Operation" diff --git a/dev-util/cscope/patches/cscope-15.7a.patch b/dev-util/cscope/patches/cscope-15.7a.patch index 35f49b31a..d13c508f4 100644 --- a/dev-util/cscope/patches/cscope-15.7a.patch +++ b/dev-util/cscope/patches/cscope-15.7a.patch @@ -1,11 +1,12 @@ diff -ur cscope-15.7a/configure.in cscope-15.7a-haiku/configure.in --- cscope-15.7a/configure.in 2009-04-30 13:17:34.000000000 -0600 +++ cscope-15.7a-haiku/configure.in 2009-12-29 02:33:05.000000000 -0700 -@@ -264,6 +264,8 @@ +@@ -264,6 +264,9 @@ 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,, "ncurses on /boot/develop/headers/3rdparty") ++ AC_NCURSES(/boot/system/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/system/develop/headers") ++ AC_NCURSES(/boot/home/config/develop/headers, ncurses.h, -lncurses,, "ncurses on /boot/home/config/develop/headers") + dnl dnl We couldn't find ncurses, try SysV curses