From nobody Mon Jun 20 07:20:09 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8CA6C869A08; Mon, 20 Jun 2022 07:20:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LRLdP2TxHz4l2R; Mon, 20 Jun 2022 07:20:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655709609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bONwR1tzmOjUmvNsIoI1gPMLURlIYETUvmxEx75sA2w=; b=PFpGEMF39u9i9+n/7cyOqpdEKFz7yNqh2mY6SkXqO8HV3nZEgs9OJYjs0djNdMcxxwTD9i qTTQzs+ahwhMGJ4JdeX40rn2u2iMjD02YCAKV3Ume/LW01grJztf9YLaeLiXo9SJBOr5Hl +e6aL+CS9h27MHjwHnSCsbLDGCPc2WcMyObAtKjT4uRhUl5qyzmafKYgUQOHJxAMfRuAyW ziYROWFlnRZwOVCw6Np+2cH6W7n2JC1tQEur6aqUCY4A+Dbr+EuzYGv5VSnFPqNBAl9wKr 1u780n+7L2+VhAyyJI94mii77xUh+SGt+dyxYqvdd2xGibdlAgSufut0EyJi7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 34CF918F28; Mon, 20 Jun 2022 07:20:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25K7K984057378; Mon, 20 Jun 2022 07:20:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25K7K9N0057376; Mon, 20 Jun 2022 07:20:09 GMT (envelope-from git) Date: Mon, 20 Jun 2022 07:20:09 GMT Message-Id: <202206200720.25K7K9N0057376@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: bc2e7b096225 - main - misc/edfbrowser: New port: Viewer, annotator, toolbox for timeseries files EEG, EMG, ECG, etc List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc2e7b096225f8c3834f3ee6afe1a263048b6798 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655709609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bONwR1tzmOjUmvNsIoI1gPMLURlIYETUvmxEx75sA2w=; b=xW2xu3VeV+nJfGtnMbFYjjVxcoKiMibacZNsYwNiCfon8KfCfkVbcZWiQM7Um5avrM79gt pDFE1YxILbw6nFV2BkHxIeemYYMXCHAjWWZjkXXSJlNeYgU/VUi9Lsb9QzyJq0McSB+p2T udln/1wGMRlxIG9WobFEMCbf1rh7MLzZn8TfnA5QlnPPmO87HOYcEe0MS2FCYJsilCKdm6 bN9rNuE7h4u4O5D/yQ8nSDUXTZjzQw8jH6TjUIYl7S4tON5FqYqN8MDW4g5CUOSJ+S2Sy6 /GBokuE5T/CRVdEjYpj4y89p+e1rmLlZwOjF/Q7fuWl6JMMcbv+US0/IlTfU8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655709609; a=rsa-sha256; cv=none; b=Et6V7Eh8sP25CW4luyJ5lSmKmC8VgAVlAWFOiPxhu009a7+Qxc0FVrVRBbdtU/Wns+uQcd e0aHCaUjmuUdlYJCvxiZedraCBt/m0t25OHGWOVsrNN97jAFKkniABskA/syc0i85xShDm jO2CpxR9ajBfwdXAmcoQcFNHAbRR5olLmG5i1+kQtatnml2KSfnxK6E2VnZ6Cnjy8IG19C x04kVo3raPUWFymJgQlOcgRdGC3DsVhES7AJ2g5siOdCxtjLN8RAtQxngXXFEyi3idSR59 Fr+XzaXqqQyLR33IFM5l8lq2gqCEhA2juxsIMxb2uYFPmEnqwvhzNfXl/gKJ6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bc2e7b096225f8c3834f3ee6afe1a263048b6798 commit bc2e7b096225f8c3834f3ee6afe1a263048b6798 Author: Yuri Victorovich AuthorDate: 2022-06-20 07:17:51 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-20 07:20:06 +0000 misc/edfbrowser: New port: Viewer, annotator, toolbox for timeseries files EEG, EMG, ECG, etc --- misc/Makefile | 1 + misc/edfbrowser/Makefile | 22 +++++++++++ misc/edfbrowser/distinfo | 3 ++ misc/edfbrowser/files/patch-edfbrowser.pro | 59 ++++++++++++++++++++++++++++++ misc/edfbrowser/files/patch-edflib.c | 11 ++++++ misc/edfbrowser/files/patch-global.h | 11 ++++++ misc/edfbrowser/pkg-descr | 5 +++ misc/edfbrowser/pkg-plist | 9 +++++ 8 files changed, 121 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 91d6d72d2a04..a06dec444128 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -82,6 +82,7 @@ SUBDIR += dynomite SUBDIR += e2fsprogs-libblkid SUBDIR += e2fsprogs-libuuid + SUBDIR += edfbrowser SUBDIR += edflib SUBDIR += elixir-mime SUBDIR += elixir-uuid diff --git a/misc/edfbrowser/Makefile b/misc/edfbrowser/Makefile new file mode 100644 index 000000000000..0c9b3085b9d8 --- /dev/null +++ b/misc/edfbrowser/Makefile @@ -0,0 +1,22 @@ +PORTNAME= edfbrowser +DISTVERSION= 1.94 +CATEGORIES= misc +MASTER_SITES= https://www.teuniz.net/${PORTNAME}/ +DISTNAME= ${PORTNAME}_${DISTVERSION:S/.//}_source + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Viewer, annotator, toolbox for timeseries files EEG, EMG, ECG, etc + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= desktop-file-utils gl qmake qt:5 shared-mime-info +USE_QT= core gui network printsupport widgets buildtools_build +USE_GL= gl + +OPTIONS_DEFINE= DOCS + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/edfbrowser + +.include diff --git a/misc/edfbrowser/distinfo b/misc/edfbrowser/distinfo new file mode 100644 index 000000000000..5e1d2d2e797d --- /dev/null +++ b/misc/edfbrowser/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655707084 +SHA256 (edfbrowser_194_source.tar.gz) = f2aea90a761b73532ee96cd433a97d78d9080d44a9c0b25d3a81c4fe41f8fbe7 +SIZE (edfbrowser_194_source.tar.gz) = 677103 diff --git a/misc/edfbrowser/files/patch-edfbrowser.pro b/misc/edfbrowser/files/patch-edfbrowser.pro new file mode 100644 index 000000000000..1cc7925c64f1 --- /dev/null +++ b/misc/edfbrowser/files/patch-edfbrowser.pro @@ -0,0 +1,59 @@ +--- edfbrowser.pro.orig 2022-06-20 06:49:59 UTC ++++ edfbrowser.pro +@@ -284,35 +284,35 @@ win32 { + QMAKE_CXXFLAGS += -Wextra -Wshadow -Wformat -Wformat-nonliteral -Wformat-security -Wtype-limits -Wfatal-errors -Wdeprecated-declarations + + unix { +-target.path = /usr/bin ++target.path = $$PREFIX/bin/ + target.files = edfbrowser + INSTALLS += target + +-documentation.path = /usr/share/doc/edfbrowser ++documentation.path = $$PREFIX/share/doc/edfbrowser + documentation.files = doc/* + INSTALLS += documentation + +-icon_a.path = /usr/share/icons ++icon_a.path = $$PREFIX/share/icons + icon_a.files = images/edf.png + INSTALLS += icon_a + +-icon_b.path += /usr/share/pixmaps ++icon_b.path += $$PREFIX/share/pixmaps + icon_b.files = images/edf.png + INSTALLS += icon_b + +-icon_c.path += /usr/share/icons/hicolor/48x48/apps ++icon_c.path += $$PREFIX/share/icons/hicolor/48x48/apps + icon_c.files = images/edf.png + INSTALLS += icon_c + +-icon_d.path += /usr/share/icons/hicolor/48x48/mimetypes ++icon_d.path += $$PREFIX/share/icons/hicolor/48x48/mimetypes + icon_d.files = images/edf.png + INSTALLS += icon_d + +-desktop_link.path += /usr/share/applications ++desktop_link.path += $$PREFIX/share/applications + desktop_link.files += install/edfbrowser.desktop + INSTALLS += desktop_link + +-mime.path += /usr/share/mime/packages ++mime.path += $$PREFIX/share/mime/packages + mime.files += install/edfbrowser.xml + INSTALLS += mime + } +@@ -323,10 +323,10 @@ mac { + QMAKE_APPLICATION_BUNDLE_NAME = EDFbrowser + QMAKE_TARGET_BUNDLE_PREFIX = net.teuniz + icns.target = edf.icns +- icns.commands = /usr/bin/env bash $$_PRO_FILE_PWD_/images/macos-icns-create.command "$$(PWD)" ++ icns.commands = $$PREFIX/bin/env bash $$_PRO_FILE_PWD_/images/macos-icns-create.command "$$(PWD)" + QMAKE_EXTRA_TARGETS += icns + ICON = $$(PWD)/edf.icns +- QMAKE_POST_LINK = /usr/bin/env bash $$_PRO_FILE_PWD_/install/macos-dmg-create.command "$$(PWD)" ++ QMAKE_POST_LINK = $$PREFIX/bin/env bash $$_PRO_FILE_PWD_/install/macos-dmg-create.command "$$(PWD)" + QMAKE_CLEAN += edf.iconset EDFbrowser-*-temp.dmg + QMAKE_DISTCLEAN += edf.icns EDFbrowser-*.dmg + } diff --git a/misc/edfbrowser/files/patch-edflib.c b/misc/edfbrowser/files/patch-edflib.c new file mode 100644 index 000000000000..4412992a2639 --- /dev/null +++ b/misc/edfbrowser/files/patch-edflib.c @@ -0,0 +1,11 @@ +--- edflib.c.orig 2022-06-20 06:42:24 UTC ++++ edflib.c +@@ -38,7 +38,7 @@ + #define EDFLIB_VERSION (121) + #define EDFLIB_MAXFILES (64) + +-#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__) ++#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__) || defined(__FreeBSD__) + + #define fopeno fopen + diff --git a/misc/edfbrowser/files/patch-global.h b/misc/edfbrowser/files/patch-global.h new file mode 100644 index 000000000000..a6dd5007295f --- /dev/null +++ b/misc/edfbrowser/files/patch-global.h @@ -0,0 +1,11 @@ +--- global.h.orig 2022-06-20 06:40:34 UTC ++++ global.h +@@ -54,7 +54,7 @@ + + #include + +-#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__) ++#if defined(__APPLE__) || defined(__MACH__) || defined(__APPLE_CC__) || defined(__HAIKU__) || defined(__FreeBSD__) + + #define fopeno fopen + diff --git a/misc/edfbrowser/pkg-descr b/misc/edfbrowser/pkg-descr new file mode 100644 index 000000000000..90e177c63285 --- /dev/null +++ b/misc/edfbrowser/pkg-descr @@ -0,0 +1,5 @@ +EDFbrowser is a free, opensource, multiplatform, universal viewer, +annotator and toolbox intended for, but not limited to, timeseries +storage files like EEG, EMG, ECG, BioImpedance, etc. + +WWW: https://www.teuniz.net/edfbrowser/ diff --git a/misc/edfbrowser/pkg-plist b/misc/edfbrowser/pkg-plist new file mode 100644 index 000000000000..beefd650b80a --- /dev/null +++ b/misc/edfbrowser/pkg-plist @@ -0,0 +1,9 @@ +bin/edfbrowser +share/applications/edfbrowser.desktop +%%PORTDOCS%%%%DOCSDIR%%/manual.html +%%PORTDOCS%%%%DOCSDIR%%/montage_file_format.txt +share/icons/edf.png +share/icons/hicolor/48x48/apps/edf.png +share/icons/hicolor/48x48/mimetypes/edf.png +share/mime/packages/edfbrowser.xml +share/pixmaps/edf.png