mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Add port of most-pre5.1_15
This commit is contained in:
57
sys-apps/most/most-pre5.1_15.recipe
Normal file
57
sys-apps/most/most-pre5.1_15.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
SUMMARY="MOST is a paging program similar to more and less"
|
||||
DESCRIPTION="MOST is a powerful paging program for Unix, VMS, MSDOS, and win32 systems. Unlike other well-known paging programs most supports multiple windows and can scroll left and right. Why settle for less?"
|
||||
HOMEPAGE="http://www.jedsoft.org/most/"
|
||||
SRC_URI="http://www.jedsoft.org/snapshots/most-pre5.1-15.tar.gz"
|
||||
CHECKSUM_MD5="5894e7acde3ff14e16595b147ca4d2fb"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2004-2013 John E. Davis"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
PATCHES="most-pre5.1_15.patchset"
|
||||
|
||||
PROVIDES="
|
||||
most = $portVersion compat >= 5
|
||||
cmd:most = $portVersion compat >= 5
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libncurses
|
||||
lib:libslang
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libncurses
|
||||
devel:libslang
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:autoconf
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:ncurses5_config
|
||||
"
|
||||
|
||||
SOURCE_DIR="most-pre5.1-15"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i "s,-lm,," src/Makefile.in
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure \
|
||||
--with-slanglib=$libDir \
|
||||
--with-slanginc=$includeDir
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
66
sys-apps/most/patches/most-pre5.1_15.patchset
Normal file
66
sys-apps/most/patches/most-pre5.1_15.patchset
Normal file
@@ -0,0 +1,66 @@
|
||||
From a72b46c3b38827e00e91d288c527b19a2839cd40 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Wed, 9 Oct 2013 22:00:55 -0600
|
||||
Subject: Find the appropriate location for jedrc on Haiku.
|
||||
|
||||
|
||||
diff --git a/src/keyparse.c b/src/keyparse.c
|
||||
index 7c46911..c49a200 100644
|
||||
--- a/src/keyparse.c
|
||||
+++ b/src/keyparse.c
|
||||
@@ -31,7 +31,12 @@
|
||||
# define MOST_SYSTEM_INITFILE "/etc/most.conf"
|
||||
# endif
|
||||
#endif
|
||||
-
|
||||
+
|
||||
+#ifdef __HAIKU__
|
||||
+#include <FindDirectory.h>
|
||||
+#include <fs_info.h>
|
||||
+#endif
|
||||
+
|
||||
/* parses user key definition file */
|
||||
|
||||
/* The file is assumed to have a simple format:
|
||||
@@ -155,6 +160,13 @@ int most_load_user_keymaps (void)
|
||||
{
|
||||
#ifdef VMS
|
||||
file = "SYS$LOGIN:MOST.RC";
|
||||
+#elif defined(__HAIKU__)
|
||||
+ char buffer[B_PATH_NAME_LENGTH+B_FILE_NAME_LENGTH];
|
||||
+ if (find_directory(B_USER_SETTINGS_DIRECTORY, -1, false, buffer, sizeof(buffer)) != B_OK)
|
||||
+ return -1;
|
||||
+
|
||||
+ strcat(buffer, "/mostrc");
|
||||
+ file = strdup(buffer);
|
||||
#else
|
||||
*filebuf = 0;
|
||||
file = getenv ("HOME");
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
|
||||
From e39e512ff58d26d0108d91b743c7d690203180ff Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Fri, 11 Oct 2013 00:42:38 -0600
|
||||
Subject: Change install location for docs and man pages
|
||||
|
||||
|
||||
diff --git a/src/Makefile.in b/src/Makefile.in
|
||||
index 968105c..b9481dd 100644
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -22,8 +22,8 @@ prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datarootdir = @datarootdir@
|
||||
BIN_DIR = $(prefix)/bin
|
||||
-MAN_DIR = $(datarootdir)/man
|
||||
-DOC_DIR = $(datarootdir)/doc/most
|
||||
+MAN_DIR = @mandir@
|
||||
+DOC_DIR = @docdir@
|
||||
SYS_INITFILE = @sysconfdir@/most.conf
|
||||
MKINSDIR = ../autoconf/mkinsdir.sh
|
||||
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user