Ticket #12686: par2-0.4_2.diff

File par2-0.4_2.diff, 3.1 KB (added by nox@…, 17 years ago)
  • files/patch-commandline_cpp

     
    1 --- commandline.cpp~    Tue Jun 24 09:11:02 2003
    2 +++ commandline.cpp     Tue Nov  4 19:28:09 2003
    3 @@ -27,6 +27,8 @@
    4  #endif
    5  #endif
    6  
    7 +#define stricmp(s1,s2) strcasecmp(s1,s2)
    8 +
    9  CommandLine::ExtraFile::ExtraFile(void)
    10  : filename()
    11  , filesize(0)
  • files/patch-par2repairer_cpp

     
    1 --- par2repairer.cpp~   Mon May 26 14:01:26 2003
    2 +++ par2repairer.cpp    Tue Nov  4 19:38:53 2003
    3 @@ -27,6 +27,8 @@
    4  #endif
    5  #endif
    6  
    7 +#define stricmp(s1,s2) strcasecmp(s1,s2)
    8 +
    9  Par2Repairer::Par2Repairer(void)
    10  {
    11    firstpacket = true;
  • Portfile

     
    11# $Id$
    22
    33PortSystem        1.0
     4
    45name              par2
    56version           0.4
    6 revision          1
     7revision          2
    78description       Parchive: Parity Archive Volume Set for data recovery
     9
    810long_description  Parchive takes .par files and can regenerate missing data \
    911                  based upon a Reed-Soloman Code. This is useful for \
    1012                  restoring missing pieces of a multi-part archive like the \
    1113                  kinds used on Usenet. Version 2 does not require \
    1214                  like-sized pieces, so it is useful for many more kinds of \
    1315                  data recovery.
     16
    1417maintainers       julian@jabber.org
    1518categories        archivers
    1619platforms         darwin
    1720homepage          http://parchive.sourceforge.net/
    1821master_sites      sourceforge:parchive
    19 checksums         md5 1551b63e57e3c232254dc62073b723a9
     22
     23checksums         md5 1551b63e57e3c232254dc62073b723a9 \
     24                  sha1 2fcdc932b5d7b4b1c68c4a4ca855ca913d464d2f \
     25                  rmd160 e98dc84fa7a4304b8d71c1d373fdce0bca1e6290
     26
    2027distname          par2cmdline-${version}
     28
    2129configure.args    --mandir=${prefix}/share/man
    22 configure.cppflags-append "-L${prefix}/lib"
    23 configure.cflags        "-no-cpp-precomp -flat_namespace -undefined suppress"
    2430
    25 platform darwin 8 powerpc {
    26     configure.compiler  gcc-3.3
    27     patchfiles        patch-commandline_cpp patch-par2repairer_cpp
     31test.run          yes
     32test.target       check
     33
     34post-destroot {
     35    set docdir ${prefix}/share/doc/${name}-${version}
     36    xinstall -d ${destroot}${docdir}
     37    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING README ROADMAP \
     38        ${destroot}${docdir}
    2839}
    2940
    30 platform darwin 8 i386 {
    31     patchfiles        patch-commandline_cpp patch-par2repairer_cpp patch-reedsolomon_cpp
     41platform darwin 8 {
     42    patchfiles  patch-reedsolomon_cpp
    3243}
    3344
    3445platform darwin 9 {
    35     patchfiles        patch-commandline_cpp patch-par2repairer_cpp patch-reedsolomon_cpp
     46    patchfiles  patch-reedsolomon_cpp
    3647}
     48
     49livecheck.distname  par2cmdline
     50