From 14c8bc34fced905db27aa1195b1e3dc7d70f5b03 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 25 Apr 2013 03:33:08 +0200 Subject: [PATCH] Convert ncurses 5.9 recipe to an actual recipe --- sys-libs/ncurses/ncurses-5.9.recipe | 64 +++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 12 deletions(-) diff --git a/sys-libs/ncurses/ncurses-5.9.recipe b/sys-libs/ncurses/ncurses-5.9.recipe index d4f2696ad..fa7e6d448 100644 --- a/sys-libs/ncurses/ncurses-5.9.recipe +++ b/sys-libs/ncurses/ncurses-5.9.recipe @@ -1,16 +1,50 @@ -DESCRIPTION="ncurses" +SUMMARY="New curses library" HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz" CHECKSUM_MD5="8cb9c412e5f2d96bc6f459aa8c6282a1" -REVISION="2" -STATUS_HAIKU="stable" -DEPEND="" +LICENSE="MIT" +COPYRIGHT="1998-2011 Free Software Foundation, Inc." +REVISION="3" +ARCHITECTURES="x86_gcc2 ?x86" + +PROVIDES=" + ncurses = $portVersion compat >= 5 + cmd:captoinfo = $portVersion compat >= 5 + cmd:clear = $portVersion compat >= 5 + cmd:infocmp = $portVersion compat >= 5 + cmd:infotocap = $portVersion compat >= 5 + cmd:ncurses5_config = $portVersion compat >= 5 + cmd:reset = $portVersion compat >= 5 + cmd:tabs = $portVersion compat >= 5 + cmd:tic = $portVersion compat >= 5 + cmd:toe = $portVersion compat >= 5 + cmd:tput = $portVersion compat >= 5 + cmd:tset = $portVersion compat >= 5 + lib:libform = $portVersion compat >= 5 + lib:libmenu = $portVersion compat >= 5 + lib:libncurses++ = $portVersion compat >= 5 + lib:libncurses = $portVersion compat >= 5 + lib:libpanel = $portVersion compat >= 5 + " +REQUIRES=" + haiku >= $haikuVersion + " +BUILD_REQUIRES=" + cmd:gcc + cmd:grep + cmd:ld + cmd:libtool + cmd:make + cmd:sed + " +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + " +SOURCE_DIR="$portVersionedName" + BUILD() { - cd ncurses-5.9 - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --datadir=`finddir B_COMMON_DATA_DIRECTORY` \ - --mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \ + runConfigure --omit-dirs "dataRootDir docDir" ./configure \ --with-libtool \ --enable-termcap make @@ -18,9 +52,15 @@ BUILD() INSTALL() { - cd ncurses-5.9 - ./misc/shlib make install DESTDIR="${DESTDIR}" + ./misc/shlib make install + + # prepare develop/lib + prepareInstalledDevelLibs libform libmenu libncurses libncurses++ libpanel } -LICENSE="MIT" -COPYRIGHT="1998-2011 Free Software Foundation, Inc." + +DESCRIPTION="The Ncurses (new curses) library is a free software emulation of curses in System V Release 4.0, and more. It uses Terminfo format, supports pads and color and multiple highlights and forms characters and function-key mapping, and has all the other SYSV-curses enhancements over BSD Curses. + +The ncurses code was developed under GNU/Linux. It has been in use for some time with OpenBSD as the system curses library, and on FreeBSD and NetBSD as an external package. It should port easily to any ANSI/POSIX-conforming UNIX. It has even been ported to OS/2 Warp! + +The distribution includes the library and support utilities, including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo. Full manual pages are provided for the library and tools."