git: 133c39b3bb5d - main - net/megatools: update port to 1.11.1.20230212

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 30 Nov 2023 11:52:33 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=133c39b3bb5dff64bd390439b6f64168eb6b1a22

commit 133c39b3bb5dff64bd390439b6f64168eb6b1a22
Author:     Ale <discipline@tiscali.it>
AuthorDate: 2023-11-28 16:34:42 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-11-30 11:49:23 +0000

    net/megatools: update port to 1.11.1.20230212
    
    Current port does not work:
    
    ERROR: Can't login to mega.nz: API call 'us' failed: Server returned error
    EEXPIRED
    
    PR:             275281
    Reported by:    discipline@tiscali.it
    Approved by:    max@kostikov.co (maintainer)
---
 net/megatools/Makefile  | 22 +++++++++++-----------
 net/megatools/distinfo  |  6 +++---
 net/megatools/pkg-plist | 47 +++++++++++++++++++++++++----------------------
 3 files changed, 39 insertions(+), 36 deletions(-)

diff --git a/net/megatools/Makefile b/net/megatools/Makefile
index 3c57e07a3381..3fed6a4e7789 100644
--- a/net/megatools/Makefile
+++ b/net/megatools/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	megatools
-PORTVERSION=	1.10.3
+PORTVERSION=	1.11.1.20230212
 CATEGORIES=	net
 MASTER_SITES=	https://megatools.megous.com/builds/
 
@@ -10,23 +10,23 @@ WWW=		https://megatools.megous.com/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	asciidoc:textproc/asciidoc
 LIB_DEPENDS=	libcurl.so:ftp/curl
 
 USES=		compiler:c11 gettext-runtime gmake gnome libtool pathfix \
-		pkgconfig ssl
+		pkgconfig ssl meson
 USE_GNOME=	glib20
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
-		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
-
 INSTALL_TARGET=	install-strip
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=		DOCS MANPAGES SYMLINKS
+OPTIONS_DEFAULT=	MANPAGES
+OPTIONS_SUB=		yes
+
+MANPAGES_BUILD_DEPENDS=	asciidoc:textproc/asciidoc \
+			db2x_manxml:textproc/docbook2X
+MANPAGES_MESON_TRUE=	man
 
-post-patch:
-# Unsilence build
-	${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in
+SYMLINKS_DESC=		Create symlinks for old commands
+SYMLINKS_MESON_TRUE=	symlinks
 
 .include <bsd.port.mk>
diff --git a/net/megatools/distinfo b/net/megatools/distinfo
index d5271b542785..e242091a39df 100644
--- a/net/megatools/distinfo
+++ b/net/megatools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1587022137
-SHA256 (megatools-1.10.3.tar.gz) = 8dc1ca348633fd49de7eb832b323e8dc295f1c55aefb484d30e6475218558bdb
-SIZE (megatools-1.10.3.tar.gz) = 196361
+TIMESTAMP = 1700745558
+SHA256 (megatools-1.11.1.20230212.tar.gz) = ecfa2ee4b277c601ebae648287311030aa4ca73ea61ee730bc66bef24ef19a34
+SIZE (megatools-1.11.1.20230212.tar.gz) = 105339
diff --git a/net/megatools/pkg-plist b/net/megatools/pkg-plist
index 19186d799eb9..d2c79715f06d 100644
--- a/net/megatools/pkg-plist
+++ b/net/megatools/pkg-plist
@@ -1,25 +1,28 @@
-bin/megacopy
-bin/megadf
-bin/megadl
-bin/megaget
-bin/megals
-bin/megamkdir
-bin/megaput
-bin/megareg
-bin/megarm
-man/man1/megacopy.1.gz
-man/man1/megadf.1.gz
-man/man1/megadl.1.gz
-man/man1/megaget.1.gz
-man/man1/megals.1.gz
-man/man1/megamkdir.1.gz
-man/man1/megaput.1.gz
-man/man1/megareg.1.gz
-man/man1/megarm.1.gz
-man/man5/megarc.5.gz
-man/man7/megatools.7.gz
-%%PORTDOCS%%%%DOCSDIR%%/HACKING
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%SYMLINKS%%bin/megacopy
+%%SYMLINKS%%bin/megadf
+%%SYMLINKS%%bin/megadl
+%%SYMLINKS%%bin/megaexport
+%%SYMLINKS%%bin/megaget
+%%SYMLINKS%%bin/megals
+%%SYMLINKS%%bin/megamkdir
+%%SYMLINKS%%bin/megaput
+%%SYMLINKS%%bin/megareg
+%%SYMLINKS%%bin/megarm
+%%SYMLINKS%%bin/megatest
+bin/megatools
+%%MANPAGES%%man/man1/megatools-copy.1.gz
+%%MANPAGES%%man/man1/megatools-df.1.gz
+%%MANPAGES%%man/man1/megatools-dl.1.gz
+%%MANPAGES%%man/man1/megatools-export.1.gz
+%%MANPAGES%%man/man1/megatools-get.1.gz
+%%MANPAGES%%man/man1/megatools-ls.1.gz
+%%MANPAGES%%man/man1/megatools-mkdir.1.gz
+%%MANPAGES%%man/man1/megatools-put.1.gz
+%%MANPAGES%%man/man1/megatools-reg.1.gz
+%%MANPAGES%%man/man1/megatools-rm.1.gz
+%%MANPAGES%%man/man1/megatools-test.1.gz
+%%MANPAGES%%man/man1/megatools.1.gz
+%%MANPAGES%%man/man5/megarc.5.gz
 %%PORTDOCS%%%%DOCSDIR%%/LICENSE
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
 %%PORTDOCS%%%%DOCSDIR%%/README