a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 20474 2006-11-03 15:30:14Z blair@macports.org $
PortSystem 1.0
name brs
version 4.03
revision 1
categories textproc
platforms darwin
maintainers nomaintainer@macports.org
description An interactive King James Bible
long_description Bible Retrieval System (BRS) consists of a textual \
database of the Authorized ("King James") Version of the Old and \
New Testaments, a set of libraries for finding and retrieving \
text, and a program ("bible") which uses the libraries to retrieve \
Bible passages given references on the command line or from \
standard input.
homepage http://mirrors.playboy.com/misc/
master_sites http://mirrors.playboy.com/misc/:bib \
http://www.unknown.nu/ports/:bib \
ftp://mirrors.playboy.com/misc/:bib \
freebsd:bib \
http://www.ibiblio.org/pub/packages/irc/eggdrop/users/bass/:egg
distfiles bible.data.tar.bz2:bib bible.tar.bz2:bib bible_brs.tcl.gz:egg
checksums bible.data.tar.bz2 md5 03eac0c7922a8190a5077ac65746c30b \
bible.tar.bz2 09ac9fe31a9ada1bcb91a16275243761 \
bible_brs.tcl.gz md5 1bcbd7305dd6fe872d2c2087d7bd9790
use_bzip2 yes
patchfiles patch-Makefile patch-bible.1 patch-brl.c patch-tsl.c
pre-extract {
file mkdir ${worksrcpath}
file copy ${distpath}/bible_brs.tcl.gz ${worksrcpath}
system "cd ${worksrcpath} && gunzip bible_brs.tcl.gz"
}
extract.only bible.data.tar.bz2 bible.tar.bz2
extract.dir ${worksrcpath}
post-patch {
reinplace "s|__PREFIX__|${prefix}|g" \
${worksrcpath}/brl.c ${worksrcpath}/bible.1
reinplace "s|/usr/home/users/bass/eggdrop/bible|${prefix}/bin/bible|g" \
${worksrcpath}/bible_brs.tcl
}
use_configure no
build.target
build.args PREFIX=${prefix}
destroot.destdir PREFIX=${destroot}${prefix}
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/eggdrop/scripts
xinstall -m 644 ${worksrcpath}/bible_brs.tcl \
${destroot}${prefix}/share/eggdrop/scripts/
}
platform darwin 8 {
build.args-append LD=/usr/bin/gcc-4.0 CC=/usr/bin/gcc-4.0
}