Import WCMCommander-0.20.0 as sysutils/WCMCommander.

Two-panel file manager similar to Far Manager, based on the
code of Wal Commander.
This commit is contained in:
wiz 2015-09-08 13:13:19 +00:00
parent d047710b53
commit 72e26cc3d3
7 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Two-panel file manager similar to Far Manager, based on the
code of Wal Commander.

View file

@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.1 2015/09/08 13:13:19 wiz Exp $
DISTNAME= WCMCommander-0.20.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=corporateshark/}
GITHUB_PROJECT= WCMCommander
GITHUB_TAG= release-${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://wcm.linderdaum.com/
COMMENT= Two-panel file manager
#LICENSE= mit # includes fonts with perhaps other licenses
WRKSRC= ${WRKDIR}/${DISTNAME:S/-/-release-/}
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
CMAKE_ARGS+= -DWITH_SMBCLIENT:BOOL=OFF
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../security/libssh2/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,45 @@
@comment $NetBSD: PLIST,v 1.1 2015/09/08 13:13:19 wiz Exp $
bin/wcm
share/applications/wcm.desktop
share/pixmaps/wcm.png
share/wcm/config.default
share/wcm/fonts/DejaVuSans-Bold.ttf
share/wcm/fonts/DejaVuSans.ttf
share/wcm/fonts/DejaVuSansMono-Bold.ttf
share/wcm/fonts/DejaVuSansMono.ttf
share/wcm/fonts/DejaVuSerif-Bold.ttf
share/wcm/fonts/DejaVuSerif.ttf
share/wcm/fonts/DejaVuSerifCondensed-Bold.ttf
share/wcm/fonts/DejaVuSerifCondensed.ttf
share/wcm/fonts/LiberationMono-Regular.ttf
share/wcm/lang/help.ru
share/wcm/lang/list
share/wcm/lang/ltext.ru
share/wcm/shl/c.shl
share/wcm/shl/config.cfg
share/wcm/shl/config.shl
share/wcm/shl/cpp.shl
share/wcm/shl/glsl.shl
share/wcm/shl/java.shl
share/wcm/shl/latex.shl
share/wcm/shl/pas.shl
share/wcm/shl/perl.shl
share/wcm/shl/php.shl
share/wcm/shl/python.shl
share/wcm/shl/sh.shl
share/wcm/shl/shl.shl
share/wcm/shl/shlconfig.shl
share/wcm/shl/shlconfig_v2.shl
share/wcm/shl/sql.shl
share/wcm/shl/undef.shl
share/wcm/shl/xml.shl
share/wcm/styles/Black.style
share/wcm/styles/Default.style
share/wcm/styles/README
share/wcm/styles/README.solarized
share/wcm/styles/Solarized-light.style
share/wcm/styles/Solarized.style
share/wcm/styles/Solarized.style.src
share/wcm/styles/White.style
share/wcm/styles/solarize.sh
share/wcm/styles/solarized-gen.py

View file

@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.1 2015/09/08 13:13:19 wiz Exp $
SHA1 (WCMCommander-0.20.0.tar.gz) = 77f034f0da7f13b362b742b965ad9fb444892802
RMD160 (WCMCommander-0.20.0.tar.gz) = 3f1f93d484846404542f3d4955abdb01f9d5417b
Size (WCMCommander-0.20.0.tar.gz) = 5005688 bytes
SHA1 (patch-src_tcp__sock.cpp) = 05a3fc2105eec5e102e2dd7430272f9551552083
SHA1 (patch-src_vfs_vfs.cpp) = f5c60b2926972bff1b41c31c1bce8dc905cd0ab7
SHA1 (patch-src_wal_wal__sys__api.cpp) = a3a4bdf4896a0bc1eefc79666a8e32c75a27a885

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_tcp__sock.cpp,v 1.1 2015/09/08 13:13:20 wiz Exp $
NetBSD does not have gethostbyname_r() either.
--- src/tcp_sock.cpp.orig 2015-04-24 21:50:22.000000000 +0000
+++ src/tcp_sock.cpp
@@ -64,7 +64,7 @@ bool GetHostIp( const char* utf8, unsign
struct hostent* ret;
-#if defined( __APPLE__ ) || defined(__OpenBSD__)
+#if defined( __APPLE__ ) || defined(__OpenBSD__) || defined(__NetBSD__)
ret = gethostbyname( utf8 );
if ( !ret )

View file

@ -0,0 +1,20 @@
$NetBSD: patch-src_vfs_vfs.cpp,v 1.1 2015/09/08 13:13:20 wiz Exp $
Use BSD headers on NetBSD, and use statvfs (statfs was removed).
--- src/vfs/vfs.cpp.orig 2015-04-24 21:50:22.000000000 +0000
+++ src/vfs/vfs.cpp
@@ -1113,9 +1113,12 @@ FSWin32Net::~FSWin32Net()
// for statfs()
#ifdef __linux__
# include <sys/statfs.h>
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
# include <sys/param.h>
# include <sys/mount.h>
+# if defined(__NetBSD__)
+# define statfs statvfs
+# endif
#endif
#ifdef __linux__

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_wal_wal__sys__api.cpp,v 1.1 2015/09/08 13:13:20 wiz Exp $
Handle NetBSD like the other BSDs.
--- src/wal/wal_sys_api.cpp.orig 2015-04-24 21:50:22.000000000 +0000
+++ src/wal/wal_sys_api.cpp
@@ -394,6 +394,7 @@ namespace wal
#if defined(__APPLE__) || \
defined(__FreeBSD__) || \
+ defined(__NetBSD__) || \
defined(__OpenBSD__) || \
defined(_POSIX_C_SOURCE) && defined(_XOPEN_SOURCE) && defined(_GNU_SOURCE) && (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
strerror_r( err, buf, size );