source: trunk/dports/kde/kdeutils3/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.9 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3#Synced with Fink, revision 1.23
4
5PortSystem 1.0
6name            kdeutils3
7version         3.5.10
8revision        1
9set kdeadmin    kde-admindir-1502
10categories      kde kde3
11maintainers     nomaintainer
12description     KDE utilities. \
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        kdeutils-${version}
24distfiles       ${distname}.tar.bz2:kde \
25                ${kdeadmin}.tar.bz2:admin
26dist_subdir     kde3
27depends_build   port:autoconf263 \
28                port:unsermake
29depends_lib     port:gmp \
30                port:kdebase3
31#               port:python24
32#               port:xmms
33
34checksums       ${distname}.tar.bz2 md5 038f94275f42df3cae89735506ffbc0b \
35                ${kdeadmin}.tar.bz2 md5 92a60282c1d81f38835ce7d495255cc3
36
37extract.only    ${distname}.tar.bz2
38post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
39
40patchfiles      kdeutils3.patch
41patch           {
42                foreach f $patchfiles {
43                    system "cd ${worksrcpath} && sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${f} | patch -p1"
44                }
45                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/*"
46}
47post-patch      {
48                reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
49                reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
50                reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
51                reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
52                foreach f {CompileScript.sh InstallScript.sh} {
53                    copy ${filespath}/${f} ${worksrcpath}
54                    reinplace "s|%p|${prefix}|g" ${worksrcpath}/${f}
55                    reinplace "s|%N|${name}|g" ${worksrcpath}/${f}
56                    reinplace "s|%v|${version}|g" ${worksrcpath}/${f}
57                    reinplace "s|%r|${revision}|g" ${worksrcpath}/${f}
58                    reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${f}
59                    reinplace "s|%d|${destroot}|g" ${worksrcpath}/${f}
60                    reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${f}
61                    file attributes ${worksrcpath}/${f} -permissions 0755
62                }
63                # disable ksim which depends on net-snmp which doesn't build
64                # on Mac OS X 10.4
65                delete ${worksrcpath}/ksim
66}
67
68configure.args  --with-distribution='MacPorts/Mac OS X' --without-arts
69
70use_configure       no
71
72use_parallel_build  yes
73build.env           MAKEFLAGS="-j${build.jobs}" AUTOCONF=autoconf263
74build.cmd           ./CompileScript.sh
75
76destroot.cmd        ./InstallScript.sh
77post-destroot   {
78                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
79                xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING INSTALL README ${destroot}${prefix}/share/doc/${name}
80}
81
82universal_variant       no
83
84livecheck.type  none
Note: See TracBrowser for help on using the repository browser.