git: 05056ba2d46a - main - print/latex2rtf: Update version 2.3.17=>2.3.18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Oct 2023 13:08:43 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=05056ba2d46a5be1386735c5c589f2950f82b6fd
commit 05056ba2d46a5be1386735c5c589f2950f82b6fd
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-23 15:34:29 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-24 13:08:27 +0000
print/latex2rtf: Update version 2.3.17=>2.3.18
- Remove USES=makeinfo
- Pet portclippy
- Adopt port
---
print/latex2rtf/Makefile | 24 ++++++++----
print/latex2rtf/distinfo | 6 +--
print/latex2rtf/files/patch-Makefile | 74 +++++++++++++++++++++++++++---------
3 files changed, 74 insertions(+), 30 deletions(-)
diff --git a/print/latex2rtf/Makefile b/print/latex2rtf/Makefile
index eeff59277cbb..c48210d42bdb 100644
--- a/print/latex2rtf/Makefile
+++ b/print/latex2rtf/Makefile
@@ -1,26 +1,34 @@
PORTNAME= latex2rtf
-DISTVERSION= 2.3.17
-PORTREVISION= 1
+DISTVERSION= 2.3.18
CATEGORIES= print
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-unix/${PORTVERSION}
+DISTNAME= ${PORTNAME}-${PORTVERSION}a
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= Translator from LaTeX to RTF
WWW= http://latex2rtf.sourceforge.net/
-USES= cpe shebangfix makeinfo
-SHEBANG_FILES= ${WRKSRC}/scripts/latex2png
+LICENSE= GPLv2+
+USES= cpe shebangfix
CPE_VENDOR= latex2rtf_project
+SHEBANG_FILES= ${WRKSRC}/scripts/latex2png
+
+MAKE_ARGS+= MANDIR=${PREFIX}/man/man1 CFGDIR=${DATADIR}/cfg \
+ BINDIR=${PREFIX}/bin
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
OPTIONS_DEFINE= LATEX2PNG
-LATEX2PNG_DESC= Install latex2png utility
OPTIONS_SUB= yes
+LATEX2PNG_DESC= Install latex2png utility
+
LATEX2PNG_USES= magick:6,run tex
LATEX2PNG_USE= TEX=dvipsk,latex,xetex
-MAKE_ARGS+= MANDIR=${PREFIX}/man/man1 CFGDIR=${DATADIR}/cfg \
- BINDIR=${PREFIX}/bin
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/print/latex2rtf/distinfo b/print/latex2rtf/distinfo
index fa06f1b905c2..c6c5986cd2fe 100644
--- a/print/latex2rtf/distinfo
+++ b/print/latex2rtf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1580378261
-SHA256 (latex2rtf-2.3.17.tar.gz) = 19f3763177d8ea7735511438de269b78c24ccbfafcd71d7a47aabc20b9ea05a8
-SIZE (latex2rtf-2.3.17.tar.gz) = 1656072
+TIMESTAMP = 1698073444
+SHA256 (latex2rtf-2.3.18a.tar.gz) = 338ba2e83360f41ded96a0ceb132db9beaaf15018b36101be2bae8bb239017d9
+SIZE (latex2rtf-2.3.18a.tar.gz) = 2109122
diff --git a/print/latex2rtf/files/patch-Makefile b/print/latex2rtf/files/patch-Makefile
index b0fe1f6c769c..fdc8bd77e584 100644
--- a/print/latex2rtf/files/patch-Makefile
+++ b/print/latex2rtf/files/patch-Makefile
@@ -1,27 +1,35 @@
---- ./Makefile.orig 2013-11-12 06:44:44.000000000 -0200
-+++ ./Makefile 2014-07-24 21:27:45.000000000 -0300
-@@ -151,10 +151,10 @@
- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $(BINARY_NAME)
-
- cfg.o: Makefile cfg.c
-- $(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c cfg.c -o cfg.o
-+ $(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -c cfg.c -o cfg.o
-
- main.o: Makefile main.c
-- $(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c main.c -o main.o
-+ $(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -c main.c -o main.o
-
- check test: latex2rtf
+--- Makefile.orig 2020-05-30 14:08:19 UTC
++++ Makefile
+@@ -138,7 +138,7 @@ TEST= \
+ test/enc_ot2.tex test/keywords.tex test/bib_natbib4.tex \
+ test/graphicspath.tex test/bib_style.tex test/tikz.tex \
+ test/tikz2.tex
+-
++
+ OBJS=fonts.o direct.o encodings.o commands.o stack.o funct1.o tables.o \
+ chars.o ignore.o cfg.o main.o utils.o parser.o lengths.o counters.o \
+ preamble.o letterformat.o equations.o convert.o xrefs.o definitions.o graphics.o \
+@@ -163,7 +163,7 @@ check test: latex2rtf
+ cd test && $(MAKE) clean
+ cd test && $(MAKE)
+ cd test && $(MAKE) check
+-
++
+ fullcheck: latex2rtf
+ cd scripts && $(MAKE)
cd test && $(MAKE) clean
-@@ -209,7 +209,6 @@
- cd doc && $(MAKE) -k
+@@ -209,10 +209,8 @@ releasedate:
+ $(RM) version.h.bak
+
+ doc: doc/latex2rtf.texi doc/Makefile
+- cd doc && $(MAKE) -k
install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
- cd doc && $(MAKE)
$(MKDIR) $(DESTDIR)$(BINDIR)
$(MKDIR) $(DESTDIR)$(MANDIR)
$(MKDIR) $(DESTDIR)$(CFGDIR)
-@@ -217,9 +216,6 @@
+@@ -220,24 +218,7 @@ install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/lat
cp -p doc/latex2rtf.1 $(DESTDIR)$(MANDIR)
cp -p doc/latex2png.1 $(DESTDIR)$(MANDIR)
cp -p $(CFGS) $(DESTDIR)$(CFGDIR)
@@ -29,5 +37,33 @@
- cp -p doc/latex2rtf.pdf $(DESTDIR)$(SUPPORTDIR)
- cp -p doc/latex2rtf.txt $(DESTDIR)$(SUPPORTDIR)
cp -p $(BINARY_NAME) $(DESTDIR)$(BINDIR)
- @echo "******************************************************************"
- @echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
+- @echo "******************************************************************"
+- @echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
+- @echo "*** in directory \"$(BINDIR)\""
+- @echo "***"
+- @echo "*** \"make install-info\" will install TeXInfo files "
+- @echo "***"
+- @echo "*** latex2rtf was compiled to search for its configuration files in"
+- @echo "*** \"$(CFGDIR)\" "
+- @echo "***"
+- @echo "*** If the configuration files are moved then either"
+- @echo "*** 1) set the environment variable RTFPATH to this new location, or"
+- @echo "*** 2) use the command line option -P /path/to/cfg, or"
+- @echo "*** 3) edit the Makefile and recompile"
+- @echo "******************************************************************"
+
+ install-info: doc/latex2rtf.info
+ $(MKDIR) $(DESTDIR)$(INFODIR)
+@@ -252,10 +233,10 @@ realclean: checkdir clean
+ appleclean:
+ sudo xattr -r -d com.apple.FinderInfo ../trunk
+ sudo xattr -r -d com.apple.TextEncoding ../trunk
+-
++
+ splint:
+ splint -weak $(SRCS) $(HDRS)
+-
++
+ .PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck
+
+ # created using "make depend"