| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name sword |
|---|
| 7 | version 1.6.0 |
|---|
| 8 | revision 1 |
|---|
| 9 | categories textproc |
|---|
| 10 | maintainers nomaintainer |
|---|
| 11 | description cross-platform API/library for Bible software |
|---|
| 12 | long_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. |
|---|
| 17 | homepage http://www.crosswire.org/${name}/index.jsp |
|---|
| 18 | master_sites http://www.crosswire.org/ftpmirror/pub/${name}/source/v1.6/ |
|---|
| 19 | checksums md5 292ca38b2427168b19d629b48a428dde \ |
|---|
| 20 | sha1 ca1a4a902da806a6f653403c1c4648ad29f98358 \ |
|---|
| 21 | rmd160 5fe67b12d7849bd70d8a9d227993a07d6746d0f1 |
|---|
| 22 | platforms darwin |
|---|
| 23 | |
|---|
| 24 | depends_build port:autoconf \ |
|---|
| 25 | port:automake \ |
|---|
| 26 | port:libtool \ |
|---|
| 27 | port:pkgconfig |
|---|
| 28 | depends_lib port:curl \ |
|---|
| 29 | port:icu \ |
|---|
| 30 | port:openssl \ |
|---|
| 31 | port:zlib |
|---|
| 32 | |
|---|
| 33 | pre-configure { |
|---|
| 34 | system "cd ${worksrcpath} && env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh" |
|---|
| 35 | } |
|---|
| 36 | configure.args --with-zlib --with-conf --with-curl \ |
|---|
| 37 | --with-icu --without-clucene |
|---|
| 38 | |
|---|
| 39 | use_parallel_build yes |
|---|
| 40 | |
|---|
| 41 | destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d \ |
|---|
| 42 | ${destroot}${prefix}/share/${name}/modules |
|---|
| 43 | post-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 | |
|---|
| 54 | post-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 | |
|---|
| 63 | livecheck.type regex |
|---|
| 64 | livecheck.url http://www.crosswire.org/sword/software/swordapi.jsp |
|---|
| 65 | livecheck.regex {SWORD Engine / API v([0-9\.]+)} |
|---|