Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/devel
In directory vz-cvs-3.sog:/tmp/cvs-serv10023

Added Files:
        cppunit1.12.1.info 
Log Message:
sync. w/ 10.!7, validated on x86_64-darwin11


--- NEW FILE: cppunit1.12.1.info ---
Package: cppunit1.12.1
Version: 1.12.1
Revision: 1
GCC: 4.0
Maintainer: David Fang <[email protected]>
License: LGPL

# Dependencies:
Depends: %N-shlibs (=%v-%r)
BuildDepends: doxygen
BuildDependsOnly: True
Conflicts: cppunit, cppunit1.10.2
Replaces: cppunit, cppunit1.10.2

# Unpack Phase:
Source: mirror:sourceforge:cppunit/cppunit-%v.tar.gz
Source-MD5: bd30e9cf5523cdfc019b94f5e1d7fd19

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
  # 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/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
  file=include/cppunit/TextTestResult.h
  sed -i.orig -e '/virtual void print/a \
using TestResult::addFailure;' $file
  file=include/cppunit/extensions/ExceptionTestCaseDecorator.h
  sed -i.orig -e '/void checkException/s|\&e )|)|' $file
# patching tests (mostly unused args)
<<

# Compile Phase:
ConfigureParams: --mandir=%p/share/man --disable-static 
--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

InfoTest: <<
TestScript: <<
        #!/bin/sh -ev
        # reset CFLAGS/CXXFLAGS without erroring on unused args
        export CFLAGS="-g -O2 -W -Wall -Wno-unused -Werror"
        export CXXFLAGS="-g -O2 -W -Wall -Wno-unused -Werror"
        ./configure %c
        make -k check || exit 2
<<
<<
# Install Phase:
InstallScript: <<
        make install DESTDIR=%d
<<
DocFiles: AUTHORS BUGS COPYING NEWS README THANKS TODO

SplitOff: <<
 Package: %N-shlibs
 Files: lib/libcppunit-%v*.dylib
 Shlibs: %p/lib/libcppunit-%v.dylib 2.0.0 %n (>= 1.12.1-1)
 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:(
  Co-maintainer: Ben Burton <[email protected]>
<<
Homepage: http://cppunit.sourceforge.net


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to