Ticket #23910: siag-3.6.1-2.diff

File siag-3.6.1-2.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    33PortSystem                  1.0
    44
    55name                        siag
    6 version                     3.6.0
     6version                     3.6.1
    77description                 Siag Office is a tightly integrated, free office package.
    88long_description            Siag Office is a tightly integrated, free office package. \
    99                            It consists of the spreadsheet Siag, the word processor PW, \
     
    1414platforms                   darwin
    1515homepage                    http://siag.nu/
    1616master_sites                ${homepage}/pub/siag/
    17 checksums                   md5     bb7bb66dc9d3659fd11cdbac61ea6e13
     17
     18checksums                   md5     3d00dda22209327bb907ba78850c797f \
     19                            sha1    5d47e0ee2562f41492a453eef75c0638369bc14d \
     20                            rmd160  1779b1384956ab6c786de03d6babb21e47cd0e9f
     21
    1822depends_lib                 port:neXtaw \
    1923                            port:mowitz \
    2024                            port:XawM
     25
     26pre-extract {
     27    # siag 3.6.1 (at least) includes both Exec.c and exec.c in the xfiler directory.
     28    # On case-insensitive filesystems, the latter overwrites the former.
     29    # Therefore, manually extract the former and rename it.
     30    system "cd ${workpath} && ${extract.cmd} ${extract.pre_args} ${distpath}/${distfiles} ${extract.post_args} ${distname}/xfiler/Exec.c"
     31    file rename ${worksrcpath}/xfiler/Exec.c ${worksrcpath}/xfiler/Eexec.c
     32}
     33
    2134patchfiles                  patch-oledecod.c \
    2235                            patch-fileio_xls.c
     36
     37post-patch {
     38    reinplace {s|Exec\.|Eexec.|g} ${worksrcpath}/xfiler/Makefile.in
     39}
     40
    2341configure.cppflags-append   -L${prefix}/lib
    2442
    2543pre-configure {
     
    2745        ${worksrcpath}/stocks/currency.c \
    2846        ${worksrcpath}/stocks/lists.c \
    2947        ${worksrcpath}/stocks/history.c \
    30         ${worksrcpath}/stocks/stocks.c \
    31         ${worksrcpath}/antiword/antiword.h
     48        ${worksrcpath}/stocks/stocks.c
    3249}