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

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

Version 1.6.0.

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