diff options
Diffstat (limited to 'app-text/xiphos')
-rw-r--r-- | app-text/xiphos/Manifest | 2 | ||||
-rw-r--r-- | app-text/xiphos/metadata.xml | 14 | ||||
-rw-r--r-- | app-text/xiphos/xiphos-3.1.5.ebuild | 92 | ||||
-rw-r--r-- | app-text/xiphos/xiphos-3.2.2.ebuild | 88 |
4 files changed, 196 insertions, 0 deletions
diff --git a/app-text/xiphos/Manifest b/app-text/xiphos/Manifest new file mode 100644 index 000000000000..177535e086ab --- /dev/null +++ b/app-text/xiphos/Manifest @@ -0,0 +1,2 @@ +DIST xiphos-3.1.5.tar.gz 6720533 SHA256 2887426908e269f25d2d191be445112027b2b7e80356823d4942b1803a359d8c SHA512 2183125a1076660cf0448ee5f2df3ded9ee58c389716a8ceefe0185989d6c8267f19082add3fa8a7a9da57693f82b47e26c0fe77154e961b84234afbdf5b3a1d WHIRLPOOL 6a66671ab99cc62f0beb6bdfffcec2ff1048cae66ad6304fd788d005c0d0bf81273856af6373eba0bdf5fd6df0176894e1a99fe633fcd1fbad46c78b89848bbf +DIST xiphos-3.2.2.tar.gz 7088153 SHA256 2326efd2bad1b27d6c4231cba68077f71f91ee31f73bdada1cbe2c3bd11eadc6 SHA512 14dd33f99217de4062e6ff6c4030fce748f57bc7e4a984aa7927acb7779f3720da21a51eb2943d5be93eac702dcc32b023f9e39a91acb7182ce59b3c90941dbf WHIRLPOOL 488f3fb65b591a9122cc8fc8a1c118cb461ce1890205d53d5957633bb8ff240166616e4de3169afccf5799fb2db40e1e90ac8cef61f3f133e135dd9578227de8 diff --git a/app-text/xiphos/metadata.xml b/app-text/xiphos/metadata.xml new file mode 100644 index 000000000000..02263c72542d --- /dev/null +++ b/app-text/xiphos/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>theology</herd> + <maintainer> + <email>theology@gentoo.org</email> + </maintainer> + <use> + <flag name="webkit">Use <pkg>net-libs/webkit-gtk</pkg> instead of <pkg>gnome-extra/gtkhtml</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">gnomesword</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/xiphos/xiphos-3.1.5.ebuild b/app-text/xiphos/xiphos-3.1.5.ebuild new file mode 100644 index 000000000000..1d3f301f11ec --- /dev/null +++ b/app-text/xiphos/xiphos-3.1.5.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: waf-utils.eclass ? + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs + +DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)" +HOMEPAGE="http://xiphos.org/" +SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="dbus debug webkit" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=app-text/sword-1.6.1 + >=dev-libs/glib-2 + dev-libs/libxml2 + gnome-base/gconf + gnome-extra/gtkhtml:4.0 + >=gnome-extra/libgsf-1.14 + x11-libs/gtk+:3 + dbus? ( dev-libs/dbus-glib ) + webkit? ( net-libs/webkit-gtk:3 ) +" +DEPEND="${RDEPEND} + app-text/docbook2X + app-text/gnome-doc-utils + app-text/rarian + dev-libs/libxslt + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext +" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + sed -i \ + -e '/FLAGS_DEBUG/s:-g:-Wall:' \ + -e '/FLAGS_RELEASE/s:-O2:-Wall:' \ + wscript || die +} + +src_configure() { + append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1 + + tc-export AR CC CPP CXX RANLIB + + local backend=gtkhtml + use webkit && backend=webkit + + CCFLAGS="${CFLAGS}" \ + LINKFLAGS="${LDFLAGS}" \ + SGML2MAN="$(type -P docbook2man.pl)" \ + ./waf -v \ + --prefix=/usr \ + --gtk=3 \ + --backend=${backend} \ + --debug-level=$(use debug && echo debug || echo release) \ + $(use dbus || echo --disable-dbus) \ + configure || die +} + +src_compile() { + ./waf -v build || die +} + +src_install() { + ./waf -v --destdir="${D}" install || die + + doman ${PN}.1 + dodoc AUTHORS ChangeLog NEWS README RELEASE-NOTES TODO + + dodoc Xiphos.ogg + docompress -x /usr/share/doc/${PF}/Xiphos.ogg + + rm -rf "${ED}"/usr/share/doc/${PN} +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } diff --git a/app-text/xiphos/xiphos-3.2.2.ebuild b/app-text/xiphos/xiphos-3.2.2.ebuild new file mode 100644 index 000000000000..c5d5720b5819 --- /dev/null +++ b/app-text/xiphos/xiphos-3.2.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: waf-utils.eclass ? + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs + +DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)" +HOMEPAGE="http://xiphos.org/" +SRC_URI="mirror://sourceforge/gnomesword/${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dbus debug" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=app-text/sword-1.7.3 + >=dev-libs/glib-2[${PYTHON_USEDEP}] + dev-libs/libxml2[${PYTHON_USEDEP}] + gnome-base/gconf[${PYTHON_USEDEP}] + gnome-extra/gtkhtml:4.0 + >=gnome-extra/libgsf-1.14 + net-libs/webkit-gtk:3 + x11-libs/gtk+:3 + dbus? ( dev-libs/dbus-glib ) +" +DEPEND="${RDEPEND} + app-text/docbook2X + app-text/gnome-doc-utils[${PYTHON_USEDEP}] + app-text/rarian + dev-libs/libxslt[${PYTHON_USEDEP}] + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext +" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + sed -i \ + -e '/FLAGS_DEBUG/s:-g:-Wall:' \ + -e '/FLAGS_RELEASE/s:-O2:-Wall:' \ + wscript || die +} + +src_configure() { + append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1 + + tc-export AR CC CPP CXX RANLIB + + CCFLAGS="${CFLAGS}" \ + LINKFLAGS="${LDFLAGS}" \ + SGML2MAN="$(type -P docbook2man.pl)" \ + ./waf -v \ + --prefix=/usr \ + --gtk=3 \ + --debug-level=$(use debug && echo debug || echo release) \ + $(use dbus || echo --disable-dbus) \ + configure || die +} + +src_compile() { + ./waf -v build || die +} + +src_install() { + ./waf -v --destdir="${D}" install || die + + doman ${PN}.1 + dodoc AUTHORS ChangeLog README RELEASE-NOTES TODO + + dodoc Xiphos.ogg + docompress -x /usr/share/doc/${PF}/Xiphos.ogg + + rm -rf "${ED}"/usr/share/doc/${PN} +} + +pkg_preinst() { gnome2_icon_savelist; } +pkg_postinst() { gnome2_icon_cache_update; } +pkg_postrm() { gnome2_icon_cache_update; } |