source: trunk/dports/textproc/brs/Portfile

Last change on this file was 81739, checked in by jmr@…, 6 years ago

brs: fix checksums

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 81739 2011-08-04 17:03:35Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    brs
6version                 4.03
7revision                1
8categories              textproc
9platforms               darwin
10maintainers             nomaintainer
11description             An interactive King James Bible
12long_description        Bible Retrieval System (BRS) consists of a textual \
13                        database of the Authorized ("King James") Version of the Old and \
14                        New Testaments, a set of libraries for finding and retrieving \
15                        text, and a program ("bible") which uses the libraries to retrieve \
16                        Bible passages given references on the command line or from \
17                        standard input.
18
19homepage                http://mirrors.playboy.com/misc/
20master_sites    http://mirrors.playboy.com/misc/:bib \
21                                http://www.unknown.nu/ports/:bib \
22                                ftp://mirrors.playboy.com/misc/:bib \
23                                freebsd:bib \
24                                http://www.ibiblio.org/pub/packages/irc/eggdrop/users/bass/:egg
25distfiles               bible.data.tar.bz2:bib bible.tar.bz2:bib bible_brs.tcl.gz:egg
26checksums               bible.data.tar.bz2 md5 03eac0c7922a8190a5077ac65746c30b \
27                                bible.tar.bz2 md5 09ac9fe31a9ada1bcb91a16275243761 \
28                                bible_brs.tcl.gz md5 1bcbd7305dd6fe872d2c2087d7bd9790
29use_bzip2               yes
30patchfiles              patch-Makefile patch-bible.1 patch-brl.c patch-tsl.c
31
32pre-extract {
33        file mkdir ${worksrcpath}
34        file copy ${distpath}/bible_brs.tcl.gz ${worksrcpath}
35        system "cd ${worksrcpath} && gunzip bible_brs.tcl.gz"
36}
37extract.only    bible.data.tar.bz2 bible.tar.bz2
38extract.dir             ${worksrcpath}
39
40post-patch {
41        reinplace "s|__PREFIX__|${prefix}|g" \
42                ${worksrcpath}/brl.c ${worksrcpath}/bible.1
43        reinplace "s|/usr/home/users/bass/eggdrop/bible|${prefix}/bin/bible|g" \
44                ${worksrcpath}/bible_brs.tcl
45}
46
47use_configure   no
48
49build.target
50build.args              PREFIX=${prefix} LD=${configure.cc} CC=${configure.cc}
51
52destroot.destdir        PREFIX=${destroot}${prefix}
53post-destroot {
54        xinstall -m 755 -d ${destroot}${prefix}/share/eggdrop/scripts
55        xinstall -m 644 ${worksrcpath}/bible_brs.tcl \
56                ${destroot}${prefix}/share/eggdrop/scripts/
57}
Note: See TracBrowser for help on using the repository browser.