Ticket #22639: Portfile

File Portfile, 2.6 KB (added by martin@…, 15 years ago)

Updated Portfile for sword 1.6.0

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            sword
7version         1.6.0
8revision        1
9categories      textproc
10maintainers     nomaintainer
11description     cross-platform API/library for Bible software
12long_description    The SWORD Project is an open source, cross-platform \
13                    (Linux, Windows, Solaris, etc.) API/library for \
14                    Bible software with a constantly growing list of \
15                    front-ends (GUI, textmode, web-based, etc.) and a \
16                    library of over 200 text modules.
17homepage        http://www.crosswire.org/${name}/index.jsp
18master_sites    http://www.crosswire.org/ftpmirror/pub/${name}/source/v1.6/
19checksums       md5 292ca38b2427168b19d629b48a428dde \
20                sha1 ca1a4a902da806a6f653403c1c4648ad29f98358 \
21                rmd160 5fe67b12d7849bd70d8a9d227993a07d6746d0f1
22platforms       darwin
23
24depends_build   port:autoconf \
25                port:automake \
26                port:libtool \
27                port:pkgconfig
28depends_lib     port:curl \
29                port:icu \
30                port:openssl \
31                port:zlib
32
33pre-configure {
34    system "cd ${worksrcpath} && env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh"
35}
36configure.args  --with-zlib --with-conf --with-curl \
37                --with-icu --without-clucene
38
39use_parallel_build yes
40
41destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d \
42                  ${destroot}${prefix}/share/${name}/modules
43post-destroot {
44    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
45    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
46
47    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
49    copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/
50    delete ${destroot}${prefix}/share/${name}/mods.d/globals.conf
51    move ${destroot}${prefix}/etc/sword.conf ${destroot}${prefix}/etc/sword.conf.sample
52}
53
54post-activate {
55    if {![file exists ${prefix}/share/${name}/mods.d/globals.conf]} {
56        copy ${prefix}/share/doc/${name}/samples/mods.d/globals.conf ${prefix}/share/${name}/mods.d/
57    }
58    if {![file exists ${prefix}/etc/sword.conf]} {
59        copy ${prefix}/etc/sword.conf.sample ${prefix}/etc/sword.conf
60    }
61}
62
63livecheck.type  regex
64livecheck.url   http://www.crosswire.org/sword/software/swordapi.jsp
65livecheck.regex {SWORD Engine / API v([0-9\.]+)}