Ticket #38099: Portfile.diff
File Portfile.diff, 4.4 KB (added by cooljeanius (Eric Gallager), 12 years ago) |
---|
-
/opt/local/var/macports/sources/LocalPorts/kde4/krita/Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 5 PortGroup kde4 1.1 4 6 5 7 name krita 6 8 version 2.6.0 7 categories kde4 9 categories kde4 graphics 8 10 platforms darwin 9 license 11 license GPL 10 12 maintainers gmail.com:patrik.andersson.se 11 description Krita 2.6.0(without Vc)13 description Krita ${version} (without Vc) 12 14 long_description Krita is the full-featured free digital painting studio for \ 13 15 artists who want to create professional work from start to end. \ 14 16 Krita is used by comic book artists, illustrators, concept \ 15 17 artists, matte and texture painters and in the digital VFX \ 16 18 industry. 17 homepage 19 homepage http://www.krita.org 18 20 master_sites http://download.kde.org/stable/calligra-latest/ 19 21 20 checksums 21 22 checksums rmd160 579752fd844b7064f4386f22c7a36d02ee615fda \ 23 sha256 77e1257588856bf4b3924672c847c3c766e8d8819c23017ea24e141e4e9051cf 22 24 23 depends_lib port:kdelibs4 \ 24 port:kde4-runtime \ 25 port:eigen \ 26 port:qt4-mac \ 27 port:cmake \ 28 port:lcms \ 29 port:libpng \ 30 port:exiv2 25 # Some of these are drawn in as dependencies automatically by the kde4 portgroup, but I'll leave them all in anyway just in case 26 depends_lib-append port:kdelibs4 \ 27 port:kde4-runtime \ 28 port:eigen \ 29 port:qt4-mac \ 30 port:cmake \ 31 port:lcms \ 32 port:libpng \ 33 port:exiv2 31 34 35 # This is probably a bad idea; you should probably just let MacPorts extract into the normal spot 36 # However, I'll let it be in case you have a good reason for doing it this way. 32 37 extract { 33 mkdir -p $HOME/kde4/src 34 mkdir -p $HOME/kde4/build 35 mkdir -p $HOME/kde4/inst 36 mkdir -p $HOME/kde4/build/calligra 37 mv ${distfiles} $HOME/kde4/src/${distfiles} 38 cd $HOME/kde4/src/calligra 39 tar -x ${distfiles} 40 cd calligra 38 system "mkdir -p $HOME/kde4/src" 39 system "mkdir -p $HOME/kde4/build" 40 system "mkdir -p $HOME/kde4/inst" 41 system "mkdir -p $HOME/kde4/build/calligra" 42 system "mv ${distfiles} $HOME/kde4/src/${distfiles}" 43 system "cd $HOME/kde4/src/calligra" 44 system "tar -x ${distfiles}" 45 system "cd calligra" 41 46 } 42 47 48 # It would be better to do this by setting configure.args instead 43 49 configure { 44 cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst $HOME/kde4/src/calligra\45 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCREATIVEONLY=ON50 system -W $HOME/kde4/src/calligra "cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst \ 51 $HOME/kde4/src/calligra -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCREATIVEONLY=ON" 46 52 } 47 53 54 # It would be better to do this part with build.args, seeing as "make" is already the default build.cmd 48 55 build { 49 make -j3 56 system -W $HOME/kde4/src/calligra "make -j3" 50 57 } 51 58 52 test {} 59 # Putting this because of your use of $HOME 60 destroot.violate_mtree yes 53 61 54 62 destroot { 55 63 } 56 64 57 65 install { 58 make install 59 export KDEDIRS=/path/to/install:$KDEDIRS 60 export PATH=/path/to/install/bin:$PATH 61 export KDEHOME=/path/to/a/config/dir 62 launchctl load -w /Library/LaunchAgents/org.macports.kdecache.plist 63 launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist 64 kbuildsycoca4 66 # "make install" would normally be run during the destroot step; I'm not sure why you're skipping that 67 system "make install" 68 # export statements removed, they just pointed to placeholders 69 system "launchctl load -w /Library/LaunchAgents/org.macports.kdecache.plist" 70 system "launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist" 71 system "kbuildsycoca4" 65 72 } 66 73 74 # This is probably a bad idea, too. Although I can see why you're doing it, 75 # since you're installing stuff directly instead of archiving it from the destroot. 76 # (It's still a bad idea though) 67 77 activate {} 68 78 69 79