source: trunk/dports/kde/kdeutils3/Portfile @ 95829

Last change on this file since 95829 was 95829, checked in by jmr@…, 7 years ago

kdeutils3: license

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