Add a joe (editor) package (#622)
This commit is contained in:
parent
7acdc6acea
commit
2fb7766a79
12
packages/joe/build.sh
Normal file
12
packages/joe/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://www.sourceforge.net/projects/joe-editor
|
||||
TERMUX_PKG_DESCRIPTION="JOE is a full featured terminal-based screen editor"
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
TERMUX_PKG_VERSION=4.3
|
||||
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/joe-editor/files/JOE%20sources/joe-${TERMUX_PKG_VERSION}/joe-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_FOLDERNAME=joe-${TERMUX_PKG_VERSION}
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-termcap"
|
||||
|
||||
termux_step_post_extract_package () {
|
||||
# rm -r $TERMUX_PKG_SRCDIR/joe/util
|
||||
return
|
||||
}
|
11
packages/joe/do_not_build_utils.patch
Normal file
11
packages/joe/do_not_build_utils.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/joe/Makefile.in~ 2016-08-31 16:47:12.000000000 +0200
|
||||
+++ src/joe/Makefile.in 2016-12-26 18:03:33.523645366 +0100
|
||||
@@ -316,7 +316,7 @@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
-SUBDIRS = util
|
||||
+SUBDIR =
|
||||
EXTRA_DIST = TODO
|
||||
sysconf_joedir = $(sysconfdir)/joe
|
||||
data_joedir = $(datadir)/joe
|
20
packages/joe/fix_errno.patch
Normal file
20
packages/joe/fix_errno.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/joe/b.c~ 2016-08-22 15:52:28.000000000 +0200
|
||||
+++ src/joe/b.c 2016-12-26 18:17:44.449852459 +0100
|
||||
@@ -5,6 +5,8 @@
|
||||
*
|
||||
* This file is part of JOE (Joe's Own Editor)
|
||||
*/
|
||||
+
|
||||
+
|
||||
#include "types.h"
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
@@ -19,7 +21,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-extern int errno;
|
||||
+
|
||||
|
||||
#ifdef WITH_SELINUX
|
||||
#include <selinux/selinux.h>
|
19
packages/joe/no_getpwent.patch
Normal file
19
packages/joe/no_getpwent.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- src/joe/path.c~ 2016-07-18 17:11:09.000000000 +0200
|
||||
+++ src/joe/path.c 2016-12-26 18:48:04.010421451 +0100
|
||||
@@ -401,14 +401,14 @@
|
||||
{
|
||||
char **lst = NULL;
|
||||
struct passwd *pw;
|
||||
-
|
||||
+#ifndef __ANDROID__
|
||||
while((pw=getpwent()))
|
||||
if (rmatch(word+1, pw->pw_name)) {
|
||||
char *t = vsncpy(NULL,0,sc("~"));
|
||||
lst = vaadd(lst, vsncpy(sv(t),sz(pw->pw_name)));
|
||||
}
|
||||
endpwent();
|
||||
-
|
||||
+#endif
|
||||
return lst;
|
||||
}
|
||||
/********************************************************************/
|
Loading…
Reference in New Issue
Block a user