source: trunk/dports/kde/koffice/Portfile @ 20203

Last change on this file since 20203 was 20203, checked in by takanori@…, 13 years ago

Version 1.5.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 20203 2006-10-27 18:31:35Z takanori@macports.org $
2
3#Synced with Fink, Version 1.5.2-1023
4
5PortSystem 1.0
6name            koffice
7version         1.5.2
8set kdeadmin    kde-admindir-252
9categories      kde
10maintainers     ben@macports.org takanori@macports.org
11description     KDE office suite. \
12                NB KDE sound does not work.
13long_description ${description}
14platforms       darwin
15homepage        http://www.koffice.org/
16master_sites    opendarwin::koffice152 \
17                opendarwin::admin \
18                http://www.opendarwin.org/~takanori/mirror/${name}/${version}_${revision}/:patch
19#               kde:stable/${name}-${version}/src
20#               http://ranger.befunk.com/fink/:admin
21use_bzip2       yes
22distname        ${name}-${version}
23set distpatch   ${name}-${version}_${revision}-tiger.patch
24distfiles       ${distname}.tar.bz2:koffice152 \
25                ${distpatch}:patch \
26                ${kdeadmin}.tar.bz2:admin
27depends_build   port:autoconf \
28                port:unsermake
29depends_lib     port:kdebase3 \
30                port:ImageMagick \
31                port:lcms \
32                port:libwpd \
33                port:mysql4 \
34                port:ruby \
35                port:wv2
36#               port:python24 \ can't be found. looking for .so
37#               port:postgresql8 \ can't be found. looking for .so
38
39checksums       ${distname}.tar.bz2 md5 cbe9deeb7c811a6bb5a954989b25c1f2 \
40                ${kdeadmin}.tar.bz2 md5 54a89925e71bd32f759c81b312ad0b9e \
41                ${name}-${version}_${revision}-panther.patch md5 a2cd086e3d5706304399b43ef9e50780 \
42                ${name}-${version}_${revision}-tiger.patch md5 4f567e63591b3c3cb04d972f5e589247
43
44extract.only    ${distname}.tar.bz2
45post-extract    { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
46
47patchfiles     
48patch           {
49                cd ${worksrcpath}
50                system "sed -e 's,@FINKPREFIX@,${prefix},g' ${distpath}/${distpatch} | patch -p1"
51                foreach file $patchfiles {
52                        system "sed -e 's,@FINKPREFIX@,${prefix},g' ${filespath}/${file} | patch -p1"
53                }
54                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;' admin/*"
55}
56post-patch      {
57                reinplace "s|/lib/freetype219||g" ${worksrcpath}/environment-helper.sh
58                reinplace "s|--with-ssl-dir=/usr|--with-ssl-dir=\$PREFIX|g" ${worksrcpath}/environment-helper.sh
59                reinplace "s|HOME=/tmp|HOME=${workpath}|g" ${worksrcpath}/environment-helper.sh
60                reinplace "s|/tmp/buildlog|${workpath}/buildlog|g" ${worksrcpath}/build-helper.sh
61                foreach file {CompileScript.sh InstallScript.sh} {
62                    file copy ${filespath}/${file} ${worksrcpath}
63                    reinplace "s|%p|${prefix}|g" ${worksrcpath}/${file}
64                    reinplace "s|%N|${name}|g" ${worksrcpath}/${file}
65                    reinplace "s|%v|${version}|g" ${worksrcpath}/${file}
66                    reinplace "s|%r|${revision}|g" ${worksrcpath}/${file}
67                    reinplace "s|%c|${configure.args}|g" ${worksrcpath}/${file}
68                    reinplace "s|%d|${destroot}|g" ${worksrcpath}/${file}
69                    reinplace "s|%i|${destroot}${prefix}|g" ${worksrcpath}/${file}
70                    file attributes ${worksrcpath}/${file} -permissions 0755
71                }
72}
73
74configure.args --enable-mysql --with-distribution='MacPorts/Mac OS X' --without-arts
75# (libpqxx is missing.)
76# --enable-pgsql --with-pgsqlincdir=${prefix}/include/pgsql8 --with-pgsqllibdir=${prefix}/lib/pgsql8 --with-pqxx-includes=${prefix}/include --with-pqxx-libraries=${prefix}/lib
77
78configure       {}
79build           { system "cd ${worksrcpath} && ./CompileScript.sh" }
80destroot        { system "cd ${worksrcpath} && ./InstallScript.sh" }
81
82post-destroot   {
83                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
84                xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.LIB INSTALL README ${destroot}${prefix}/share/doc/${name}
85}
86
87platform darwin 7 {
88                distfiles-delete        ${distpatch}:patch
89                set distpatch           ${name}-${version}_${revision}-panther.patch
90                distfiles-append        ${distpatch}:patch
91                post-patch      {
92#                               if {[variant_isset with-ruby]} {
93                                system "perl -pi -e \"s|-bundle|-bundle -bundle_loader /usr/lib/crt1.o|g\" ${worksrcpath}/admin/libtool.m4.in"
94#                               }
95                }
96}
Note: See TracBrowser for help on using the repository browser.