Ticket #45192: patch-Portfile-kmymoney.diff

File patch-Portfile-kmymoney.diff, 4.3 KB (added by NicosPavlov, 10 years ago)
  • Portfile

     
    11# -*- 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
    22# $Id$
    33
     4#Port made obsolete on 2014/09/28
    45PortSystem        1.0
    56
    67name              kmymoney
    78version           1.0.5
    8 revision          6
     9revision          7
    910
    10 categories        kde finance
    11 maintainers       mk pixilla
    12 platforms         darwin
    13 license           GPL-2+
     11replaced_by       kmymoney4
    1412
    15 description       a personal finance manager
    16 long_description  KMyMoney is the personal finance manager for KDE. \
    17                   It operates in a similar way to Microsoft Money and \
    18                   Quicken, it supports different account types, categorisation \
    19                   of expenses and incomes, reconciliation of bank accounts, \
    20                   QIF import/export, multiple currencies and initial online \
    21                   banking support. \
    22                   Released under the GNU General Public License. \
    23                   KMyMoney is free software. \
    24                   \
    25                   NB: This port contains a starter .app which is located in \
    26                   Applications/MacPorts and ensures that permissions of .kde \
    27                   directory are set properly to run kmymoney.
     13platforms        darwin
     14maintainers      nomaintainer
     15supported_archs  noarch
     16description      this port is only a stub and has been made obsolete by ${replaced_by}
     17default long_description ${description}
    2818
    29 homepage          http://kmymoney2.sourceforge.net/index-home.html
    30 master_sites      sourceforge:kmymoney2
     19homepage        http://www.macports.org/
    3120
    32 livecheck.type    regex
    33 livecheck.url     http://sourceforge.net/projects/kmymoney2/files/KMyMoney/
    34 livecheck.regex   "(1\\.0\\.\\d+)"
     21archive_sites
     22distfiles
    3523
    36 distname          kmymoney2-${version}
    37 use_bzip2         yes
    38 checksums         md5     7be750718277ac7c577c574c712f53a2 \
    39                   sha1    dc496bb95353f0254125faa1de37b1431af06f1e \
    40                   rmd160  14a468b54335bd753cae0bc531ca648275cd1bfd
    41 
    42 depends_build     port:libtool \
    43                   port:makeicns \
    44                   port:pkgconfig
    45 
    46 depends_lib       port:kdelibs3 \
    47                   port:libofx \
    48                   port:opensp
    49 
    50 # aqbanking and kdelibs3 aren't universal
    51 universal_variant no
    52 
    53 configure.cppflags-append  "-L${prefix}/lib"
    54 configure.cflags-append    "-L${prefix}/lib"
    55 configure.ldflags-append   "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
    56 configure.env     MKDIR_P="mkdir -p" \
    57                   QTDIR=${prefix}/lib/qt3 \
    58                   HOME=${worksrcpath}
    59 configure.args    --with-qt-dir=${prefix}/lib/qt3 \
    60                   --without-arts \
    61                   --enable-mac \
    62                   --enable-ofxbanking
    63 
    64 variant no_ofx description {Without support for OFX} {
    65     configure.args-delete \
    66                   --enable-ofxbanking
     24pre-configure {
     25    ui_error "KDE3 is considered obsolete, and is being replaced by KDE4. Consequently, ${subport} has been made obsolete by the port ${replaced_by}. Please install ${replaced_by} instead.
     26To do this, it is required to fully uninstall KDE3 first, to then install KDE4 by running
     27sudo port uninstall --follow-dependents kdelibs3
     28WARNING: By running this command, all KDE3 ports will be uninstalled. Please ensure that there are replacements for all the programs you are using."
     29    return -code error "obsolete port"
    6730}
    6831
    69 post-configure {
    70     ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool
    71     xinstall ${filespath}/KMyMoney.applescript ${worksrcpath}
    72     reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/KMyMoney.applescript
    73 }
    74 
    75 patchfiles        patch_kmymoney2-plugins-viewinterface.h.diff
    76 
    77 build.env         HOME=${worksrcpath}
    78 
    79 post-destroot {
    80     system "osacompile -o ${destroot}${applications_dir}/KMyMoney.app ${worksrcpath}/KMyMoney.applescript"
    81     system "makeicns -in ${worksrcpath}/kmymoney2/hi128-app-kmymoney2.png -out ${destroot}${applications_dir}/KMyMoney.app/Contents/Resources/applet.icns"
    82 }
     32livecheck.type  none