Ticket #20733: konversation.patch

File konversation.patch, 3.7 KB (added by jeremy.laine@…, 15 years ago)
  • dports/kde/konversation/Portfile

    diff --git a/dports/kde/konversation/Portfile b/dports/kde/konversation/Portfile
    index 97d5d68..38f544a 100644
    a b  
    11# $Id$
    22
    33PortSystem       1.0
     4PortGroup        kde4   1.0
    45
    56name             konversation
    6 version          1.1
    7 set kdeadmin     kde-admindir-1024
     7version          1.2-alpha6
    88categories       kde
    99maintainers      nomaintainer
    10 description      KDE IRC client.\
    11                  NB No KDE sound support.
     10description      KDE IRC client.
    1211long_description ${description}
    1312platforms        darwin
    1413homepage         http://konversation.kde.org/
    15 master_sites     http://download.berlios.de/${name} \
    16                  http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
    17                  http://ranger.befunk.com/fink/kde-admindir/:admin \
    18                  http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
    19                  http://www.southofheaven.net/befunk/kde-admindir/:admin
     14master_sites     http://download.berlios.de/${name}
    2015use_bzip2        yes
    2116distname         ${name}-${version}
    22 distfiles        ${distname}.tar.bz2 ${kdeadmin}.tar.bz2:admin
    23 depends_build    port:autoconf \
    24                  port:unsermake
    25 depends_lib      port:kdebase3 \
    26                  port:doxygen \
    27                  path:bin/dot:graphviz
     17depends_lib      port:kdelibs4
    2818
    29 checksums        ${distname}.tar.bz2 md5 0d38a16747ab4f6549863de385cb551c \
    30                  ${kdeadmin}.tar.bz2 md5 d99491aa5d520fd1d70393a718019322
     19checksums        md5 1720cc7d03cfb808c666f8df9006573e
    3120
    32 extract.only     ${distname}.tar.bz2
    33 post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
     21configure.args-append   ../${distname}
    3422
    35 patchfiles
    36 patch       {
    37         foreach file $patchfiles {
    38             system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${file} | patch -p1"
    39         }
    40         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/*"
    41         system "echo \"KDE_ENABLE_HIDDEN_VISIBILITY\" >> ${worksrcpath}/configure.in.in"
    42 }
    43 
    44 post-patch      {
    45         reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
    46         reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
    47         reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
    48         reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
    49         foreach file {CompileScript.sh InstallScript.sh} {
    50             file copy ${filespath}/${file} ${worksrcpath}
    51             reinplace "s|%p|${prefix}|g" ${worksrcpath}/${file}
    52             reinplace "s|%N|${name}|g" ${worksrcpath}/${file}
    53             reinplace "s|%v|${version}|g" ${worksrcpath}/${file}
    54             reinplace "s|%r|${revision}|g" ${worksrcpath}/${file}
    55             reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${file}
    56             reinplace "s|%d|${destroot}|g" ${worksrcpath}/${file}
    57             reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${file}
    58             file attributes ${worksrcpath}/${file} -permissions 0755
    59         }
    60 }
    61 
    62 configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
    63 
    64 use_configure       no
    65 use_parallel_build  yes
    66 
    67 build           { system "cd ${worksrcpath} && MAKEFLAGS=\"-j ${build.jobs}\" ./CompileScript.sh" }
    68 
    69 destroot    { system "cd ${worksrcpath} && ./InstallScript.sh" }
    70 
    71 post-destroot   {
    72         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    73         xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL README TODO ${destroot}${prefix}/share/doc/${name}
    74 }