import html2text 1.3.2a
html2text is a command line utility, written in C++, that converts HTML documents into plain text. feedback and ok merdely@
This commit is contained in:
parent
051d194d03
commit
058f305d9b
37
converters/html2text/Makefile
Normal file
37
converters/html2text/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/17 19:21:21 jasper Exp $
|
||||
|
||||
COMMENT= advanced HTML-to-text converter
|
||||
|
||||
DISTNAME= html2text-1.3.2a
|
||||
CATEGORIES= converters textproc
|
||||
|
||||
|
||||
HOMEPAGE= http://www.mbayer.de/html2text/
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c m stdc++
|
||||
|
||||
MASTER_SITES= http://www.mbayer.de/html2text/downloads/ \
|
||||
ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/html2text-1.3.2.tar.gz
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
|
||||
MAKE_FLAGS= PREFIX="${PREFIX}" CXXFLAGS+="-DVERSION=1.3.2a -DAUTO_PTR_BROKEN ${CXXFLAGS}"
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-extract:
|
||||
gunzip ${WRKSRC}/{html2text.1,html2textrc.5}.gz
|
||||
|
||||
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
|
||||
|
||||
.include <bsd.port.mk>
|
5
converters/html2text/distinfo
Normal file
5
converters/html2text/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (html2text-1.3.2a.tar.gz) = YJf+B7lI4UIxV0nmYgyc/A==
|
||||
RMD160 (html2text-1.3.2a.tar.gz) = J3HFLqP/bJehPWFxg55huxkiYxE=
|
||||
SHA1 (html2text-1.3.2a.tar.gz) = kdRuMhjQWweDvr7pahTw3w65dz4=
|
||||
SHA256 (html2text-1.3.2a.tar.gz) = AAs51dkQuGf/fghxd7RwoeJuKBmSDc/9WZHDP21IA5I=
|
||||
SIZE (html2text-1.3.2a.tar.gz) = 130088
|
25
converters/html2text/patches/patch-Makefile_in
Normal file
25
converters/html2text/patches/patch-Makefile_in
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/09/17 19:21:21 jasper Exp $
|
||||
--- Makefile.in.orig Wed Jan 14 14:47:02 2004
|
||||
+++ Makefile.in Thu Sep 13 21:36:17 2007
|
||||
@@ -29,9 +29,9 @@ BISONXX = bison++
|
||||
YFLAGS =
|
||||
|
||||
INSTALLER = install
|
||||
-BINDIR = /usr/local/bin
|
||||
-MANDIR = /usr/local/man
|
||||
-DOCDIR = /usr/share/doc/html2text
|
||||
+BINDIR = $(PREFIX)/bin
|
||||
+MANDIR = $(PREFIX)/man
|
||||
+DOCDIR = $(PREFIX)/share/doc/html2text
|
||||
|
||||
CXX = @CXX@
|
||||
BOOL_DEFINITION = @BOOL_DEFINITION@
|
||||
@@ -48,7 +48,7 @@ DEBUG=-O2 -g
|
||||
INCLUDES = $(LIBSTDCXX_INCLUDES)
|
||||
DEFINES = -DVERSION=$(VERSION) $(SYS_POLL_MISSING) $(BOOL_DEFINITION) $(EXPLICIT) $(AUTO_PTR_BROKEN)
|
||||
CPPFLAGS = $(INCLUDES) $(DEFINES)
|
||||
-CXXFLAGS = $(CPPFLAGS) $(DEBUG)
|
||||
+CXXFLAGS = $(CPPFLAGS)
|
||||
LDFLAGS = $(DEBUG)
|
||||
LOADLIBES = $(LIBSTDCXX_LIBS) $(SOCKET_LIBRARIES)
|
||||
|
8
converters/html2text/pkg/DESCR
Normal file
8
converters/html2text/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
html2text is a command line utility, written in C++, that converts HTML
|
||||
documents into plain text.
|
||||
|
||||
Each HTML document is loaded from a location indicated by a URI or read
|
||||
from standard input, and formatted into a stream of plain text
|
||||
characters that is written to standard output or into an output-file.
|
||||
The input-URI may specify a remote site, from that the documents are
|
||||
loaded via the Hypertext Transfer Protocol (HTTP).
|
6
converters/html2text/pkg/PLIST
Normal file
6
converters/html2text/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/17 19:21:21 jasper Exp $
|
||||
bin/html2text
|
||||
@man man/man1/html2text.1
|
||||
@man man/man5/html2textrc.5
|
||||
share/doc/html2text/
|
||||
share/doc/html2text/README
|
Loading…
Reference in New Issue
Block a user