rhapsody_irc, updated old bep file to working recipe, cleanup whitespaces in patch file (#1313)

This commit is contained in:
Schrijvers Luc
2017-05-02 03:15:15 +02:00
committed by waddlesplash
parent 5ec749a013
commit 57e17e325a
2 changed files with 41 additions and 19 deletions

View File

@@ -2,11 +2,11 @@ diff -ur rhapsody-0.28b.org/configure rhapsody-0.28b/configure
--- rhapsody-0.28b.org/configure 2006-02-24 07:46:19.017301504 +0100
+++ rhapsody-0.28b/configure 2012-11-22 20:29:15.727973888 +0100
@@ -168,6 +168,25 @@
STDDOCSPATH="/usr/share/doc/rhapsody"
+elif [ "$OS" = "Haiku" ] ; then
+ CCPATH="/boot/develop/tools/gnupro/bin /boot/develop/bin"
+ CCPATH="/boot/develop/tools/gnupro/bin /boot/develop/bin /bin"
+ CURSESPATH="/boot/develop/headers/3rdparty /boot/develop/headers /boot/develop/headers/gnu"
+
+ GCCBASELIBS="-lncurses -lnetwork"
@@ -20,7 +20,7 @@ diff -ur rhapsody-0.28b.org/configure rhapsody-0.28b/configure
+ CCBASEFLAGS=""
+
+ STDDOCSPATH="`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/rhapsody"
+ if [ -z "$INSTALLPATH" ] ; then
+ if [ -z "$INSTALLPATH" ] ; then
+ INSTALLPATH="`finddir B_COMMON_BIN_DIRECTORY`"
+ fi
+
@@ -30,9 +30,9 @@ diff -ur rhapsody-0.28b.org/configure rhapsody-0.28b/configure
@@ -235,7 +254,7 @@
# Set install, docs, header and lib path if not provided #
###########################################################
-if [ $USER = "root" ] ; then
+if [ $USER = "root" -o "$UID" = "0" ] ; then
echo "Running as root."
if [ -z "$INSTALLPATH" ] ; then
if [ -z "$INSTALLPATH" ] ; then

View File

@@ -1,23 +1,45 @@
DESCRIPTION="Text console IRC client"
SUMMARY="A text console IRC client"
DESCRIPTION="Rhapsody is a text console IRC client for Unix operating \
systems. It is small, fast, portable, easy to use and full featured. \
An intuitive menu-driven user interface makes rhapsody ideal for \
beginner to intermediate users."
HOMEPAGE="http://rhapsody.sourceforge.net/"
SOURCE_URI="http://downloads.sourceforge.net/project/rhapsody/rhapsody/Rhapsody%20IRC%200.28b/rhapsody_0.28b.tgz"
COPYRIGHT="2006 Adrian Gonera"
LICENSE="GNU GPL v2"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
CHECKSUM_MD5="0792de636a2625a826491e387fcb1305"
SOURCE_URI="https://sourceforge.net/projects/rhapsody/files/rhapsody/Rhapsody%20IRC%200.28b/rhapsody_0.28b.tgz"
CHECKSUM_SHA256="606d767f9bd4c810343b1ce94492f4aaf993552edee090ec881627b29294b4dd"
SOURCE_DIR="rhapsody-0.28b"
PATCHES="rhapsody_irc-$portVersion.patch"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
rhapsody = $portVersion
cmd:rhapsody
"
REQUIRES="
haiku
lib:libncurses
"
BUILD_REQUIRES="
haiku_devel
devel:libncurses
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
BUILD()
{
cd rhapsody-0.28b
./configure
make
./configure -i $binDir -d $docDir
make clean
make $jobArgs
}
INSTALL()
{
cd rhapsody-0.28b
make install
}
COPYRIGHT="2006 Adrian Gonera"
LICENSE="GNU GPL v2"