source: trunk/dports/kde/kdeartwork3/Portfile @ 57375

Last change on this file since 57375 was 57375, checked in by ryandesign@…, 10 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3#Synced with Fink, revision 1.22
4
5PortSystem 1.0
6name            kdeartwork3
7version         3.5.10
8revision        1
9set kdeadmin    kde-admindir-1502
10categories      kde kde3
11maintainers     nomaintainer
12description     KDE additional artwork. \
13                NB No KDE sound support.
14long_description ${description}
15platforms       darwin
16homepage        http://www.kde.org/
17master_sites    kde:stable/${version}/src/:kde \
18                http://ranger.users.finkproject.org/distfiles/kde-admindir/:admin \
19                http://ranger.befunk.com/fink/kde-admindir/:admin \
20                http://astrange.ithinksw.net/~astrange/ranger-fink/kde-admindir/:admin \
21                http://www.southofheaven.net/befunk/kde-admindir/:admin
22use_bzip2       yes
23distname        kdeartwork-${version}
24distfiles       ${distname}.tar.bz2:kde \
25                ${kdeadmin}.tar.bz2:admin
26dist_subdir     kde3
27depends_build   port:autoconf263 \
28                port:unsermake
29depends_lib     port:kdebase3
30#               port:xscreensaver
31
32checksums       ${distname}.tar.bz2 md5 6e6f089dc0f1dabb0f138641600d0b59 \
33                ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3
34
35extract.only    ${distname}.tar.bz2
36post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
37
38patchfiles     
39patch           {
40                foreach f $patchfiles {
41                    system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1"
42                }
43                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/*"
44}
45post-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
63configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
64
65use_configure       no
66
67use_parallel_build  yes
68build.env           MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263
69build.cmd           ./CompileScript.sh
70
71destroot.cmd        ./InstallScript.sh
72post-destroot   {
73                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
74                xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/${name}
75}
76
77universal_variant       no
78
79livecheck.type  none
Note: See TracBrowser for help on using the repository browser.