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

Last change on this file since 7183 was 7183, checked in by rshaw, 16 years ago

New port for Sword 1.5.7

The SWORD Project is an open source, cross-platform (Linux, Windows, Solaris,
etc.) API/library for Bible software with a constantly growing list of
front-ends (GUI, textmode, web-based, etc.) and a library of over 200 text
modules.

Submitted by: rshaw

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1# $Id: Portfile,v 1.1 2004/05/24 03:53:08 rshaw Exp $
2PortSystem              1.0
3
4name                    sword
5version                 1.5.7
6categories              textproc
7maintainers             rshaw@opendarwin.org
8description             cross-platform API/library for Bible software
9long_description        The SWORD Project is an open source, cross-platform \
10                                        (Linux, Windows, Solaris, etc.) API/library for \
11                                        Bible software with a constantly growing list of \
12                                        front-ends (GUI, textmode, web-based, etc.) and a \
13                                        library of over 200 text modules.
14homepage                http://www.crosswire.org/${name}/index.jsp
15master_sites    http://www.crosswire.org/ftpmirror/pub/${name}/source/v1.5/
16checksums               md5 369f09068839c646aeab691c63a40d67
17
18depends_lib             bin:autoconf:autoconf \
19                                bin:automake:automake \
20                                bin:pkg-config:pkgconfig \
21                                lib:libcurl.2:curl \
22                                lib:libssl.0.9:openssl \
23                                lib:libz.1:zlib
24
25patchfiles              patch-autogen.sh \
26                                patch-configure.ac \
27                                patch-untgz.c
28
29pre-configure {
30        system "cd ${worksrcpath} && ./autogen.sh"
31}
32configure.args  --with-zlib --with-conf --with-curl \
33                                --without-icu --without-lucene
34
35post-destroot {
36        cd ${worksrcpath}/samples/mods.d
37        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
38        xinstall -m 0644 globals.conf ${destroot}${prefix}/share/${name}/mods.d
39
40        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
41        system "touch ${destroot}${prefix}/share/${name}/modules/.turd"
42
43        cd ${worksrcpath}
44        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
45        xinstall -m 0644 README ${destroot}${prefix}/share/doc/${name}
46        xinstall -m 0644 INSTALL ${destroot}${prefix}/share/doc/${name}
47        xinstall -m 0644 LICENSE ${destroot}${prefix}/share/doc/${name}
48        foreach dir [exec find samples -type d] {
49                xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/${dir}
50        }
51        foreach file [exec find samples -type f] {
52                xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}/${file}
53        }
54}
55
Note: See TracBrowser for help on using the repository browser.