diff options
Diffstat (limited to 'textproc/gladtex')
| -rw-r--r-- | textproc/gladtex/Makefile | 21 | ||||
| -rw-r--r-- | textproc/gladtex/distinfo | 5 | ||||
| -rw-r--r-- | textproc/gladtex/files/patch-CMakeLists.txt | 11 | ||||
| -rw-r--r-- | textproc/gladtex/files/patch-Makefile | 28 | ||||
| -rw-r--r-- | textproc/gladtex/files/patch-eqn2img.c | 33 | ||||
| -rw-r--r-- | textproc/gladtex/files/patch-gladtex | 11 | ||||
| -rw-r--r-- | textproc/gladtex/pkg-descr | 2 | ||||
| -rw-r--r-- | textproc/gladtex/pkg-plist | 1 |
8 files changed, 46 insertions, 66 deletions
diff --git a/textproc/gladtex/Makefile b/textproc/gladtex/Makefile index 2a7a6dc4e3e7..3b1b80a71eb3 100644 --- a/textproc/gladtex/Makefile +++ b/textproc/gladtex/Makefile @@ -1,30 +1,23 @@ PORTNAME= gladtex -PORTVERSION= 1.3 -PORTREVISION= 5 +DISTVERSION= 1.4.2 CATEGORIES= textproc math www MASTER_SITES= SF/${PORTNAME} -MAINTAINER= nivit@FreeBSD.org +MAINTAINER= alven@FreeBSD.org COMMENT= Program to replace LaTeX formulas in HTML files with images WWW= https://gladtex.sourceforge.net/ LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgif.so:graphics/giflib \ libpng.so:graphics/png -USES= perl5 tex -USE_TEX= latex dvipsk +USES= cmake perl5 shebangfix tex +USE_TEX= dvipsk:run latex:run -BINPATH= ${PREFIX}/bin -INCPATH= "-I${LOCALBASE}/include" -LIBPATH= "-L${LOCALBASE}/lib" +SHEBANG_FILES= gladtex -MAKE_ENV+= BINPATH=${BINPATH} INCPATH="${INCPATH}" LIBPATH="${LIBPATH}" - -do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${BINPATH}; \ - ${INSTALL_PROGRAM} ${WRKSRC}/eqn2img ${STAGEDIR}${BINPATH} - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1/ +CONFLICTS_INSTALL= py-gladtex .include <bsd.port.mk> diff --git a/textproc/gladtex/distinfo b/textproc/gladtex/distinfo index 02231e3ba24b..02f5724b2d66 100644 --- a/textproc/gladtex/distinfo +++ b/textproc/gladtex/distinfo @@ -1,2 +1,3 @@ -SHA256 (gladtex-1.3.tar.gz) = 276cf10f57a0fd28354a9494e76befe9c3b088e9ff873336ad82811e49e0b192 -SIZE (gladtex-1.3.tar.gz) = 153600 +TIMESTAMP = 1761945096 +SHA256 (gladtex-1.4.2.tar.gz) = fa0eb40d1f6ae6b923bd596c67771bab9ab4452e952be25e122f62d2e9840429 +SIZE (gladtex-1.4.2.tar.gz) = 25830 diff --git a/textproc/gladtex/files/patch-CMakeLists.txt b/textproc/gladtex/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..a274d3b01720 --- /dev/null +++ b/textproc/gladtex/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2014-02-20 19:54:58 UTC ++++ CMakeLists.txt +@@ -34,7 +34,7 @@ if(POD2MAN) + if(POD2MAN) + message(STATUS "found pod2man for generation of documentation: ${POD2MAN}") + add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/gladtex.1 +- COMMAND ${POD2MAN} ARGS -c \"User Commands\" -r \"gladtex 1.3\" ${CMAKE_SOURCE_DIR}/gladtex.pod > ${CMAKE_BINARY_DIR}/gladtex.1) ++ COMMAND ${POD2MAN} ARGS -c \"User Commands\" -r \"gladtex 1.4.2\" ${CMAKE_SOURCE_DIR}/gladtex.pod > ${CMAKE_BINARY_DIR}/gladtex.1) + add_custom_target(gladtex.1_custom ALL DEPENDS ${CMAKE_BINARY_DIR}/gladtex.1) + endif() + diff --git a/textproc/gladtex/files/patch-Makefile b/textproc/gladtex/files/patch-Makefile deleted file mode 100644 index ba6f45cc4daa..000000000000 --- a/textproc/gladtex/files/patch-Makefile +++ /dev/null @@ -1,28 +0,0 @@ ---- ./Makefile.orig 2012-05-01 18:11:56.000000000 +0200 -+++ ./Makefile 2012-05-01 18:15:04.000000000 +0200 -@@ -1,18 +1,19 @@ - # Makefile for gladtex - --BINPATH = /usr/local/bin --MANPATH = /usr/local/share/man/man1 -+BINPATH?= /usr/local/bin -+MANPATH?= /usr/local/share/man/man1 - --CC = gcc -O2 -DGIF --LIB = -lm -lz -lgif -lpng -+CC ?= gcc -+CFLAGS+= -DGIF ${INCPATH} -+LIB = -lm -lz ${LIBPATH} -lgif -lpng - OBJ = eqn2img.o - POD2MAN = pod2man - - all: ${OBJ} gladtex.1 -- ${CC} -o eqn2img ${LIB} ${OBJ} -+ ${CC} ${CFLAGS} -o eqn2img ${LIB} ${OBJ} - - eqn2img.o: eqn2img.c -- ${CC} -c eqn2img.c -+ ${CC} ${CFLAGS} -c eqn2img.c - - gladtex.1: gladtex.pod - ${POD2MAN} -c "User Commands" -r "gladtex 1.2" gladtex.pod > gladtex.1 diff --git a/textproc/gladtex/files/patch-eqn2img.c b/textproc/gladtex/files/patch-eqn2img.c index 1b663c49a60b..4f0fbfb81abf 100644 --- a/textproc/gladtex/files/patch-eqn2img.c +++ b/textproc/gladtex/files/patch-eqn2img.c @@ -1,24 +1,15 @@ ---- eqn2img.c.orig 2013-01-27 04:17:45 UTC +--- eqn2img.c.orig 2014-02-20 19:54:58 UTC +++ eqn2img.c -@@ -367,7 +367,7 @@ png_bytepp png_read(char *filename, int - info_ptr = png_create_info_struct(png_ptr); - assert(info_ptr); - -- if(setjmp(png_ptr->jmpbuf)) { -+ if(setjmp(png_jmpbuf(png_ptr))) { - png_destroy_read_struct(&png_ptr, &info_ptr, NULL); - fclose(fp); - return NULL; -@@ -580,7 +580,7 @@ int png_write(png_bytepp image, char *im - assert(info_ptr); +@@ -30,7 +30,7 @@ This utility is part of\n\ - /* error handling, libpng longjmps here on any error */ -- if(setjmp(png_ptr->jmpbuf)) { -+ if(setjmp(png_jmpbuf(png_ptr))) { - png_destroy_read_struct(&png_ptr, &info_ptr, NULL); - fclose(fp); - return -1; -@@ -623,19 +623,31 @@ int gif_write(png_bytepp image, char *im + #define USAGE "\ + This utility is part of\n\ +-gladtex version 1.4.1, Copyright (C) 1999-2010 Martin G. Gulbrandsen\n\ ++gladtex version 1.4.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen\n\ + (C) 2014 Sebastian Humenda\n\ + \n\ + GladTXx comes with ABSOLUTELY NO WARRANTY. This is free software,\n\ +@@ -634,19 +634,31 @@ int gif_write(png_bytepp image, char *img_name, int wi }; if(img_name) { @@ -50,7 +41,7 @@ /* EGifSetGifVersion("89a"); this causes segfault (but is really required for transparency, I think) */ EGifPutScreenDesc(fp, width, height, 256, 255, color_map); -@@ -649,7 +661,11 @@ int gif_write(png_bytepp image, char *im +@@ -660,7 +672,11 @@ int gif_write(png_bytepp image, char *img_name, int wi return -1; } @@ -62,7 +53,7 @@ return 0; } -@@ -715,7 +731,7 @@ int to_ps(char *basename, int verbose) { +@@ -726,7 +742,7 @@ int to_ps(char *basename, int verbose) { fprintf(stderr, " -> ps"); cmd = NEW(char, 2*strlen(basename) + 46); diff --git a/textproc/gladtex/files/patch-gladtex b/textproc/gladtex/files/patch-gladtex new file mode 100644 index 000000000000..72c5cf5b5ab8 --- /dev/null +++ b/textproc/gladtex/files/patch-gladtex @@ -0,0 +1,11 @@ +--- gladtex.orig 2025-10-31 21:57:18 UTC ++++ gladtex +@@ -50,7 +50,7 @@ my $preamble = " + \\usepackage{amssymb} + "; + +-our $usage = "gladtex version 1.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen ++our $usage = "gladtex version 1.4.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen + + gladtex comes with ABSOLUTELY NO WARRANTY. This is free software, + and you are welcome to redistribute it under certain conditions; diff --git a/textproc/gladtex/pkg-descr b/textproc/gladtex/pkg-descr index a5b22495021e..ed0acaec66db 100644 --- a/textproc/gladtex/pkg-descr +++ b/textproc/gladtex/pkg-descr @@ -1,2 +1,2 @@ Gladtex reads a 'htex' file (html with LaTeX maths embedded in <EQ></EQ>) -and produces html with equations substituted by images. +and produces HTML with equations substituted by images. diff --git a/textproc/gladtex/pkg-plist b/textproc/gladtex/pkg-plist index 6bc9547dc6d5..18d1931a5b4d 100644 --- a/textproc/gladtex/pkg-plist +++ b/textproc/gladtex/pkg-plist @@ -1,3 +1,4 @@ bin/eqn2img bin/gladtex +share/man/man1/eqn2img.1.gz share/man/man1/gladtex.1.gz |
