From nobody Thu Mar 16 04:08:23 2023 X-Original-To: dev-commits-ports-all@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 4PcYdz6Nykz3yGLL; Thu, 16 Mar 2023 04:08:23 +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 4PcYdz5jQCz3Lb1; Thu, 16 Mar 2023 04:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678939703; 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=74dTFNPsOyuFAOtjBvL2wbxH6j0hKo1nUJXVqMnyP2Y=; b=aYTWEEwvmW9BKEtljeYSAOw9B4dy7vZzikprmYoBy5gqfjFgLBDEnId2znP6geaqblMC8S ERBujoCDBdZg2cEkDcQfOcuFUb8FohKBT0xPRbugAY9QrzMG6mejc+ULrMGfglWS6l4iq/ hnzOwrRrXNi+c+6Z25k1arQMhH1OzRYh14+S8aLFC0wvwzZ4htV1qESIvvvJ2VFICwEaKD XCbfUeecYQVisVpQbIRMbNftr0VIvnd4jeN1glWWmVdZX3h0daGAD0fmCUEfOG/lSq6Zww AU6AZONQ4c11TDgW8saqFJav3vURqxMi4glKOKr0qVncVJf9p9ArVhRap7cu1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678939703; 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=74dTFNPsOyuFAOtjBvL2wbxH6j0hKo1nUJXVqMnyP2Y=; b=QDrhp4io+WDCUa+v4HWjhN64EDsM2Fz73uaY9u28DMUVyb+BPO6CBXe7Gw2KuLRQX8f464 iuE3QsoKfHEGb4EgTeq2/fxFuszYiYgIuTGg5NAs/nWdTzWglzSMQeTtsn5fj2ivdEdWAH 8eUFu6de6+IlfIGGjnQ2pZjF+GlDKwu/3KvbzdVqq7RjpHbED7m5cBdCczrVMjz5Gb+0or LFfMEX9sglrfyGToKh37Qy/zho+OL9D2pDo1Ra7kPxluLnTjjZaA3kdATD+8yMCQW30wwP tGqUh0CoJI6kejvoyQ2u8TtuLyIEV1FHXpAqplC0MHyWKLPfnY16wkDqtxEYlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678939703; a=rsa-sha256; cv=none; b=jBx7keLu+tagF1nZOdFcgxNGwYjrQVScocl2a/bzF5gfKxTJiqcJksTnSWIL63NjK+1WGo ZSEzwZudQdGXjO++ZuLXC+0VjlSKJ1FM/MXYw4VxSfB9e/1L+lJWxAVdgZ9Fc4ewvbeaoo Gt4dDixe3AW8TAObnztuvqGBQ+/sLaVFVlCDp8B9cetp3qGWdWbSyE+UuQQGC8vtV6jIwB o+H9KxmmTOy1V5oV9Ir5+i0GuUY6VM+FEdAGaZQ9Yc4geccKlG+LCGH6nTsJo/VCluVO4E EP8hZBCKkq8FBqtbqcSTlTh+xeudKDmebb9NDcE+TPyZrCNDfANTeLGygP3E/w== 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 4PcYdz4lL6zTQn; Thu, 16 Mar 2023 04:08:23 +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 32G48N7C075635; Thu, 16 Mar 2023 04:08:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32G48NHZ075634; Thu, 16 Mar 2023 04:08:23 GMT (envelope-from git) Date: Thu, 16 Mar 2023 04:08:23 GMT Message-Id: <202303160408.32G48NHZ075634@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: e937590c1b0a - main - editors/mickey: new port had been added (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e937590c1b0a1944f5d6901aa02b83602ad1e004 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=e937590c1b0a1944f5d6901aa02b83602ad1e004 commit e937590c1b0a1944f5d6901aa02b83602ad1e004 Author: Alexey Dokuchaev AuthorDate: 2023-03-16 04:07:34 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-03-16 04:07:34 +0000 editors/mickey: new port had been added (+) Mickey is a hexadecimal/ASCII file viewer and editor that runs on all major operating systems thanks to FLTK. It supports various integer and floating-point data types, and allows to work with multiple files simultaneously via well-known tabbed interface. WWW: https://mickey.sourceforge.net/ --- editors/Makefile | 1 + editors/mickey/Makefile | 27 +++++++++++++++ editors/mickey/distinfo | 3 ++ editors/mickey/files/patch-hexEdit.cxx | 60 ++++++++++++++++++++++++++++++++++ editors/mickey/pkg-descr | 5 +++ 5 files changed, 96 insertions(+) diff --git a/editors/Makefile b/editors/Makefile index 1564f461f655..621b355ef608 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -205,6 +205,7 @@ SUBDIR += lite-xl SUBDIR += marker SUBDIR += mg + SUBDIR += mickey SUBDIR += micro SUBDIR += mined SUBDIR += mle diff --git a/editors/mickey/Makefile b/editors/mickey/Makefile new file mode 100644 index 000000000000..a8b8250b38de --- /dev/null +++ b/editors/mickey/Makefile @@ -0,0 +1,27 @@ +PORTNAME= mickey +PORTVERSION= 0.1.13 +CATEGORIES= editors +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} +DISTNAME= ${PORTNAME}-${PORTVERSION}.src + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Simple hexadecimal editor written in FLTK +WWW= https://mickey.sourceforge.net/ + +LICENSE= GPLv2 + +LIB_DEPENDS= libfltk.so:x11-toolkits/fltk + +USES= zip +WRKSRC= ${WRKDIR}/hexedit + +PLIST_FILES= bin/${PORTNAME} + +do-build: + cd ${BUILD_WRKSRC} && ${CXX} ${CXXFLAGS} -I${LOCALBASE}/include \ + hexEdit.cxx -o ${PORTNAME} -lfltk -L${LOCALBASE}/lib + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/editors/mickey/distinfo b/editors/mickey/distinfo new file mode 100644 index 000000000000..73f80110f762 --- /dev/null +++ b/editors/mickey/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1084813428 +SHA256 (mickey-0.1.13.src.zip) = 9a5a53e21c03c4ccd572a52f332cf88328109758efe97f9e3016c7a11f06e5b7 +SIZE (mickey-0.1.13.src.zip) = 22332 diff --git a/editors/mickey/files/patch-hexEdit.cxx b/editors/mickey/files/patch-hexEdit.cxx new file mode 100644 index 000000000000..cfc9c78e6560 --- /dev/null +++ b/editors/mickey/files/patch-hexEdit.cxx @@ -0,0 +1,60 @@ +--- hexEdit.cxx.orig 2004-05-14 05:08:34 UTC ++++ hexEdit.cxx +@@ -250,27 +250,27 @@ Fl_Menu_Item HeMenubar::itemList[] = { + { UL"New", MM_CMD+'n', newCB, 0, 0, MM_MENUSTYLE }, + { UL"Open...", MM_CMD+'o', openCB, 0, FL_MENU_DIVIDER, MM_MENUSTYLE }, + { UL"Save", MM_CMD+'s', saveCB, 0, 0, MM_MENUSTYLE }, +- { "Save "UL"As...", FL_SHIFT+MM_CMD+'s', saveAsCB, 0, 0, MM_MENUSTYLE }, ++ { "Save " UL"As...", FL_SHIFT+MM_CMD+'s', saveAsCB, 0, 0, MM_MENUSTYLE }, + { UL"Close", MM_CMD+'w', closeCB, 0, FL_MENU_DIVIDER, MM_MENUSTYLE }, +- { "E"UL"xit mickey", MM_CMD+'q', quitCB, 0, 0, MM_MENUSTYLE }, ++ { "E" UL"xit mickey", MM_CMD+'q', quitCB, 0, 0, MM_MENUSTYLE }, + { 0 }, + { UL"Edit", 0, 0, 0, FL_SUBMENU, MM_MENUSTYLE }, + { UL"Undo", MM_CMD+'z', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, + { UL"Redo", FL_SHIFT+MM_CMD+'z', 0, 0, FL_MENU_INACTIVE|FL_MENU_DIVIDER, + MM_MENUSTYLE }, +- { "C"UL"ut", MM_CMD+'x', cutCB, 0, 0, MM_MENUSTYLE }, ++ { "C" UL"ut", MM_CMD+'x', cutCB, 0, 0, MM_MENUSTYLE }, + { UL"Copy", MM_CMD+'c', copyCB, 0, 0, MM_MENUSTYLE }, + { UL"Paste", MM_CMD+'v', pasteCB, 0, 0, MM_MENUSTYLE }, + { UL"Delete", 0, 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, +- { "Select "UL"All", MM_CMD+'a', 0, 0, FL_MENU_INACTIVE|FL_MENU_DIVIDER, ++ { "Select " UL"All", MM_CMD+'a', 0, 0, FL_MENU_INACTIVE|FL_MENU_DIVIDER, + MM_MENUSTYLE }, + { UL"Insert", MM_CMD+'i', insertModeCB, (void*)1, 0, MM_MENUSTYLE }, + { UL"Overwrite", FL_SHIFT+MM_CMD+'i', insertModeCB, 0, 0, MM_MENUSTYLE }, + { 0 }, + { UL"Find", 0, 0, 0, FL_SUBMENU, MM_MENUSTYLE }, + { UL"Find", MM_CMD+'f', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, +- { "Find && "UL"Replace", MM_CMD+'h', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, +- { "Find "UL"Next", MM_CMD+'g', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, ++ { "Find && " UL"Replace", MM_CMD+'h', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, ++ { "Find " UL"Next", MM_CMD+'g', 0, 0, FL_MENU_INACTIVE, MM_MENUSTYLE }, + { 0 }, + { UL"Help", 0, 0, 0, FL_SUBMENU, MM_MENUSTYLE }, + { UL"About mickey...", 0, aboutCB, 0, 0, MM_MENUSTYLE }, +@@ -342,12 +342,12 @@ void HeMenubar::pasteCB(Fl_Widget*, void*) { + void HeMenubar::insertModeCB(Fl_Widget*, void *userdata) { + //++ should the insert mode by per application or per document? + if (!app->document()) return; +- int i = (int)userdata; ++ int i = reinterpret_cast(userdata); + app->document()->manager()->insertMode(i); + } + + void HeMenubar::aboutCB(Fl_Widget*, void*) { +- fl_message("mickey "MM_VERSION"\n"MM_COPYRIGHT"\n\n" ++ fl_message("mickey " MM_VERSION"\n" MM_COPYRIGHT"\n\n" + "a free cross platform hex editor\n\n" + MM_WEB); + } +@@ -1683,7 +1683,7 @@ HeCycleButton::HeCycleButton(int x, int y, int w, int + box(FL_PLASTIC_UP_BOX); + choice = 0; nChoice = n; + warn = 0; +- labels = new (char*)[n]; ++ labels = new char*[n]; + labels[0] = t; + va_list va; + va_start(va, t); diff --git a/editors/mickey/pkg-descr b/editors/mickey/pkg-descr new file mode 100644 index 000000000000..e7ea9e87ca8b --- /dev/null +++ b/editors/mickey/pkg-descr @@ -0,0 +1,5 @@ +Mickey is a hexadecimal/ASCII file viewer and editor that runs on all +major operating systems thanks to FLTK. It supports various integer +and floating-point data types, and allows to work with multiple files +simultaneously via well-known tabbed interface. Unfortunately, there +is no support for editing of very large files yet.