Ticket #20733: Portfile-konversation.diff

File Portfile-konversation.diff, 3.9 KB (added by nerdling (Jeremy Lavergne), 15 years ago)

patch was against an older version. this is updated and adds kdepimlibs4 to depends_lib

  • kde/konversation/Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem       1.0
     5PortGroup           kde4 1.0
    46
    57name             konversation
    6 version          1.1
    7 revision         1
    8 set kdeadmin     kde-admindir-1024
    9 categories       kde kde3
     8version             1.2-alpha6
    109maintainers      nomaintainer
    11 description      KDE IRC client.\
    12                  NB No KDE sound support.
     10description         KDE IRC client.
    1311long_description ${description}
    1412platforms        darwin
    1513homepage         http://konversation.kde.org/
    16 master_sites     http://download.berlios.de/${name} \
    17                  http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
    18                  http://ranger.befunk.com/fink/kde-admindir/:admin \
    19                  http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
    20                  http://www.southofheaven.net/befunk/kde-admindir/:admin
     14master_sites        http://download.berlios.de/${name}
    2115use_bzip2        yes
    2216distname         ${name}-${version}
    23 distfiles        ${distname}.tar.bz2 ${kdeadmin}.tar.bz2:admin
    24 depends_build    port:autoconf263 \
    25                  port:unsermake
    26 depends_lib      port:kdebase3 \
    27                  port:doxygen \
    28                  path:bin/dot:graphviz
     17depends_lib         port:kdelibs4 \
     18                    port:kdepimlibs4
    2919
    30 checksums        ${distname}.tar.bz2 md5 0d38a16747ab4f6549863de385cb551c \
    31                  ${kdeadmin}.tar.bz2 md5 d99491aa5d520fd1d70393a718019322
     20checksums        md5    1720cc7d03cfb808c666f8df9006573e
    3221
    33 extract.only     ${distname}.tar.bz2
    34 post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
    35 
    36 patchfiles
    37 patch       {
    38         foreach f $patchfiles {
    39             system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1"
    40         }
    41         system "perl -pi -e 's,-O2,-Os,g; s,doc/HTML,doc/kde,g; s,/usr/share/doc/packages/qt3/html,${prefix}/share/doc/qt3/html,g;' ${worksrcpath}/admin/*"
    42         system "echo \"KDE_ENABLE_HIDDEN_VISIBILITY\" >> ${worksrcpath}/configure.in.in"
    43 }
    44 
    45 post-patch      {
    46         reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
    47         reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
    48         reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
    49         reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
    50         foreach f {CompileScript.sh InstallScript.sh} {
    51             copy ${filespath}/${f} ${worksrcpath}
    52             reinplace "s|%p|${prefix}|g" ${worksrcpath}/${f}
    53             reinplace "s|%N|${name}|g" ${worksrcpath}/${f}
    54             reinplace "s|%v|${version}|g" ${worksrcpath}/${f}
    55             reinplace "s|%r|${revision}|g" ${worksrcpath}/${f}
    56             reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${f}
    57             reinplace "s|%d|${destroot}|g" ${worksrcpath}/${f}
    58             reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${f}
    59             file attributes ${worksrcpath}/${f} -permissions 0755
    60         }
    61 }
    62 
    63 configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
    64 
    65 use_configure       no
    66 
    67 use_parallel_build  yes
    68 build.env           MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263
    69 build.cmd           ./CompileScript.sh
    70 
    71 destroot.cmd        ./InstallScript.sh
    72 post-destroot   {
    73         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    74         xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL README TODO ${destroot}${prefix}/share/doc/${name}
    75 }
     22configure.args-append   ../${distname}