Update of /cvsroot/fink/experimental/fangism/finkinfo In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv22986
Added Files: cppunit1.10.2.info Log Message: patched the hell out of this to compile with -W -Wall -Werror so that includes don't trigger warnings/errors in other packages that bdep or tdep on this. --- NEW FILE: cppunit1.10.2.info --- Package: cppunit1.10.2 Version: 1.10.2 Revision: 1006 GCC: 4.0 Maintainer: Ben Burton <b...@debian.org> License: LGPL # Dependencies: Depends: %N-shlibs (=%v-%r) BuildDepends: doxygen BuildDependsOnly: True Conflicts: cppunit Replaces: cppunit # Unpack Phase: Source: mirror:sourceforge:cppunit/cppunit-%v.tar.gz Source-MD5: 0bc06cd219410f7d4f6bbfc9bdd7c824 PatchScript: << #!/bin/sh -ev perl -pi -e 's/(AC_DEFUN\()([^[]+)(,)/\1\[\2]\3/' cppunit.m4 # patch header files to be warning-clean -- fangism # the warnings in this file are unused parameters only # Admittedly, this patch might result in Doxygen differences. file=include/cppunit/TestListener.h sed -i.orig -e '/class CPPUNIT_API/,/};/s|\*test|*|g' \ -e '/class CPPUNIT_API/,/};/s|\*suite|*|g' \ -e '/class CPPUNIT_API/,/};/s|&failure|\&|g' \ -e '/class CPPUNIT_API/,/};/s|\*eventManager|*|g' $file file=include/cppunit/plugin/TestPlugIn.h sed -i.orig -e '/^{/a \ virtual ~CppUnitTestPlugIn() {}' $file file=include/cppunit/XmlOutputterHook.h sed -i.orig -e '/^{/a \ virtual ~XmlOutputterHook() {}' $file file=include/cppunit/extensions/TestFixtureFactory.h sed -i.orig -e '/virtual.*makeFixture/a \ virtual ~TestFixtureFactory() {}' $file # translations units are not as important as they are not exposed... file=src/cppunit/BriefTestProgressListener.cpp sed -i.orig -e '/::endTest/,/};/s|\*test|*|g' $file file=src/cppunit/DynamicLibraryManagerException.cpp sed -i.orig -e '/std::runtime_error/d' \ -e '/: m_cause/s|.*| : std::runtime_error(""), m_cause(cause)|' $file file=src/cppunit/TestCaseDecorator.cpp sed -i.orig -e '/: m_test/,/, TestCase(.*)/c \ : TestCase( test->getName() ), m_test(test)' $file file=src/cppunit/TestFactoryRegistry.cpp sed -i.orig -e '/::registerFactory/s|&name|\&|' $file file=src/cppunit/TestPlugInDefaultImpl.cpp sed -i.orig -e 's|\*[a-zA-Z]*|*|g' -e 's|&[a-zA-Z]*|\&|g' $file file=src/cppunit/TestSuccessListener.cpp sed -i.orig -e '/::addFailure/s|&failure|\&|' $file file=src/cppunit/TextTestProgressListener.cpp sed -i.orig -e '/::startTest/s|\*test|*|' \ -e '/::endTestRun/s|\*test|*|' \ -e 's|\*eventManager|*|' $file file=src/cppunit/TextTestRunner.cpp sed -i.orig -e '/: m_outputter/,/, m_eventManager/c \ : m_result( new TestResultCollector() )\ , m_eventManager( new TestResult() )\ , m_outputter( outputter )' $file file=src/cppunit/XmlDocument.cpp sed -i.orig -e '/: m_rootElement/,/, m_styleSheet/c \ : m_styleSheet( styleSheet )\ , m_rootElement( new XmlElement( "DummyRoot" ) )' $file file=src/cppunit/XmlOutputterHook.cpp sed -i.orig -e 's|\*[a-zA-Z]*|*|g' -e 's|&[a-zA-Z]*|\&|g' $file file=src/DllPlugInTester/CommandLineParser.cpp sed -i.orig -e '/: m_currentArgument/,/^{/c \ : m_useCompiler( false )\ , m_useXml( false )\ , m_briefProgress( false )\ , m_noProgress( false )\ , m_useText( false )\ , m_useCout( false )\ , m_waitBeforeExit( false )\ , m_currentArgument( 0 ) {' $file file=examples/simple/Main.cpp sed -i.orig -e '/^main/s|arg[cv]||g' $file file=examples/simple/ExampleTestCase.cpp sed -i.orig -e '/\/ zero/a \ result=result;' $file << # Compile Phase: ConfigureParams: --mandir=%p/share/man --disable-dependency-tracking # make sure headers compile under strictest warnings -- fangism SetCFLAGS: -g -O2 -W -Wall -Werror SetCXXFLAGS: -g -O2 -W -Wall -Werror CompileScript: ./configure %c; make # Install Phase: InstallScript: << make install DESTDIR=%d # The standard install includes the example program # %p/bin/simple, which is not useful as an installed application # (it is merely provided as example code so that developers can # look at its sources). Remove it from the final install. rm %i/bin/simple << DocFiles: AUTHORS BUGS COPYING NEWS README THANKS TODO SplitOff: << Package: %N-shlibs Files: lib/libcppunit-%v*.dylib Shlibs: %p/lib/libcppunit-%v.dylib 3.0.0 %n (>= 1.10.2-1001) DocFiles: AUTHORS BUGS COPYING NEWS README THANKS TODO << Description: C++ Port of JUnit framework for unit testing DescDetail: << CppUnit is a C++ unit testing framework. It started its life as a port of JUnit. Features: - XML output with hook for additional data - Compiler like text output to integrate with an IDE - Helper macros for easier test suite declaration - Hierarchical test fixture support - Test registry to reduce compilation need - Test plug-in for faster compile/test cycle (self testable dynamic library) - Protector to encapsulate test execution (allow capture of exception not derived from std::exception) - MfcTestRunner - QT based graphic test runner << DescPackaging: << Each upstream %v is its own libversion:( << Homepage: http://cppunit.sourceforge.net ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs