Fri Nov 22 15:43:05 2013 UTC ()
Fix broken build with gcc 4.5.


(dholland)
diff -r1.1 -r1.2 pkgsrc/converters/pyzy/distinfo
diff -r0 -r1.1 pkgsrc/converters/pyzy/patches/patch-src_Database.h

cvs diff -r1.1 -r1.2 pkgsrc/converters/pyzy/distinfo (expand / switch to context diff)
--- pkgsrc/converters/pyzy/distinfo 2013/10/23 11:41:25 1.1
+++ pkgsrc/converters/pyzy/distinfo 2013/11/22 15:43:05 1.2
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2013/10/23 11:41:25 obache Exp $
+$NetBSD: distinfo,v 1.2 2013/11/22 15:43:05 dholland Exp $
 
 SHA1 (pyzy-0.1.0.tar.gz) = ffe67a455a537c8ed8a0d138eb014945cd982927
 RMD160 (pyzy-0.1.0.tar.gz) = 26cf64a977b030456bd74cca40fc9c9f476f7b7d
@@ -6,3 +6,4 @@
 SHA1 (pyzy-database-1.0.0.tar.bz2) = e38a148a772e9909facda66b2d579e17b94cccbe
 RMD160 (pyzy-database-1.0.0.tar.bz2) = 1679567f31c20a235577f02175df38e16a05e7de
 Size (pyzy-database-1.0.0.tar.bz2) = 9977983 bytes
+SHA1 (patch-src_Database.h) = a35156bb6f7804ab2f7fcdd3c1d2fbaa39115b3b

File Added: pkgsrc/converters/pyzy/patches/patch-src_Database.h
$NetBSD: patch-src_Database.h,v 1.1 2013/11/22 15:43:05 dholland Exp $

Work around C++ build error with gcc 4.5.

--- src/Database.h.orig	2012-07-13 02:46:33.000000000 +0000
+++ src/Database.h
@@ -79,7 +79,7 @@ public:
     static void finalize (void);
     static Database & instance (void)
     {
-        if (m_instance == NULL) {
+        if (!m_instance) {
             g_error ("Error: Please call InputContext::init () !");
         }
         return *m_instance;