Skip to content

Commit

Permalink
update to html2text-2.2.3, based on a diff from wen heping
Browse files Browse the repository at this point in the history
quite a few tweaks from me
  • Loading branch information
sthen committed Jul 15, 2024
1 parent 3b12f17 commit 2947e93
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 76 deletions.
41 changes: 11 additions & 30 deletions converters/html2text/Makefile
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
PORTROACH= skipv:1.3.2
COMMENT= advanced HTML-to-text converter

COMMENT= advanced HTML-to-text converter
V= 2.2.3
DISTNAME= html2text-$V
SITES= https://github.com/grobian/html2text/releases/download/v$V/

DISTNAME= html2text-1.3.2a
REVISION = 5
CATEGORIES= converters textproc
CATEGORIES= converters textproc

HOMEPAGE= https://github.com/grobian/html2text

HOMEPAGE= http://www.mbayer.de/html2text/

# GPL
# GPLv2+
PERMIT_PACKAGE= Yes

WANTLIB += c m ${COMPILER_LIBCXX}

SITES= http://www.mbayer.de/html2text/downloads/ \
ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/

COMPILER = base-clang ports-gcc base-gcc

CONFIGURE_STYLE= simple
CONFIGURE_ENV= CXX="${CXX}"

MAKE_FLAGS= PREFIX="${PREFIX}" \
CXXFLAGS="-DVERSION=1.3.2a -DAUTO_PTR_BROKEN ${CXXFLAGS}"

NO_TEST= Yes
WANTLIB += c iconv m ${COMPILER_LIBCXX}

post-extract:
gunzip ${WRKSRC}/{html2text.1,html2textrc.5}.gz
COMPILER= base-clang ports-gcc base-gcc
LIB_DEPENDS= converters/libiconv

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/html2text ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/html2text.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/html2textrc.5 ${PREFIX}/man/man5
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html2text
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/html2text
CONFIGURE_STYLE= gnu

.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions converters/html2text/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (html2text-1.3.2a.tar.gz) = AAs51dkQuGf/fghxd7RwoeJuKBmSDc/9WZHDP21IA5I=
SIZE (html2text-1.3.2a.tar.gz) = 130088
SHA256 (html2text-2.2.3.tar.gz) = hZEzUos/2JNWLkHYS8HrwfkWbdKB0PqOF+fdJjN/V1I=
SIZE (html2text-2.2.3.tar.gz) = 329841
24 changes: 0 additions & 24 deletions converters/html2text/patches/patch-Makefile_in

This file was deleted.

18 changes: 0 additions & 18 deletions converters/html2text/patches/patch-configure

This file was deleted.

2 changes: 0 additions & 2 deletions converters/html2text/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@bin bin/html2text
@man man/man1/html2text.1
@man man/man5/html2textrc.5
share/doc/html2text/
share/doc/html2text/README

0 comments on commit 2947e93

Please sign in to comment.