Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

9
textproc/html2text/DESCR Normal file
View File

@@ -0,0 +1,9 @@
Html2text reads HTML 3.2 documents from the input-urls, formats each
into a stream of ASCII characters and writes the result to standard
output (or into output-file, if the -o command line option is used).
It also accepts syntactically incorrect input and attempts to inter-
pret it "reasonably".
Documents that are specified by a URL that begins with "http:" are
retrieved with the Hypertext Transfer Protocol. URLs that begin with
"file:" and URLs that do not contain a colon specify local files.

View File

@@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.17 2012/10/25 06:55:54 asau Exp $
DISTNAME= html2text-1.3.2a
CATEGORIES= textproc
MASTER_SITES= http://www.mbayer.de/html2text/downloads/ \
${MASTER_SITE_SUNSITE:=apps/www/converters/}
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.mbayer.de/html2text/
COMMENT= Advanced HTML-to-text converter
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_TOOLS+= gunzip
GCC_REQD+= 3.0
HAS_CONFIGURE= yes
CONFIGURE_ENV+= ECHO=${ECHO:Q}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
SUBST_CLASSES+= configure
SUBST_STAGE.configure= pre-configure
SUBST_MESSAGE.configure=Fixing 'configure' script
SUBST_FILES.configure= configure
SUBST_SED.configure= -e 's,^$$echo,$$echo -n,'
SUBST_SED.configure+= -e 's,\\c,,'
SUBST_SED.configure+= -e 's,$$CXX $$tmp_file.C,$$CXX $$LDFLAGS $$tmp_file.C,'
post-build:
${GUNZIP_CMD} -d ${WRKSRC}/html2text.1.gz ${WRKSRC}/html2textrc.5.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/html2text ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/html2text.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/html2textrc.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/html2textrc.5
.include "../../mk/bsd.pkg.mk"

4
textproc/html2text/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:56:53 zuntum Exp $
bin/html2text
man/man1/html2text.1
man/man5/html2textrc.5

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.8 2011/01/31 10:36:21 adam Exp $
SHA1 (html2text-1.3.2a.tar.gz) = 91d46e3218d05b0783bebee96a14f0df0eb9773e
RMD160 (html2text-1.3.2a.tar.gz) = 2771c52ea3ff6c97a13d6171839e61bb19226311
Size (html2text-1.3.2a.tar.gz) = 130088 bytes
SHA1 (patch-aa) = a87a5861487081ee702455de3aab998f95eb8a1d
SHA1 (patch-ab) = 74e948bd8e63d4d3de320f51e339b18198f2f6ba

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-aa,v 1.4 2011/01/31 10:36:21 adam Exp $
--- configure.orig 2004-01-12 15:47:18.000000000 +0000
+++ configure
@@ -19,7 +19,7 @@
# Tue Nov 11 21:30:26 CET 2003
-echo='/bin/echo -e'
+echo="${ECHO}"
rm -rf configure-tmp || exit 1;
mkdir configure-tmp || exit 1;
@@ -38,13 +38,7 @@ int main(int, char **) {
return 0;
}
EOF
-CXX=unknown;
-for i in "CC" "g++" "cc" "$CC"; do
- if $i -c $tmp_file.C 2>/dev/null; then
- CXX="$i";
- break;
- fi;
-done;
+CXX="${CXX}";
if test "$CXX" = unknown; then
$echo "Error: Could not find a working C++ compiler.";
exit 1;
@@ -287,7 +281,7 @@ for i in \
MAKEDEPEND_INCLUDES; \
do cmd="$cmd -e \"s|@$i@|\$$i|g\""; done;
for dir in $makedirs; do
- $echo "Creating \"$dir/Makefile\" from \"$dir/Makefile.in\"... \\c";
+ $echo "Creating \"$dir/Makefile\" from \"$dir/Makefile.in\"... ";
cat <<EOF >$dir/Makefile;
#

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ab,v 1.3 2011/01/31 10:36:21 adam Exp $
--- Makefile.in.orig 2004-01-14 13:47:02.000000000 +0000
+++ Makefile.in
@@ -47,9 +47,8 @@ DEBUG=-O2 -g
INCLUDES = $(LIBSTDCXX_INCLUDES)
DEFINES = -DVERSION=$(VERSION) $(SYS_POLL_MISSING) $(BOOL_DEFINITION) $(EXPLICIT) $(AUTO_PTR_BROKEN)
-CPPFLAGS = $(INCLUDES) $(DEFINES)
-CXXFLAGS = $(CPPFLAGS) $(DEBUG)
-LDFLAGS = $(DEBUG)
+CPPFLAGS += $(INCLUDES) $(DEFINES)
+CXXFLAGS += $(CPPFLAGS)
LOADLIBES = $(LIBSTDCXX_LIBS) $(SOCKET_LIBRARIES)
.SUFFIXES : .C .o