summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-05-16 12:22:40 +0000
committerseb <seb@pkgsrc.org>2004-05-16 12:22:40 +0000
commit50d96f35953fb5adc465ea11a4e11b8d1a74b9c1 (patch)
tree5389aacee26deaee682c83b8d18580541c08865e /textproc
parentfce97ab548a3c00bf10303f29556eb0a8f35f045 (diff)
downloadpkgsrc-50d96f35953fb5adc465ea11a4e11b8d1a74b9c1.tar.gz
Fix build with older GNU libstdc++ (mentioned in PR pkg/25590).
While here add support for test target.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/source-highlight/Makefile4
-rw-r--r--textproc/source-highlight/distinfo3
-rw-r--r--textproc/source-highlight/patches/patch-ae13
3 files changed, 18 insertions, 2 deletions
diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile
index 04dc8723d34..f16ad65e48a 100644
--- a/textproc/source-highlight/Makefile
+++ b/textproc/source-highlight/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/05/15 14:55:38 seb Exp $
+# $NetBSD: Makefile,v 1.13 2004/05/16 12:22:40 seb Exp $
#
DISTNAME= source-highlight-1.9
@@ -13,6 +13,8 @@ COMMENT= Highlight syntax of various languages source into HTML document
GNU_CONFIGURE= YES
USE_BUILDLINK3= YES
+TEST_TARGET= check
+
.include "../../mk/bsd.prefs.mk"
.ifdef SOURCE_HIGHLIGHT_INPUT_CHROOT
diff --git a/textproc/source-highlight/distinfo b/textproc/source-highlight/distinfo
index eeadcbc8227..0f642fd5565 100644
--- a/textproc/source-highlight/distinfo
+++ b/textproc/source-highlight/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2004/05/15 14:55:38 seb Exp $
+$NetBSD: distinfo,v 1.8 2004/05/16 12:22:40 seb Exp $
SHA1 (source-highlight-1.9.tar.gz) = b7acc3e354a3043c517f7efa4ddb5e0924464a68
Size (source-highlight-1.9.tar.gz) = 682343 bytes
@@ -6,5 +6,6 @@ SHA1 (patch-aa) = 3f124bcdc738222dedd0f961e26da3f374700680
SHA1 (patch-ab) = ecb8ce16381bd68b55f309a0ae43912319138575
SHA1 (patch-ac) = 62475d945664b84eb4a6e43e5cd4c75f9049eefe
SHA1 (patch-ad) = 7be6c33e8dbcc61f09ede32b25f6c912bb41b4de
+SHA1 (patch-ae) = ea3b682e89556a8c32b990585c07c6cd48fb24d9
SHA1 (patch-ag) = 77d3668ad1573fee7423aa3651c77ae64fd7cbb7
SHA1 (patch-ah) = a0df2fb54d9093834d2a017efc3ff512bbd517bf
diff --git a/textproc/source-highlight/patches/patch-ae b/textproc/source-highlight/patches/patch-ae
new file mode 100644
index 00000000000..3871b8a0fae
--- /dev/null
+++ b/textproc/source-highlight/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.3 2004/05/16 12:22:40 seb Exp $
+
+--- src/lib/fileutil.cc.orig 2004-04-19 10:59:24.000000000 +0000
++++ src/lib/fileutil.cc
+@@ -41,7 +41,7 @@ read_file(const string &fileName)
+ // we open it as binary otherwise we may experience problems under
+ // Windows system: when we fread, the number of char read can be
+ // less then char_count, and thus we'd get an error...
+- ifstream file (fileName.c_str (), ios_base::binary);
++ ifstream file (fileName.c_str (), ios::binary);
+ if (! file.is_open () )
+ file_error ("Error operning", fileName);
+ else