New version (#107289). Add support for translations.
authorGregorio Guidi <greg_g@gentoo.org>
Tue, 11 Oct 2005 12:42:06 +0000 (12:42 +0000)
committerGregorio Guidi <greg_g@gentoo.org>
Tue, 11 Oct 2005 12:42:06 +0000 (12:42 +0000)
Package-Manager: portage-2.0.51.22-r3

app-text/bibletime/ChangeLog
app-text/bibletime/Manifest
app-text/bibletime/bibletime-1.5.1.ebuild [new file with mode: 0644]
app-text/bibletime/files/digest-bibletime-1.5.1 [new file with mode: 0644]

index affe02066e5a3e5b40a69bb5fdcdeb57b97e000c..9d9dceabfade85b82c86bbafe8260c1c93aae67d 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-text/bibletime
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bibletime/ChangeLog,v 1.20 2005/07/27 21:21:38 greg_g Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bibletime/ChangeLog,v 1.21 2005/10/11 12:42:06 greg_g Exp $
+
+*bibletime-1.5.1 (11 Oct 2005)
+
+  11 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +bibletime-1.5.1.ebuild:
+  New version (#107289). Add support for translations.
 
 *bibletime-1.5 (27 Jul 2005)
 
index c8f7d8d84299823d864a17cba7251ab60d5454c0..31c6e78bbab80ea7706cfe8ae151f0813b6956b9 100644 (file)
@@ -1,6 +1,8 @@
 MD5 f7c5ba21162c3c79edaebb2431cbe757 metadata.xml 430
 MD5 9ba793b0a888d152bb471d4d6eaf7cca bibletime-1.5.ebuild 975
-MD5 20774c03da49e561392898da174ce253 ChangeLog 2641
+MD5 142b03c9367d95e82bc1c143110b990c ChangeLog 2804
+MD5 2c06f46a9dd6135fabb18fa3e8d8e47b bibletime-1.5.1.ebuild 2125
 MD5 f9647fb228eef2c6527e10ca5985fb8f bibletime-1.4.2_pre1.ebuild 1648
 MD5 da1a592bd44f3a06aa0edbf58e849cec files/digest-bibletime-1.5 67
 MD5 e189003108b45c99da2b91c1605a3be1 files/digest-bibletime-1.4.2_pre1 74
+MD5 a76be10929c45af2e0dfa694c3f9fea4 files/digest-bibletime-1.5.1 143
diff --git a/app-text/bibletime/bibletime-1.5.1.ebuild b/app-text/bibletime/bibletime-1.5.1.ebuild
new file mode 100644 (file)
index 0000000..5b18047
--- /dev/null
@@ -0,0 +1,82 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/bibletime/bibletime-1.5.1.ebuild,v 1.1 2005/10/11 12:42:06 greg_g Exp $
+
+inherit kde eutils
+
+DESCRIPTION="KDE Bible study application using the SWORD library."
+HOMEPAGE="http://www.bibletime.info/"
+SRC_URI="mirror://sourceforge/bibletime/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=app-text/sword-1.5.8"
+
+LANGS="af bg cs da de en_GB es fi fr hu it ko nl nn_NO no pl pt_BR ro ru sk ua"
+LANGS_DOC="bg cs de fi fr it ko nl pt_BR ru"
+
+for X in ${LANGS}; do
+       SRC_URI="${SRC_URI} linguas_${X}? ( mirror://sourceforge/bibletime/${PN}-i18n-${PV}.tar.bz2 )"
+done
+
+need-kde 3
+
+pkg_setup() {
+       if ! built_with_use app-text/sword curl; then
+               echo
+               ewarn "The SWORD library may not have been compiled with curl support."
+               ewarn "If you wish to use BibleTime's ability to download modules"
+               ewarn "straight from the SWORD website, please make sure app-text/sword"
+               ewarn "was compiled with USE=\"curl\"."
+               ewarn "Press ctrl+c to abort the merge of BibleTime if you want to"
+               ewarn "recompile SWORD with curl support."
+               echo
+               ebeep 5
+       fi
+}
+
+src_unpack() {
+       kde_src_unpack
+
+       local MAKE_LANGS MAKE_LANGS_DOC
+       for X in ${LANGS}; do
+               use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X/pt_BR/pt_br}.po"
+       done
+       for X in ${LANGS_DOC}; do
+               use linguas_${X} && MAKE_LANGS_DOC="${MAKE_LANGS_DOC} ${X/pt_BR/pt-br}"
+       done
+
+       if [ -d "${WORKDIR}/${PN}-i18n-${PV}" ]; then
+               cd ${WORKDIR}/${PN}-i18n-${PV}/
+               sed -i -e "s,^POFILES.*,POFILES = ${MAKE_LANGS}," po/Makefile.am
+               sed -i -e "s,^SUBDIRS.*,SUBDIRS = ${MAKE_LANGS_DOC}," docs/Makefile.am
+               make -f admin/Makefile.common || die
+       fi
+}
+
+src_compile() {
+       kde_src_compile
+
+       local _S="${S}"
+       if [ -d "${WORKDIR}/${PN}-i18n-${PV}" ]; then
+               S="${WORKDIR}/${PN}-i18n-${PV}"
+               cd "${S}"
+               kde_src_compile
+       fi
+       S="${_S}"
+}
+
+src_install() {
+       kde_src_install
+
+       local _S="${S}"
+       if [ -d "${WORKDIR}/${PN}-i18n-${PV}" ]; then
+               S="${WORKDIR}/${PN}-i18n-${PV}"
+               cd "${S}"
+               kde_src_install
+       fi
+       S="${_S}"
+}
diff --git a/app-text/bibletime/files/digest-bibletime-1.5.1 b/app-text/bibletime/files/digest-bibletime-1.5.1
new file mode 100644 (file)
index 0000000..6bcd6e2
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 8dd771393d9183e81b5d7cc3d408f949 bibletime-1.5.1.tar.bz2 1178707
+MD5 e6e5e1865e1eaf01f3da0c48417ae18b bibletime-i18n-1.5.1.tar.bz2 1007666