sword-module.eclass 832 B

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 1999-2011 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. #
  4. # eclass to simplify installation of Sword modules
  5. # Bugs to theology@gentoo.org
  6. #
  7. HOMEPAGE="http://www.crosswire.org/sword/modules/"
  8. # Sword packages are generally released as FooBar.zip in their 'rawzip' form
  9. # The files are also unversioned, so the packager will need to rename the
  10. # original file to something else and host it somewhere to avoid breaking
  11. # the digest when new versions are released.
  12. SRC_URI="mirror://gentoo/${SWORD_MODULE}-${PV}.zip"
  13. SLOT="0"
  14. IUSE=""
  15. S="${WORKDIR}"
  16. RDEPEND="app-text/sword"
  17. DEPEND="app-arch/unzip"
  18. sword-module_src_install() {
  19. insinto /usr/share/sword/modules
  20. doins -r "${S}"/modules/*
  21. insinto /usr/share/sword/mods.d
  22. doins "${S}"/mods.d/*
  23. }
  24. EXPORT_FUNCTIONS src_install