Import bible-kjv 4.26.
bible-kjv (formerly Bible Retrieval System) is a text-retrieval program and user interface which is primarily designed to operate on the included text and concordance of the King James translation of the Bible, although it could, in principle, be used for any text. The search/browse engine allows searching and reading passages from scripture. Includes full concordance.
This commit is contained in:
parent
c3fe8f6e32
commit
5b29c1edec
43
misc/bible-kjv/Makefile
Normal file
43
misc/bible-kjv/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
|
||||
|
||||
COMMENT= Bible reading, browsing, and searching tool
|
||||
|
||||
DISTNAME= bible-kjv_4.26
|
||||
PKGNAME= ${DISTNAME:S/_/-/}
|
||||
CATEGORIES= misc
|
||||
|
||||
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c curses readline
|
||||
|
||||
MASTER_SITES= ftp://ftp.debian.org/debian/pool/main/b/bible-kjv/ \
|
||||
ftp://ftp.de.debian.org/debian/pool/main/b/bible-kjv/
|
||||
|
||||
WRKDIST= ${WRKDIR}/bible-kjv
|
||||
|
||||
MAKE_FLAGS= DEST=${PREFIX} \
|
||||
CFLAGS='${CFLAGS} -DDESTLIB=\"${PREFIX}/lib\"' \
|
||||
LDFLAGS='-lreadline -lcurses'
|
||||
|
||||
post-build:
|
||||
perl -i.bak -pe 's:/usr/lib:${PREFIX}/lib:g' ${WRKSRC}/bible.1
|
||||
cd ${WRKBUILD}; \
|
||||
${CC} ${CFLAGS} -o randverse ${WRKSRC}/debian/randverse.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/bible ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKBUILD}/bible.data ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKBUILD}/bible.data.conc ${PREFIX}/lib
|
||||
${INSTALL_MAN} ${WRKSRC}/bible.1 ${PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/randverse ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/debian/randverse.1 ${PREFIX}/man/man1
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
misc/bible-kjv/distinfo
Normal file
5
misc/bible-kjv/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (bible-kjv_4.26.tar.gz) = 7V9ZO+XMPWDt2ExhK6OTzw==
|
||||
RMD160 (bible-kjv_4.26.tar.gz) = fYLSZrsyL4iNAlKs6C9l9EPR8hI=
|
||||
SHA1 (bible-kjv_4.26.tar.gz) = kCK0tauRRyLcQJe5IvAiqURV2CY=
|
||||
SHA256 (bible-kjv_4.26.tar.gz) = BZCblamwhHrh6thfMNAQUDPcqIH2zLarMhLfa2dnpBw=
|
||||
SIZE (bible-kjv_4.26.tar.gz) = 2886741
|
12
misc/bible-kjv/patches/patch-makeconcfile_c
Normal file
12
misc/bible-kjv/patches/patch-makeconcfile_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-makeconcfile_c,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
|
||||
--- makeconcfile.c.orig Sun Sep 18 18:08:18 2011
|
||||
+++ makeconcfile.c Sun Sep 18 18:08:40 2011
|
||||
@@ -201,7 +201,7 @@ int main(int argc,char **argv)
|
||||
data_index = 0; /* The offset in the ref data pool of current entry */
|
||||
while (scanf( "%s", word) > 0) {
|
||||
/* Append string to word list */
|
||||
- if ((n=fputs( word, outfp )) <= 0)
|
||||
+ if ((n=fputs( word, outfp )) != 0)
|
||||
outerr(n);
|
||||
putc( 0, outfp );
|
||||
|
9
misc/bible-kjv/patches/patch-makeindex2
Normal file
9
misc/bible-kjv/patches/patch-makeindex2
Normal file
@ -0,0 +1,9 @@
|
||||
$OpenBSD: patch-makeindex2,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
|
||||
--- makeindex2.orig Sun Sep 18 17:39:32 2011
|
||||
+++ makeindex2 Sun Sep 18 17:39:37 2011
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
###############################################################################
|
||||
#
|
||||
# File: makeindex2
|
12
misc/bible-kjv/patches/patch-makeindex_c
Normal file
12
misc/bible-kjv/patches/patch-makeindex_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-makeindex_c,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
|
||||
--- makeindex.c.orig Sun Sep 18 17:41:45 2011
|
||||
+++ makeindex.c Sun Sep 18 17:41:59 2011
|
||||
@@ -94,7 +94,7 @@
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
FILE *fp;
|
||||
- long t;
|
||||
+ time_t t;
|
||||
long cur_line;
|
||||
long offset;
|
||||
char textbuff[TBSIZE];
|
6
misc/bible-kjv/pkg/DESCR
Normal file
6
misc/bible-kjv/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
bible-kjv (formerly Bible Retrieval System) is a text-retrieval
|
||||
program and user interface which is primarily designed to operate
|
||||
on the included text and concordance of the King James translation
|
||||
of the Bible, although it could, in principle, be used for any text.
|
||||
The search/browse engine allows searching and reading passages from
|
||||
scripture. Includes full concordance.
|
7
misc/bible-kjv/pkg/PLIST
Normal file
7
misc/bible-kjv/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/09/19 20:20:42 naddy Exp $
|
||||
@bin bin/bible
|
||||
@bin bin/randverse
|
||||
lib/bible.data
|
||||
lib/bible.data.conc
|
||||
@man man/man1/bible.1
|
||||
@man man/man1/randverse.1
|
Loading…
x
Reference in New Issue
Block a user