From nobody Sat Oct 16 21:24:29 2021 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 038921800776; Sat, 16 Oct 2021 21:24:30 +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 4HWx3d5hb8z3F2G; Sat, 16 Oct 2021 21:24:29 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 8307320F3A; Sat, 16 Oct 2021 21:24:29 +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 19GLOT82002055; Sat, 16 Oct 2021 21:24:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19GLOT0H002054; Sat, 16 Oct 2021 21:24:29 GMT (envelope-from git) Date: Sat, 16 Oct 2021 21:24:29 GMT Message-Id: <202110162124.19GLOT0H002054@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 11cdde192268 - main - deskutils/remind: update to 03.03.09 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: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 11cdde1922681c7601772c953b930b2d6d7a76a4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=11cdde1922681c7601772c953b930b2d6d7a76a4 commit 11cdde1922681c7601772c953b930b2d6d7a76a4 Author: Robert Clausecker AuthorDate: 2021-10-16 12:43:02 +0000 Commit: Neel Chauhan CommitDate: 2021-10-16 21:24:16 +0000 deskutils/remind: update to 03.03.09 PR: 259212 --- deskutils/remind/Makefile | 98 +++++++++++------------ deskutils/remind/distinfo | 6 +- deskutils/remind/files/patch-rem2html_Makefile.in | 27 +++++++ 3 files changed, 77 insertions(+), 54 deletions(-) diff --git a/deskutils/remind/Makefile b/deskutils/remind/Makefile index 8e5e0c855a32..fd98ffcc2ec4 100644 --- a/deskutils/remind/Makefile +++ b/deskutils/remind/Makefile @@ -1,7 +1,7 @@ # Created by: Lewis Thompson PORTNAME= remind -DISTVERSION= 03.03.08 +DISTVERSION= 03.03.09 CATEGORIES= deskutils MASTER_SITES= https://dianne.skoll.ca/projects/remind/download/ @@ -12,6 +12,7 @@ LICENSE= GPLv2 GNU_CONFIGURE= yes MAKE_ARGS= INSTALL_SCRIPT="${INSTALL_SCRIPT}" +INSTALL_TARGET= ${WITH_DEBUG:Dinstall-nostripped:Uinstall} PLIST_FILES= bin/rem \ bin/rem2ps \ @@ -20,16 +21,17 @@ PLIST_FILES= bin/rem \ man/man1/rem2ps.1.gz \ man/man1/remind.1.gz -OPTIONS_DEFINE= A4 TCLTK -OPTIONS_DEFAULT= LANG_US -OPTIONS_SINGLE= LANGUAGE -OPTIONS_SINGLE_LANGUAGE= LANG_DA LANG_DE LANG_ES LANG_FI LANG_FR LANG_IS \ - LANG_IT LANG_NL LANG_NN LANG_PBR LANG_PL \ - LANG_RO LANG_US - +OPTIONS_DEFINE= A4 TCLTK REM2HTML +OPTIONS_DEFAULT= LANG_US REM2HTML +OPTIONS_SINGLE= LANGUAGE +OPTIONS_SINGLE_LANGUAGE= \ + LANG_US LANG_DE LANG_NL LANG_FI LANG_FR LANG_NN LANG_DA \ + LANG_PL LANG_PBR LANG_IT LANG_RO LANG_ES LANG_IS A4_DESC= Use A4 instead of Letter paper LANGUAGE_DESC= User interface language +REM2HTML_DESC= Build and install rem2html (requires Perl) +# do not sort these -- correspond to enumeration in source code LANG.DE= GERMAN LANG.NL= DUTCH LANG.FI= FINNISH @@ -45,11 +47,25 @@ LANG.IS= ICELANDIC TCLTK_USES= tk TCLTK_RUN_DEPENDS= dtplite:devel/tcllib -TCLTK_PLIST_FILES= bin/cm2rem.tcl \ - bin/tkremind \ - man/man1/cm2rem.1.gz \ +TCLTK_PLIST_FILES= bin/tkremind \ man/man1/tkremind.1.gz +REM2HTML_USES= perl5 +REM2HTML_BUILD_DEPENDS= p5-JSON-Any>0:converters/p5-JSON-Any \ + p5-Getopt-Long>0:devel/p5-Getopt-Long +REM2HTML_RUN_DEPENDS= p5-JSON-Any>0:converters/p5-JSON-Any \ + p5-Getopt-Long>0:devel/p5-Getopt-Long +REM2HTML_PLIST_FILES= bin/rem2html + +# hard wired customisation variables +LAT_DEG?= 45 +LAT_MIN?= 24 +LAT_SEC?= 0 +LON_DEG?= 75 +LON_MIN?= 39 +LON_SEC?= 0 +LOCATION?= Ottawa + .include .if "${PORT_OPTIONS:MLANG_*}" != "" && "${PORT_OPTIONS:MLANG_*}" != LANG_US @@ -57,49 +73,29 @@ CFLAGS+= -DLANG=${${PORT_OPTIONS:MLANG_*:S/_/./}} .endif post-patch: -# This seems more than a little ugly. -.if defined(LAT_DEG) - @${REINPLACE_CMD} -e 's#LAT_DEG 45#LAT_DEG ${LAT_DEG}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LAT_MIN) - @${REINPLACE_CMD} -e 's#LAT_MIN 24#LAT_MIN ${LAT_MIN}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LAT_SEC) - @${REINPLACE_CMD} -e 's#LAT_SEC 0#LAT_SEC ${LAT_SEC}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LON_DEG) - @${REINPLACE_CMD} -e 's#LON_DEG 75#LON_DEG ${LON_DEG}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LON_MIN) - @${REINPLACE_CMD} -e 's#LON_MIN 39#LON_MIN ${LON_MIN}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LON_SEC) - @${REINPLACE_CMD} -e 's#LON_SEC 0#LON_SEC ${LON_SEC}#' ${WRKSRC}/src/custom.h -.endif -.if defined(LOCATION) - @${REINPLACE_CMD} -e 's#Ottawa#${LOCATION}#' ${WRKSRC}/src/custom.h -.endif -.if defined(A4) || ${PORT_OPTIONS:MA4} + @${REINPLACE_CMD} \ + -e 's#LAT_DEG 45#LAT_DEG ${LAT_DEG}#' \ + -e 's#LAT_MIN 24#LAT_MIN ${LAT_MIN}#' \ + -e 's#LAT_SEC 0#LAT_SEC ${LAT_SEC}#' \ + -e 's#LON_DEG 75#LON_DEG ${LON_DEG}#' \ + -e 's#LON_MIN 39#LON_MIN ${LON_MIN}#' \ + -e 's#LON_SEC 0#LON_SEC ${LON_SEC}#' \ + -e 's#Ottawa#${LOCATION}#' ${WRKSRC}/src/custom.h + +post-patch-A4-on: @${REINPLACE_CMD} -e 's#"Letter", 612, 792#"A4", 595, 842#' ${WRKSRC}/src/custom.h -.endif -.if ${PORT_OPTIONS:MTCLTK} + +post-patch-TCLTK-on: @${REINPLACE_CMD} -e 's,wish,${WISH},' ${WRKSRC}/scripts/tkremind - @${REINPLACE_CMD} -e 's,tclsh,${TCLSH},' ${WRKSRC}/scripts/cm2rem.tcl -.endif do-install: -.for i in rem2ps remind - ${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/man/${i}.1 ${STAGEDIR}${PREFIX}/man/man1 -.endfor - ${INSTALL_MAN} ${WRKSRC}/man/rem.1 ${STAGEDIR}${PREFIX}/man/man1 - ${LN} -sf ../bin/remind ${STAGEDIR}${PREFIX}/bin/rem -.if ${PORT_OPTIONS:MTCLTK} - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/cm2rem.tcl ${STAGEDIR}${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/tkremind ${STAGEDIR}${PREFIX}/bin -.for i in cm2rem tkremind - ${INSTALL_MAN} ${WRKSRC}/man/${i}.1 ${STAGEDIR}${PREFIX}/man/man1 -.endfor -.endif + cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} + +do-install-REM2HTML-on: + cd ${WRKSRC}/rem2html && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install + +post-install-TCLTK-off: + ${RM} ${STAGEDIR}${PREFIX}/bin/tkremind + ${RM} ${STAGEDIR}${PREFIX}/man/man1/tkremind.1 .include diff --git a/deskutils/remind/distinfo b/deskutils/remind/distinfo index 876c238db2ee..6b43ae9c75a2 100644 --- a/deskutils/remind/distinfo +++ b/deskutils/remind/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1631630542 -SHA256 (remind-03.03.08.tar.gz) = 25ea12cd914b7d4aecc5731b5bcb81295c0e3df963d86b9171a4eca145b7b788 -SIZE (remind-03.03.08.tar.gz) = 407339 +TIMESTAMP = 1634383830 +SHA256 (remind-03.03.09.tar.gz) = c9087a8c691136442f3e882e46677ad36e69084b2f3bbc3c5b760d3b6bf3b6f3 +SIZE (remind-03.03.09.tar.gz) = 408928 diff --git a/deskutils/remind/files/patch-rem2html_Makefile.in b/deskutils/remind/files/patch-rem2html_Makefile.in new file mode 100644 index 000000000000..5385f9413023 --- /dev/null +++ b/deskutils/remind/files/patch-rem2html_Makefile.in @@ -0,0 +1,27 @@ +--- rem2html/Makefile.in.orig 2021-10-16 12:02:17 UTC ++++ rem2html/Makefile.in +@@ -12,16 +12,14 @@ all: + true + + install: +- @if test "$(PERL)" = "" ; then \ +- echo "Not installing rem2html; Perl is required"; exit 0; fi; \ +- for m in $(PERLMODS_NEEDED) ; \ +- do \ +- perl -M$$m -e 1 > /dev/null 2>&1; \ +- if test $$? != 0 ; then echo "Not installing rem2html; missing $$m"; exit 0; fi; \ +- done; \ +- echo "Installing rem2html in $(DESTDIR)$(bindir)"; \ +- mkdir -p $(DESTDIR)$(bindir) && sed -e 's|^#!perl|#!$(PERL)|' < rem2html > $(DESTDIR)$(bindir)/rem2html && chmod 755 $(DESTDIR)$(bindir)/rem2html && exit 0; \ +- exit 1; ++ @for m in $(PERLMODS_NEEDED) ; \ ++ do \ ++ perl -M$$m -e 1 ; \ ++ done ++ @echo "Installing rem2html in $(DESTDIR)$(bindir)" ++ mkdir -p $(DESTDIR)$(bindir) ++ sed -e 's|^#!perl|#!$(PERL)|' < rem2html > rem2html.out ++ $(INSTALL_SCRIPT) rem2html.out $(DESTDIR)$(bindir)/rem2html + + +