xiphos-4.0.4.ebuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit flag-o-matic gnome2-utils python-single-r1 toolchain-funcs
  6. MY_PV="${PV}-20150830"
  7. MY_P="${PN}-${MY_PV}"
  8. DESCRIPTION="A bible study frontend for Sword (formerly known as GnomeSword)"
  9. HOMEPAGE="http://xiphos.org/"
  10. SRC_URI="mirror://sourceforge/gnomesword/${MY_P}.tar.gz"
  11. LICENSE="GPL-2 FDL-1.1 LGPL-2 MIT MPL-1.1"
  12. SLOT="0"
  13. KEYWORDS="amd64"
  14. IUSE="dbus debug"
  15. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  16. RDEPEND="${PYTHON_DEPS}
  17. >=app-text/sword-1.7.4
  18. >=dev-libs/glib-2[${PYTHON_USEDEP}]
  19. dev-libs/libxml2[${PYTHON_USEDEP}]
  20. gnome-base/gconf[${PYTHON_USEDEP}]
  21. gnome-extra/gtkhtml:4.0
  22. >=gnome-extra/libgsf-1.14
  23. net-libs/webkit-gtk:3
  24. x11-libs/gtk+:3
  25. dbus? ( dev-libs/dbus-glib )
  26. "
  27. DEPEND="${RDEPEND}
  28. app-text/docbook2X
  29. app-text/gnome-doc-utils[${PYTHON_USEDEP}]
  30. app-text/rarian
  31. dev-libs/libxslt[${PYTHON_USEDEP}]
  32. dev-util/intltool
  33. net-libs/biblesync
  34. virtual/pkgconfig
  35. sys-devel/gettext
  36. "
  37. pkg_setup() {
  38. python-single-r1_pkg_setup
  39. }
  40. src_prepare() {
  41. sed -i \
  42. -e '/FLAGS_DEBUG/s:-g:-Wall:' \
  43. -e '/FLAGS_RELEASE/s:-O2:-Wall:' \
  44. wscript || die
  45. }
  46. src_configure() {
  47. append-cppflags -DNO_SWORD_SET_RENDER_NOTE_NUMBERS=1
  48. tc-export AR CC CPP CXX RANLIB
  49. CCFLAGS="${CFLAGS}" \
  50. LINKFLAGS="${LDFLAGS}" \
  51. SGML2MAN="$(type -P docbook2man.pl)" \
  52. ./waf -v \
  53. --prefix=/usr \
  54. --gtk=3 \
  55. --debug-level=$(use debug && echo debug || echo release) \
  56. $(use dbus || echo --disable-dbus) \
  57. configure || die
  58. }
  59. src_compile() {
  60. ./waf -v build || die
  61. }
  62. src_install() {
  63. ./waf -v --destdir="${D}" install || die
  64. doman ${PN}.1
  65. dodoc AUTHORS ChangeLog README RELEASE-NOTES TODO
  66. dodoc Xiphos.ogg
  67. docompress -x /usr/share/doc/${PF}/Xiphos.ogg
  68. rm -rf "${ED}"/usr/share/doc/${PN}
  69. }
  70. pkg_preinst() { gnome2_icon_savelist; }
  71. pkg_postinst() { gnome2_icon_cache_update; }
  72. pkg_postrm() { gnome2_icon_cache_update; }