Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 04:38:21 -0800 (PST)
From:      Willem van Engen <wvengen@stack.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/32750: Update port: misc/sword-modules 
Message-ID:  <200112121238.fBCCcLY73257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         32750
>Category:       ports
>Synopsis:       Update port: misc/sword-modules
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 12 04:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Willem van Engen
>Release:        4.4-STABLE i386
>Organization:
>Environment:
>Description:
Modules for the sword bible framework.
Changes:
- the 'fetch' target behaved strangely; just type make and select a module that's not in the distfiles. You have to run make twice to get it installed. I'm not sure the problem is solved now for all possible systems, but it should be better.
- updated module lists
- did a 'touch distinfo' to get rid of the no-distfile messages during fetch
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	misc/sword-modules
#	misc/sword-modules/scripts
#	misc/sword-modules/scripts/configure.swmods
#	misc/sword-modules/scripts/bibles.list
#	misc/sword-modules/scripts/lexicons.list
#	misc/sword-modules/scripts/cults.list
#	misc/sword-modules/scripts/comments.list
#	misc/sword-modules/scripts/devotionals.list
#	misc/sword-modules/pkg-descr
#	misc/sword-modules/Makefile
#	misc/sword-modules/pkg-comment
#	misc/sword-modules/pkg-plist
#	misc/sword-modules/distinfo
#
echo c - misc/sword-modules
mkdir -p misc/sword-modules > /dev/null 2>&1
echo c - misc/sword-modules/scripts
mkdir -p misc/sword-modules/scripts > /dev/null 2>&1
echo x - misc/sword-modules/scripts/configure.swmods
sed 's/^X//' >misc/sword-modules/scripts/configure.swmods << 'END-of-misc/sword-modules/scripts/configure.swmods'
X#!/bin/sh
X# $FreeBSD$
X
XSED=${SED:-/usr/bin/sed}
XMKTEMP=${MKTEMP:-/usr/bin/mktemp}
XAWK=${AWK:-/usr/bin/awk}
XBASENAME=${BASENAME:-/usr/bin/basename}
XCAT=${CAT:-/bin/cat}
XWC=${WC:-/usr/bin/wc}
X
Xdialog_main() {
X	tmpfile=`${MKTEMP} -t menulistM`
X
X	choosedone=0;
X	while [ $choosedone != 1 ]; do
X		/usr/bin/dialog --title "SWORD Modules" --clear \
X			--menu "\n\
XPlease select desired modules in each section:" -1 -1 6 \
XBibles		"Select biblical texts" \
XLexicons	"Select lexicons / dictionaries" \
XComments	"Select commentaries" \
XDevotionals	"Select daily devotionals" \
XCults		"Select cults / unorthodox / questionnable modules" \
XDone		"Done" \
X2> $tmpfile
X
X		retval=${?}
X
X		case $retval in
X		0)
X			chosen=`${CAT} $tmpfile`
X
X			case $chosen in
X			"Bibles")
X				dialog_select ${SCRIPTDIR}/bibles.list selbibles "$selbibles"
X				;;
X
X			"Lexicons")
X				dialog_select ${SCRIPTDIR}/lexicons.list sellexicons "$sellexicons"
X				;;
X
X			"Comments")
X				dialog_select ${SCRIPTDIR}/comments.list selcomments "$selcomments"
X				;;
X
X			"Devotionals")
X				dialog_select ${SCRIPTDIR}/devotionals.list seldevotionals "$seldevotionals"
X				;;
X
X			"Cults")
X				dialog_select ${SCRIPTDIR}/cults.list selcults "$selcults"
X				;;
X
X			"Done")
X				choosedone=1
X				;;
X
X			*)
X				echo "Unknown option: $chosen"
X				rm -f $tmpfile
X				exit 1
X				;;
X			esac
X			;;
X
X		1)	echo "Cancelled"
X			rm -f $tmpfile
X			exit 1
X			;;
X		*)
X			rm -f $tmpfile
X			exit 1
X			;;
X		esac
X	done
X
X	rm -f $tmpfile
X}
X
Xdialog_select() {
X	modtype=`${BASENAME} $1|${SED} s/\.list.*$//`
X	tmpf=`${MKTEMP} -t dlgscript`
X	selectlist=`${MKTEMP} -t selectlist`
X	prem=`${WC} -l $1 | ${AWK} '{print $1;}`
X	m=${prem:-16}
X	if [ $m -gt 16 ]; then m=16; fi
X
X	echo -n "/usr/bin/dialog --title \"SWORD modules: ${modtype}\" --clear \
X--checklist \"\n  Please select desired ${modtype} modules:\" -1 -1 $m " >$tmpf
X
X	echo -n `${CAT} $1|${AWK} --assign selmods="$3" '
XBEGIN {
X	FS="\t";
X	split(selmods,smatmp," ");
X	for (i in smatmp) {
X		selmodarray[smatmp[i]]=1;
X	}
X}
X
X{
X	if ($1 in selmodarray) ison="ON"; else ison="OFF"
X	printf("%s %s %s ",$1,$2,ison);
X}'` >>$tmpf
X
X	echo ' 2> ${selectlist} ' >>$tmpf
X
X	. $tmpf
X
X	retval=${?}
X
X	if [ x$retval = x0 ]; then
X		setvar $2 "`${CAT} ${selectlist} | ${SED} s/\\\"//g`"
X	fi
X
X	rm -f $tmpf
X	rm -f $selectlist
X}
X
Xif [ -f ${WRKDIR}/selected.conf ]; then
X	. ${WRKDIR}/selected.conf
Xelse
X	selbibles="ASV KJV WEB"
X	sellexicons="StrongsGreek StrongsHebrew"
X	selcomments="Personal TSK"
X	seldevotionals=""
X	selcults=""
Xfi
X
Xif [ ! "${BATCH}" ]; then
X	dialog_main
Xfi
X
Xif [ ! -d ${SETDIR} ]; then
X	mkdir ${SETDIR}
Xfi
X
Xecho "# Automatically generated file - manual changes may be lost" >${MODFILE}
Xfor module in $selbibles $sellexicons $selcomments $selcults $seldevotionals; do
X	echo "MODULE_FILES  = ${module}.zip " >>${MODFILE}
Xdone
X
END-of-misc/sword-modules/scripts/configure.swmods
echo x - misc/sword-modules/scripts/bibles.list
sed 's/^X//' >misc/sword-modules/scripts/bibles.list << 'END-of-misc/sword-modules/scripts/bibles.list'
XAraSVD	"Smith & Van Dyke Arabic Bible" 
XBulgarian	"Bulgarian Bible" 
XCzeBKR	"Czech Bible Kralicka" 
XCzeCEP	"Czech Ekumenicky Cesky preklad" 
XCzeKMS	"Czech Preklad KMS Nova smlouva" 
XCzeNKB	"Czech Nova kralicka Bible" 
XDan	"Danske Bibel" 
XGerBen	"German Bengel NT" 
XGerLut	"German 1912 Luther" 
XGerLut1545	"German 1545 Luther" 
XGerSch	"German 1951 Schlachter Bibel" 
XUMGreek	"Unaccented Modern Greek Text" 
XAKJV	"American King James Version" 
XASV	"1901 American Standard Version" 
XBBE	"1965 Bible in Basic English" 
XCommon	"The Common Edition: New Testament" 
XDR	"Douay-Rheims Bible" 
XDRA	"Douay-Rheims 1899 American Edition" 
XDarby	"1889 Darby Bible" 
XHNV	"Hebrew Names Version of the World English Bible" 
XIGNT	"Interlinear Greek New Testament" 
XISV	"International Standard Version" 
XJPS	"Jewish Publication Society Old Testament" 
XKJV	"King James Version of 1611 w/ Strongs Numbers" 
XLO	"The Living Oracles NT" 
XMontgomery	"Montgomery New Testament" 
XMurdock	"James Murdock's Translation of the Syriac Peshitta" 
XORTHJBC	"The Orthodox Jewish Brit Chadasha" 
XRNKJV	"Restored Name King James Version" 
XRSV	"Revised Standard Version" 
XRWebster	"Revised 1833 Webster Version" 
XRotherham	"The Emphasized Bible by J. B. Rotherham" 
XTwenty	"Twentieth Century New Testament" 
XWEB	"World English Bible" 
XWebsters	"Webster Bible" 
XWesleyNT	"John Wesley NT" 
XWeymouth	"1912 Weymouth NT" 
XYLT	"1898 Young's Literal Translation" 
XEsperanto	"Esperanto Bible" 
XSpaRV	"Spanish Reina-Valera" 
XSpaSEV	"Spanish 1569 Sagradas Escrituras Version Antigua" 
XSpaVNT	"Spanish 1858 Valera New Testament" 
XEst	"Estonian Bible" 
XFinPR	"Finnish 1938 PhyZ Raamattu" 
XFreLSG	"French 1910 Louis Segond" 
XGothicA	"Gothic Codex Ambr. A & Mss." 
XGothicB	"Gothic Codex Ambr. B & Car." 
XByz	"1991 Byzantine/Majority Text" 
XLXX	"Septuagint" 
XLXXM	"Septuagint, Morphologically Tagged Rahlfs'" 
XScrivner	"1894 Scrivener Textus Receptus" 
XStephanus	"1550 Stephanus Textus Receptus" 
XTisch	"Tischendorf's Eighth Edition GNT" 
XWH	"1881 Westcott-Hort Greek Text" 
XWHNU	"Westcott-Hort with NA27U4 variants" 
XManxGaelic	"Manx Gaelic Scripture Portions" 
XFreCrl	"French Haitian Creole Version" 
XAleppo	"Aleppo Codex" 
XBHS	"Biblia Hebraica Stuttgartensia" 
XHebModern	"Modern Hebrew Bible" 
XHunKar	"Hungarian Karoli" 
XIndBIS	"Indonesian Bahasa Indonesia Sehari-hari" 
XIndTB	"Indonesian Terjemahan Baru" 
XIndTL	"Indonesian Terjemahan Baru" 
XIcelandic	"Icelandic Bible" 
XItaLND	"Italian 1991 La Nuova Diodati" 
XItaNRV	"Italian 1994 La Sacra Bibbia Nuova Riveduta" 
XJapKUG	"Japanese JKUG Translation" 
XJapSNKI	"Japanese JSNKI Translation" 
XKetchi	"Ketchi Bible" 
XKorean	"Korean Bible" 
XVulgate	"Latin Vulgate" 
XVulgate_HebPs	"Latin Vulgate Psalms from Hebrew" 
XLatvian	"Latvian New Testament" 
XMaori	"Maori Bible" 
XDutSVV	"Dutch Statenvertaling" 
XNorsk	"Norsk Bibelen" 
XMel	"Melanesian Pidgin Bible" 
XUma	"Uma New Testament" 
XPorAA	"Portuguese Joao Ferreira de Almeida Atualizada" 
XRomCor	"Romanian Cornilescu Version" 
XRST	"Russian Synodal Translation" 
XRusMakarij	"The Pentateuch of Moses in Russian" 
XScotsGaelic	"Scots Gaelic Gospel of Mark" 
XALB	"Albanian Bible" 
XSweSVE	"Swedish Bible 1917 New Testament" 
XSwahili	"Swahili New Testament" 
XThaiKJV	"Thai KJV" 
XTagalog	"Tagalog (John & James)" 
XTurkish	"Turkish NT" 
XUkrainian	"Ukrainian Bible" 
XViet	"1934 Vietnamese Bible" 
XXhosa	"Xhosa Bible" 
XChiGU	"Chinese Glory Union Bible" 
END-of-misc/sword-modules/scripts/bibles.list
echo x - misc/sword-modules/scripts/lexicons.list
sed 's/^X//' >misc/sword-modules/scripts/lexicons.list << 'END-of-misc/sword-modules/scripts/lexicons.list'
XAmTract	"American Tract Society Bible Dictionary" 
XBDB	"Brown-Driver-Briggs Hebrew Lexicon" 
XEastons	"Easton's Bible Dictionary" 
XHitchcocks	"Hitchcock's Bible Names" 
XISBE	"International Standard Bible Encyclopedia" 
XNaves	"Nave's Topical Bible" 
XPackard	"Packard's Morphological Analysis Codes" 
XSmiths	"Smith's Bible Dictionary" 
XStrongsGreek	"Strong's Greek Bible Dictionary" 
XStrongsHebrew	"Strong's Hebrew Bible Dictionary" 
XThayer	"Thayer's Greek Lexicon" 
XTorrey	"R. A. Torrey's New Topical Textbook" 
XWebstersDict	"Webster's Revised Unabridged English Dictionary 1913" 
XGreekHebrew	"Greek to Hebrew Dictionary of Septuagint Words" 
XHebrewGreek	"Hebrew to Greek Dictionary of Septuagint Words" 
END-of-misc/sword-modules/scripts/lexicons.list
echo x - misc/sword-modules/scripts/cults.list
sed 's/^X//' >misc/sword-modules/scripts/cults.list << 'END-of-misc/sword-modules/scripts/cults.list'
XDiaglott	"The Emphatic Diaglott" 
XJST	"Joseph Smith Translation" 
END-of-misc/sword-modules/scripts/cults.list
echo x - misc/sword-modules/scripts/comments.list
sed 's/^X//' >misc/sword-modules/scripts/comments.list << 'END-of-misc/sword-modules/scripts/comments.list'
XMAK	"Matthias Ansorgs Kommentar" 
XRieger	"Carl Heinrich Riegers Kommentar" 
XBarnes	"Barnes' New Testament Notes" 
XClarke	"Adam Clarke's Commentary on the Bible" 
XDTN	"Darby Translation Notes" 
XFamily	"Family Bible Notes" 
XGeneva	"Geneva Bible Translation Notes" 
XJFB	"Jamieson Fausset Brown Bible Commentary" 
XMHC	"Matthew Henry's Complete Commentary on the Whole Bible" 
XMHCC	"Matthew Henry's Concise Commentary on the Whole Bible" 
XPNT	"The People's New Testament" 
XPersonal	"Personal Commentary" 
XRWP	"Robertson's Word Pictures" 
XScofield	"Scofield Reference Notes, 1917 Edition" 
XTDavid	"C. H. Spurgeon's Treasury of David" 
XTFG	"The Fourfold Gospel and Commentary on Acts of Apostles" 
XTSK	"Treasury of Scriptural Knowledge" 
XWesley	"John Wesley's Notes on the Bible" 
XDutKant	"Kanttekeningen Statenvertaling" 
END-of-misc/sword-modules/scripts/comments.list
echo x - misc/sword-modules/scripts/devotionals.list
sed 's/^X//' >misc/sword-modules/scripts/devotionals.list << 'END-of-misc/sword-modules/scripts/devotionals.list'
Xlosung_de_89	"1989 Losung auf deutsch" 
Xlosung_de_90	"1990 Losung auf deutsch" 
Xlosung_de_91	"1991 Losung auf deutsch" 
Xlosung_de_92	"1992 Losung auf deutsch" 
Xlosung_de_93	"1993 Losung auf deutsch" 
Xlosung_de_94	"1994 Losung auf deutsch" 
Xlosung_de_95	"1995 Losung auf deutsch" 
Xlosung_de_96	"1996 Losung auf deutsch" 
Xlosung_de_97	"1997 Losung auf deutsch" 
Xlosung_de_98	"1998 Losung auf deutsch" 
Xlosung_de_99	"1999 Losung auf deutsch" 
XDBD	"Day By Day By Grace - Bob Hoekstra" 
XDaily	"Jonathan Bagster's Daily Light on the Daily Path" 
XSME	"C. H. Spurgeon's Morning and Evening: Daily Readins" 
Xlosung_en_96	"1996 Watchwords (Losung) in English" 
Xlosung_en_97	"1997 Watchwords (Losung) in English" 
Xlosung_en_98	"1998 Watchwords (Losung) in English" 
Xlosung_en_99	"1999 Watchwords (Losung) in English" 
Xlosung_es_99	"1999 Watchwords (Losung) en Castellano" 
Xlosung_nl_99	"1999 Watchwords (Losung) in Dutch" 
END-of-misc/sword-modules/scripts/devotionals.list
echo x - misc/sword-modules/pkg-descr
sed 's/^X//' >misc/sword-modules/pkg-descr << 'END-of-misc/sword-modules/pkg-descr'
XThe SWORD Project is an effort to create an ever expanding software package
Xfor research and study of God and His Word. The SWORD Bible Framework allows
Xeasy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc.
XMany frontends are build using this framework. An installed module set may be
Xshared between any frontend using the framework.
X
XWWW: http://www.crosswire.org/
X
X- Willem van Engen <wvengen@stack.nl>
END-of-misc/sword-modules/pkg-descr
echo x - misc/sword-modules/Makefile
sed 's/^X//' >misc/sword-modules/Makefile << 'END-of-misc/sword-modules/Makefile'
X# New ports collection makefile for: sword-modules
X# Date created:   28 may 2001
X# Whom:           Willem van Engen <wvengen@stack.nl>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sword-modules
XPORTVERSION=	1.1
XCATEGORIES=	misc
XMASTER_SITES=	ftp://ftp.crosswire.org/pub/sword/modules/raw/ \
X		http://www.crosswire.org/sword/download/ftpmirror/pub/sword/modules/raw/
XDISTFILES=	${MODULE_FILES}
XDIST_SUBDIR=	sword_modules
XEXTRACT_ONLY=	# empty
X
XMAINTAINER=	wvengen@stack.nl
X
XLIB_DEPENDS=	sword.1:${PORTSDIR}/misc/sword
X
XNO_BUILD=	yes
XUSE_ZIP=	yes
X
X# Modules may change, but it has no effect on their functionality. I think
X# it's best not to use checksum. Besides, there is no version number on modules.
XNO_CHECKSUM=	yes
X
XMODULE_FILES=
XSETDIR=	${WRKDIRPREFIX}${.CURDIR}
XMODFILE=	${SETDIR}/Makefile.sel
XSCRIPTS_ENV=	SETDIR="${SETDIR}" \
X	TOUCH="${TOUCH}" \
X	MKDIR="${MKDIR}" \
X	CAT="${CAT}" \
X	MKTEMP="${MKTEMP}"\
X	SED="${SED}"\
X	BASENAME="${BASENAME}"\
X	WC="${WC}"\
X	SCRIPTDIR="${SCRIPTDIR}" \
X	BUILD="${PACKAGE_BUILDING}" \
X	DIST_SUBDIR="${DIST_SUBDIR}" \
X	MODFILE="${MODFILE}" \
X	BATCH="${BATCH}"
X
XDIRNAME?=	${BASENAME:S/basename/dirname/}
XSORT?=		sort
X
X.if !exists(${MODFILE})
Xpre-fetch:	select
X.else
X.include <${MODFILE}>
Xpre-fetch:
X.endif
X	@${MAKE} do-fetch		# XXX Not sure if this is needed
X
Xselect:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.swmods
X
Xpost-clean:
X	@${RM} -f ${MODFILE}
X
Xdo-install:
X	@${MKDIR} -p ${PREFIX}/share/sword
X	@for i in ${MODULE_FILES}; do \
X		${EXTRACT_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/$${i} -d ${PREFIX}/share/sword; \
X	 done
X
Xpost-install:
X	@tdirs=""; \
X	 for i in ${MODULE_FILES}; do \
X		tfiles=`${EXTRACT_CMD} -Z -1 ${DISTDIR}/${DIST_SUBDIR}/$${i}`; \
X		for j in $${tfiles}; do \
X			${ECHO} "share/sword/$${j}" >>${TMPPLIST}; \
X			if [ "`${ECHO} $${j} | ${GREP} -v mods.d`" ]; then \
X				dirn=`${DIRNAME} $${j}`; \
X				while [ "$${dirn}" -a "$${dirn}" != "." -a \
X					"$${dirn}" != "/" ]; do \
X					if [ ! "`${ECHO} \"$${tdirs}\" | ${GREP} \"$${dirn} \"`" ]; then \
X						tdirs="$${tdirs}$${dirn} "; \
X					fi; \
X					dirn=`${DIRNAME} $${dirn}`; \
X				done; \
X			fi; \
X		done; \
X	 done; \
X	 ksorted=`for k in $${tdirs}; do printf "%s\n" $${k}; done | ${SORT} -r -t" "`;\
X	 for j in $${ksorted}; do \
X		${ECHO} "@dirrm share/sword/$${j}" >>${TMPPLIST}; \
X	 done; \
X	 ${ECHO} "@dirrm share/sword/mods.d" >>${TMPPLIST};
X
X.include <bsd.port.mk>
END-of-misc/sword-modules/Makefile
echo x - misc/sword-modules/pkg-comment
sed 's/^X//' >misc/sword-modules/pkg-comment << 'END-of-misc/sword-modules/pkg-comment'
XBible, lexicon and commentary modules for SWORD
END-of-misc/sword-modules/pkg-comment
echo x - misc/sword-modules/pkg-plist
sed 's/^X//' >misc/sword-modules/pkg-plist << 'END-of-misc/sword-modules/pkg-plist'
END-of-misc/sword-modules/pkg-plist
echo x - misc/sword-modules/distinfo
sed 's/^X//' >misc/sword-modules/distinfo << 'END-of-misc/sword-modules/distinfo'
END-of-misc/sword-modules/distinfo
exit


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112121238.fBCCcLY73257>