diff options
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/sword-modules/Makefile | 92 | ||||
-rw-r--r-- | misc/sword-modules/pkg-comment | 1 | ||||
-rw-r--r-- | misc/sword-modules/pkg-descr | 9 | ||||
-rw-r--r-- | misc/sword-modules/pkg-plist | 0 | ||||
-rw-r--r-- | misc/sword-modules/scripts/bibles.list | 83 | ||||
-rw-r--r-- | misc/sword-modules/scripts/comments.list | 12 | ||||
-rw-r--r-- | misc/sword-modules/scripts/configure.swmods | 136 | ||||
-rw-r--r-- | misc/sword-modules/scripts/cults.list | 2 | ||||
-rw-r--r-- | misc/sword-modules/scripts/lexicons.list | 27 |
10 files changed, 363 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index d4eff10f4a29..f13605548ef2 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -185,6 +185,7 @@ SUBDIR += sshbuddy SUBDIR += stan SUBDIR += sword + SUBDIR += sword-modules SUBDIR += tcb SUBDIR += team SUBDIR += tet diff --git a/misc/sword-modules/Makefile b/misc/sword-modules/Makefile new file mode 100644 index 000000000000..c2244124391d --- /dev/null +++ b/misc/sword-modules/Makefile @@ -0,0 +1,92 @@ +# New ports collection makefile for: sword-modules +# Date created: 28 may 2001 +# Whom: Willem van Engen <wvengen@stack.nl> +# +# $FreeBSD$ +# + +PORTNAME= sword-modules +PORTVERSION= 1.0 +CATEGORIES= misc +MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/modules/raw/ \ + http://www.crosswire.org/sword/download/ftpmirror/pub/sword/modules/raw/ +DISTFILES= ${MODULE_FILES} +DIST_SUBDIR= sword_modules +EXTRACT_ONLY= # empty + +MAINTAINER= wvengen@stack.nl + +LIB_DEPENDS= sword.1:${PORTSDIR}/misc/sword + +NO_BUILD= yes +USE_ZIP= yes + +# Modules may change, but it has no effect on their functionality. I think +# it's best not to use checksum. Besides, there is no version number on modules. +NO_CHECKSUM= yes + +SETDIR= ${WRKDIRPREFIX}${.CURDIR} +MODFILE= ${SETDIR}/selected.mods +MODFILE_WITHDIR=${SETDIR}/selected.mods.withdir +SCRIPTS_ENV= SETDIR="${SETDIR}" \ + TOUCH="${TOUCH}" \ + MKDIR="${MKDIR}" \ + CAT="${CAT}" \ + MKTEMP="${MKTEMP}"\ + SED="${SED}"\ + BASENAME="${BASENAME}"\ + WC="${WC}"\ + SCRIPTDIR="${SCRIPTDIR}" \ + BUILD="${PACKAGE_BUILDING}" \ + DIST_SUBDIR="${DIST_SUBDIR}" \ + MODFILE="${MODFILE}" \ + MODFILE_WITHDIR="${MODFILE_WITHDIR}" \ + BATCH="${BATCH}" +MODULE_FILES= `${CAT} ${MODFILE}` +# XXX The regex for _CKSUMFILES in bsd.port.mk can't handle the backquotes +# in MODULE_FILES. It substitutes the command instead of it's result. +_CKSUMFILES= `${CAT} ${MODFILE_WITHDIR}` + +DIRNAME?= ${BASENAME:S/basename/dirname/} +SORT?= sort + +.if !exists(${MODFILE}) +pre-fetch: select +.endif + +select: + @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.swmods + +post-clean: + @${RM} -f ${MODFILE} ${MODFILE_WITHDIR} + +do-install: + @for i in ${MODULE_FILES}; do \ + ${EXTRACT_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/$${i} -d ${PREFIX}/share/sword; \ + done + +post-install: + @tdirs=""; \ + for i in ${MODULE_FILES}; do \ + tfiles=`${EXTRACT_CMD} -Z -1 ${DISTDIR}/${DIST_SUBDIR}/$${i}`; \ + for j in $${tfiles}; do \ + ${ECHO} "share/sword/$${j}" >>${TMPPLIST}; \ + if [ "`${ECHO} $${j} | ${GREP} -v mods.d`" ]; then \ + dirn=`${DIRNAME} $${j}`; \ + while [ "$${dirn}" -a "$${dirn}" != "." -a \ + "$${dirn}" != "/" ]; do \ + if [ ! "`${ECHO} \"$${tdirs}\" | ${GREP} \"$${dirn} \"`" ]; then \ + tdirs="$${tdirs}$${dirn} "; \ + fi; \ + dirn=`${DIRNAME} $${dirn}`; \ + done; \ + fi; \ + done; \ + done; \ + ksorted=`for k in $${tdirs}; do printf "%s\n" $${k}; done | ${SORT} -r -t" "`;\ + for j in $${ksorted}; do \ + ${ECHO} "@dirrm share/sword/$${j}" >>${TMPPLIST}; \ + done; \ + ${ECHO} "@dirrm share/sword/mods.d" >>${TMPPLIST}; + +.include <bsd.port.mk> diff --git a/misc/sword-modules/pkg-comment b/misc/sword-modules/pkg-comment new file mode 100644 index 000000000000..47d48df511f0 --- /dev/null +++ b/misc/sword-modules/pkg-comment @@ -0,0 +1 @@ +Bible, lexicon and commentary modules for SWORD diff --git a/misc/sword-modules/pkg-descr b/misc/sword-modules/pkg-descr new file mode 100644 index 000000000000..288424dfcb59 --- /dev/null +++ b/misc/sword-modules/pkg-descr @@ -0,0 +1,9 @@ +The SWORD Project is an effort to create an ever expanding software package +for research and study of God and His Word. The SWORD Bible Framework allows +easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc. +Many frontends are build using this framework. An installed module set may be +shared between any frontend using the framework. + +WWW: http://www.crosswire.org/ + +- Willem van Engen <wvengen@stack.nl> diff --git a/misc/sword-modules/pkg-plist b/misc/sword-modules/pkg-plist new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/misc/sword-modules/pkg-plist diff --git a/misc/sword-modules/scripts/bibles.list b/misc/sword-modules/scripts/bibles.list new file mode 100644 index 000000000000..18d41135977c --- /dev/null +++ b/misc/sword-modules/scripts/bibles.list @@ -0,0 +1,83 @@ +ASV "1901 American Standard Version" +KJV "King James Version of 1611 w/ Strongs Numbers" +BBE "1965 Bible in Basic English" +Websters "The Webster Bible" +RWebster "Revised 1833 Webster Version (RWEBSTER)" +Weymouth "1912 Weymouth NT" +ORTHJBC "The Orthodox Jewish Brit Chadasha" +Rotherham "The Emphasized Bible by J. B. Rotherham" +YLT "1898 Young's Literal Translation" +ISV "International Standard Version" +Darby "1889 Darby Bible" +AKJV "American King James Version" +RNKJV "Restored Name King James Version" +WEB "The World English Bible" +HNV "The Hebrew Names Version of the World English Bible" +DRA "The Douay-Rheims 1899 American Edition" +LO "The Living Oracles NT" +DR "Douay-Rheims Bible" +Murdock "James Murdock's Translation of the Syriac Peshitta" +JPS "Jewish Publication Society Old Testament" +Twenty "The Twentieth Century New Testament" +Montgomery "Montgomery New Testament" +Byz "1991 Byzantine/Majority Text" +ByzX "1991 Byzantine/Majority Text - Roman Transliterated" +LXX "Septuagint (LXX)" +LXXX "Septuagint (LXX) - Roman Transliterated" +IGNT "Interlinear Greek New Testament" +Tisch "Tischendorf's Eighth Edition GNT" +UMGreek "Unaccented Modern Greek Text" +Stephanus "1550 Stephanus Textus Receptus" +StephanusX "1550 Stephanus Textus Receptus - Roman Transliterated" +WH "1881 Westcott-Hort Greek Text" +WHNU "Westcott-Hort with NA27U4 variants" +Scrivner "1894 Scrivener Textus Receptus" +ScrivnerX "1894 Scrivener Textus Receptus - Roman Transliterated" +Vulgate "Latin Vulgate" +Vulgate_HebPs "Latin Vulgate Psalms from Hebrew" +GerSch "German 1951 Schlachter Bibel" +GerLut "German 1912 Luther" +GerBen "German Bengel NT" +GerLut1545 "German 1545 Luther" +Dan "Danske Bibel (Danish Bible)" +Icelandic "Icelandic Bible" +FinPR "Finnish 1938 Phy Raamattu" +SweSVE "Swedish Bible 1917 New Testament" +Norsk "Norsk (Norwegian) Bible" +ManxGaelic "Gaelic Scripture Portions" +ScotsGaelic "Gaelic Gospel of Mark" +Turkish "Turkish NT" +RomCor "Romanian Cornilescu Version" +CzeNKB "Nova kralicka Bible" +CzeKMS "Preklad KMS Nova smlouva" +CzeBKR "Czech Bible Kralicka" +CzeCEP "Czech Ekumenicky Cesky preklad" +HunKar "Hungarian Karoli" +Swahili "Swahili New Testament" +ChiGU-B5 "Chinese Glory Union Bible (Big5)" +ChiGU-UTF8 "Chinese Glory Union Bible (UTF8)" +ChiGU-GB "Chinese Glory Union Bible (GB2312)" +Viet "1934 Vietnamese Bible" +Korean "Korean Bible" +Maori "Maori Bible" +IndTB "Indonesian Terjemahan Baru" +IndBIS "Indonesian Bahasa Indonesia Sehari-hari" +IndTL "Indonesian Terjemahan Baru" +ArabicLtoR "Arabic Bible - Left to Right" +Arabic "Arabic Bible" +ItaLND "Italian 1991 La Nuova Diodati" +ItaNRV "Italian 1994 La Sacra Bibbia Nuova Riveduta" +SpaSEV "Spanish 1569 Sagradas Escrituras Version Antigua" +SpaRV "Spanish Reina-Valera" +SpaVNT "Spanish Valera 1858 Spanish New Testament Text" +Esperanto "Esperanto Bible" +FreLSG "French 1910 Louis Segond" +FreCrl "French Haitian Creole Version" +Uma "Uma New Testament" +Mel "Melanesian Pidgin Bible" +Latvian "Latvian New Testament" +Xhosa "Xhosa Bible" +Tagalog "Tagalog (John & James)" +Ketchi "Ketchi Bible" +GothicA "Gothic Codex Ambr. A & Mss." +GothicB "Gothic Codex Ambr. B & Car." diff --git a/misc/sword-modules/scripts/comments.list b/misc/sword-modules/scripts/comments.list new file mode 100644 index 000000000000..2eb46107bd5e --- /dev/null +++ b/misc/sword-modules/scripts/comments.list @@ -0,0 +1,12 @@ +Personal "Personal Commentary" +Family "Family Bible Notes" +DTN "Darby Translation Notes" +Geneva "Geneva Bible Translation Notes" +MAK "Matthias Ansorgs Kommentar" +MHCC "Matthew Henry's Concise Commentary on the Whole Bible" +PNT "The People's New Testament" +RWP "Robertson's Word Pictures" +Rieger "Carl Heinrich Riegers Kommentar" +TFG "The Fourfold Gospel and Commentary on Acts of Apostles" +TSK "Treasury of Scriptural Knowledge" +Wesley "John Wesley's Notes on the Bible" diff --git a/misc/sword-modules/scripts/configure.swmods b/misc/sword-modules/scripts/configure.swmods new file mode 100644 index 000000000000..e0eb0bcce66d --- /dev/null +++ b/misc/sword-modules/scripts/configure.swmods @@ -0,0 +1,136 @@ +#!/bin/sh +# $FreeBSD$ + +SED=${SED:-/usr/bin/sed} +MKTEMP=${MKTEMP:-/usr/bin/mktemp} +AWK=${AWK:-/usr/bin/awk} +BASENAME=${BASENAME:-/usr/bin/basename} +CAT=${CAT:-/bin/cat} +WC=${WC:-/usr/bin/wc} + +dialog_main() { + tmpfile=`${MKTEMP} -t menulistM` + + choosedone=0; + while [ $choosedone != 1 ]; do + /usr/bin/dialog --title "SWORD Modules" --clear \ + --menu "\n\ +Please select desired modules in each section:" -1 -1 5 \ +Bibles "Select biblical texts" \ +Lexicons "Select lexicons / dictionaries" \ +Comments "Select commentaries" \ +Cults "Select cults / unorthodox / questionnable modules" \ +Done "Done" \ +2> $tmpfile + + retval=${?} + + case $retval in + 0) + chosen=`${CAT} $tmpfile` + + case $chosen in + "Bibles") + dialog_select ${SCRIPTDIR}/bibles.list selbibles "$selbibles" + ;; + + "Lexicons") + dialog_select ${SCRIPTDIR}/lexicons.list sellexicons "$sellexicons" + ;; + + "Comments") + dialog_select ${SCRIPTDIR}/comments.list selcomments "$selcomments" + ;; + + "Cults") + dialog_select ${SCRIPTDIR}/cults.list selcults "$selcults" + ;; + + "Done") + choosedone=1 + ;; + + *) + echo "Unknown option: $chosen" + rm -f $tmpfile + exit 1 + ;; + esac + ;; + + 1) echo "Cancelled" + rm -f $tmpfile + exit 1 + ;; + *) + rm -f $tmpfile + exit 1 + ;; + esac + done + + rm -f $tmpfile +} + +dialog_select() { + modtype=`${BASENAME} $1|${SED} s/\.list.*$//` + tmpf=`${MKTEMP} -t dlgscript` + selectlist=`${MKTEMP} -t selectlist` + prem=`${WC} -l $1 | ${AWK} '{print $1;}` + m=${prem:-16} + if [ $m -gt 16 ]; then m=16; fi + + echo -n "/usr/bin/dialog --title \"SWORD modules: ${modtype}\" --clear \ +--checklist \"\n Please select desired ${modtype} modules:\" -1 -1 $m " >$tmpf + + echo -n `${CAT} $1|${AWK} --assign selmods="$3" ' +BEGIN { + FS="\t"; + split(selmods,smatmp," "); + for (i in smatmp) { + selmodarray[smatmp[i]]=1; + } +} + +{ + if ($1 in selmodarray) ison="ON"; else ison="OFF" + printf("%s %s %s ",$1,$2,ison); +}'` >>$tmpf + + echo ' 2> ${selectlist} ' >>$tmpf + + . $tmpf + + retval=${?} + + if [ x$retval = x0 ]; then + setvar $2 "`${CAT} ${selectlist} | ${SED} s/\\\"//g`" + fi + + rm -f $tmpf + rm -f $selectlist +} + +if [ -f ${WRKDIR}/selected.conf ]; then + . ${WRKDIR}/selected.conf +else + selbibles="ASV KJV WEB" + sellexicons="StrongsGreek StrongsHebrew" + selcomments="Personal TSK" + selcults="" +fi + +if [ ! "${BATCH}" ]; then + dialog_main +fi + +if [ ! -d ${SETDIR} ]; then + mkdir ${SETDIR} +fi + +rm -f ${MODFILE} ${MODFILE_WITHDIR} +for module in $selbibles $sellexicons $selcomments $selcults; do + echo -n "${module}.zip " >>${MODFILE} + echo -n "${DIST_SUBDIR}/${module}.zip " >>${MODFILE_WITHDIR} +done + diff --git a/misc/sword-modules/scripts/cults.list b/misc/sword-modules/scripts/cults.list new file mode 100644 index 000000000000..9bb38b4b033c --- /dev/null +++ b/misc/sword-modules/scripts/cults.list @@ -0,0 +1,2 @@ +JST "Joseph Smith Translation" +Diaglott "The Emphatic Diaglott" diff --git a/misc/sword-modules/scripts/lexicons.list b/misc/sword-modules/scripts/lexicons.list new file mode 100644 index 000000000000..61a80b149561 --- /dev/null +++ b/misc/sword-modules/scripts/lexicons.list @@ -0,0 +1,27 @@ +BDB "Brown-Driver-Briggs Hebrew Lexicon" +Eastons "Easton's Bible Dictionary" +Hitchcocks "Hitchcock's Bible Names" +ISBE "International Standard Bible Encyclopedia" +Naves "Nave's Topical Bible" +Smiths "Smith's Bible Dictionary" +StrongsGreek "Strong's Greek Bible Dictionary" +StrongsHebrew "Strong's Hebrew Bible Dictionary" +Thayer "Thayer's Greek Lexicon" +Torrey "R. A. Torrey's New Topical Textbook" +losung_de_89 "1989 Losung auf deutsch" +losung_de_90 "1990 Losung auf deutsch" +losung_de_91 "1991 Losung auf deutsch" +losung_de_92 "1992 Losung auf deutsch" +losung_de_93 "1993 Losung auf deutsch" +losung_de_94 "1994 Losung auf deutsch" +losung_de_95 "1995 Losung auf deutsch" +losung_de_96 "1996 Losung auf deutsch" +losung_de_97 "1997 Losung auf deutsch" +losung_de_98 "1998 Losung auf deutsch" +losung_de_99 "1999 Losung auf deutsch" +losung_en_96 "1996 Watchwords (Losung) in English" +losung_en_97 "1997 Watchwords (Losung) in English" +losung_en_98 "1998 Watchwords (Losung) in English" +losung_en_99 "1999 Watchwords (Losung) in English" +losung_es_99 "1999 Watchwords (Losung) en Castellano" +losung_nl_99 "1999 Watchwords (Losung) in Dutch" |