Index: head/biology/diamond/files/patch-src_util_system_system.cpp =================================================================== --- head/biology/diamond/files/patch-src_util_system_system.cpp (revision 547065) +++ head/biology/diamond/files/patch-src_util_system_system.cpp (nonexistent) @@ -1,45 +0,0 @@ ---- src/util/system/system.cpp.orig 2020-08-05 17:04:09 UTC -+++ src/util/system/system.cpp -@@ -6,14 +6,19 @@ - #include "../log_stream.h" - - #ifdef _MSC_VER --#include -+ #include - #else --#include --#include --#ifndef __APPLE__ --#include -+ #include -+ #include -+ #ifndef __APPLE__ -+ #ifdef __FreeBSD__ -+ #include -+ #include -+ #else -+ #include -+ #endif -+ #endif - #endif --#endif - - using std::string; - using std::cout; -@@ -129,6 +134,16 @@ void reset_color(bool err) { - double total_ram() { - #if defined(WIN32) || defined(__APPLE__) - return 0.0; -+#elif defined(__FreeBSD__) -+ int mib[2] = { CTL_HW, HW_REALMEM }; -+ u_int namelen = sizeof(mib) / sizeof(mib[0]); -+ uint64_t oldp; -+ size_t oldlenp = sizeof(oldp); -+ -+ if (sysctl(mib, namelen, &oldp, &oldlenp, NULL, 0) < 0) -+ return 0.0; -+ else -+ return oldp / 1e9; - #else - struct sysinfo info; - if (sysinfo(&info) != 0) Property changes on: head/biology/diamond/files/patch-src_util_system_system.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/biology/diamond/Makefile =================================================================== --- head/biology/diamond/Makefile (revision 547065) +++ head/biology/diamond/Makefile (revision 547066) @@ -1,22 +1,22 @@ # $FreeBSD$ PORTNAME= diamond DISTVERSIONPREFIX= v -DISTVERSION= 2.0.2 +DISTVERSION= 2.0.4 CATEGORIES= biology MAINTAINER= jrm@FreeBSD.org COMMENT= BLAST-compatible local sequence aligner LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= amd64 USES= cmake USE_GITHUB= yes GH_ACCOUNT= bbuchfink PLIST_FILES= bin/diamond .include Index: head/biology/diamond/distinfo =================================================================== --- head/biology/diamond/distinfo (revision 547065) +++ head/biology/diamond/distinfo (revision 547066) @@ -1,3 +1,3 @@ -TIMESTAMP = 1596712682 -SHA256 (bbuchfink-diamond-v2.0.2_GH0.tar.gz) = fd22c2a1960cc1b4d02b66f87c66624c6e495de3128b73da70171fc134a508b5 -SIZE (bbuchfink-diamond-v2.0.2_GH0.tar.gz) = 1117286 +TIMESTAMP = 1598800137 +SHA256 (bbuchfink-diamond-v2.0.4_GH0.tar.gz) = 94e8fe72bdc28b83fd0f2d90c439b58b63b38263aa1a3905582ef68f614ae95d +SIZE (bbuchfink-diamond-v2.0.4_GH0.tar.gz) = 1120470