source: trunk/dports/textproc/sword/Portfile @ 106554

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

icu: update to 51.2, revbump port echo depends:icu

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
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 106554 2013-05-30 23:03:55Z cal@macports.org $
3
4PortSystem      1.0
5
6name            sword
7version         1.6.2
8revision        5
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      textproc
11maintainers     nomaintainer
12license         GPL-2
13description     cross-platform API/library for Bible software
14long_description    The SWORD Project is an open source, cross-platform \
15                    (Linux, Windows, Solaris, etc.) API/library for \
16                    Bible software with a constantly growing list of \
17                    front-ends (GUI, textmode, web-based, etc.) and a \
18                    library of over 200 text modules.
19homepage        http://www.crosswire.org/${name}/index.jsp
20master_sites    http://www.crosswire.org/ftpmirror/pub/${name}/source/v${branch}/
21checksums       md5     a7dc4456e20e915fec46d774b690e305 \
22                sha1    d4f3b924ba6f78b436a33d4819c76f766e4551f8 \
23                rmd160  e85230c007782c526157a5650f3e5c1c27b60ea6
24platforms       darwin
25
26depends_build   port:autoconf \
27                port:automake \
28                port:libtool \
29                port:pkgconfig
30depends_lib     port:curl \
31                port:icu \
32                port:openssl \
33                port:zlib
34
35patchfiles      patch-automake-1.13.diff \
36                patch-curl-types.diff
37
38# fails to build with clang, probably incorrect code
39# ../include/multimapwdef.h:22:7: error: use of undeclared identifier 'find'
40# llvm-gcc-4.2 actually hangs
41if {${configure.compiler} == "clang" || ${configure.compiler} == "llvm-gcc-4.2"} {
42    configure.compiler gcc-4.2
43    if {![file executable ${configure.cc}]} {
44        depends_build-append port:apple-gcc42
45        configure.compiler apple-gcc-4.2
46    }
47}
48
49pre-configure {
50    system "cd ${worksrcpath} && env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh"
51}
52configure.args  --with-zlib --with-conf --with-curl \
53                --with-icu --without-clucene
54
55use_parallel_build yes
56
57destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d \
58                  ${destroot}${prefix}/share/${name}/modules
59post-destroot {
60    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
61    xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
62
63    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
64    xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
65    copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/
66    delete ${destroot}${prefix}/share/${name}/mods.d/globals.conf
67    move ${destroot}${prefix}/etc/sword.conf ${destroot}${prefix}/etc/sword.conf.sample
68}
69
70post-activate {
71    if {![file exists ${prefix}/share/${name}/mods.d/globals.conf]} {
72        copy ${prefix}/share/doc/${name}/samples/mods.d/globals.conf ${prefix}/share/${name}/mods.d/
73    }
74    if {![file exists ${prefix}/etc/sword.conf]} {
75        copy ${prefix}/etc/sword.conf.sample ${prefix}/etc/sword.conf
76    }
77}
78
79livecheck.type  regex
80livecheck.url   http://www.crosswire.org/sword/software/swordapi.jsp
81livecheck.regex {SWORD Engine / API v([0-9\.]+)}
Note: See TracBrowser for help on using the repository browser.