Ticket #17012: Portfile.diff

File Portfile.diff, 3.4 KB (added by rudloff@…, 12 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 87424 2011-11-21 00:36:43Z ryandesign@macports.org $
    2 PortSystem 1.0
    3 name            abiword
    4 version         2.4.5
    5 description     A word processor with gnome support.
    6 long_description        A word processor with gnome support.
    7 maintainers     nomaintainer
    8 categories      editors textproc aqua
    9 platforms       darwin
    10 homepage        http://www.abisource.com/
    11 master_sites    http://www.abisource.org/downloads/abiword/${version}/source \
    12                 http://www.nl.abisource.org/downloads/abiword/${version}/source
    13 checksums       md5 e018669a154164d31c768f773a1c95b4 \
    14                 sha1 bca02a8beb490246f785518fc82c6c557a77a88d \
    15                 rmd160 f0de27f97135f8fff9b4400b05d74a27eee348cd
    16 distname        abiword-${version}
    17 use_bzip2       yes
    18 
    19 if {![variant_isset use_source]} {
    20     default_variants    +use_binary
    21 }
    22 
    23 pre-fetch {
    24         if {! [variant_isset use_binary] && ! [variant_isset use_source]} {
    25                 return -code 1 "Please select either use_binary or use_source variant"
    26         }
    27 }
    28 
    29 variant use_binary conflicts use_source {
    30         distname AbiWord-${version}-10.2
    31         extract.suffix .dmg.gz
    32         master_sites    http://www.abisource.org/downloads/abiword/${version}/MacOSX \
    33                         http://www.nl.abisource.org/downloads/abiword/${version}/MacOSX \
    34                         http://os.cqu.edu.au/macosx/office/abiword
    35         checksums       md5 13d249d7f0181a5c44e7342b302b19ae
    36         use_bzip2       no
    37         extract.post_args > ${workpath}/${distname}.dmg
    38         post-extract {
    39                 file mkdir /tmp/${name}-${version}
    40                 system "hdiutil attach ${workpath}/${distname}.dmg -private -nobrowse -mountpoint /tmp/${name}-${version}"
    41         }
    42         patch {}
    43         use_configure   no
    44         build {}
    45         destroot {
    46                 file mkdir ${destroot}${applications_dir}
    47                 file copy /tmp/${name}-${version}/AbiWord.app ${destroot}${applications_dir}
    48         }
    49         post-destroot {
    50                 system "hdiutil detach /tmp/${name}-${version}"
    51                 file delete -force /tmp/${name}-${version}
    52         }
    53 }
    542
    55 variant use_source {
    56         depends_build   \
    57                 port:pkgconfig
    58 
    59         depends_lib     \
    60                 port:zlib \
    61                 port:libpng \
    62                 port:fribidi \
    63                 port:fontconfig \
    64                 port:ImageMagick
    65 
    66         patchfiles      \
    67                 configure.patch \
    68                 abi-detect-platform.m4.patch \
    69                 patch-wv-magick-png.c.diff
    70 
    71         configure.dir   ${worksrcpath}/abi
    72 
    73         build.dir       ${configure.dir}
    74         build.target
    75 
    76         configure.cppflags -I. -I${prefix}/include
     3PortSystem 1.0
    774
    78         configure.args  \
    79                 --enable-Cocoa \
    80                 --mandir=${prefix}/share/man \
    81                 --with-zlib=${prefix} \
    82                 --with-libpng=${prefix} \
    83                 --with-popt=${prefix} \
    84                 --without-epath \
    85                 --disable-gnome
     5name                                    abiword
     6version                         2.8.6
     7description                     A word processor with gnome support.
     8long_description   A word processor with gnome support.
     9maintainers             nomaintainer
     10categories                      editors textproc aqua
     11platforms                       darwin
     12homepage                                http://www.abisource.com/
     13master_sites            http://www.abisource.org/downloads/abiword/${version}/source \
     14                                                http://www.nl.abisource.org/downloads/abiword/${version}/source
     15checksums                               md5 f883b0a7f26229a9c66fd6a1a94381aa \
     16                                                sha1 998f69d038000b3fc027d4259548f02d67c8d0df \
     17                                                rmd160 caabab25d197f9553ea12376de36fc7f5a771a58
     18
     19depends_build           port:pkgconfig
     20
     21depends_lib                     port:zlib \
     22                                                port:libpng \
     23                                                port:fribidi \
     24                                                port:fontconfig \
     25                                                port:ImageMagick \
     26                                                port:wv
     27       
     28post-destroot {
     29    move ${destroot}/AbiWord.app ${destroot}${applications_dir}/AbiWord.app
    8630}