geant-docs-4.10.0.ebuild 963 B

1234567891011121314151617181920212223242526272829
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. DESCRIPTION="User documentation for Geant4 physics simulation toolkit"
  5. HOMEPAGE="https://geant4.web.cern.ch/geant4/support/userdocuments.shtml"
  6. SRC_DOC="http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides"
  7. SRC_URI="
  8. ${SRC_DOC}/InstallationGuide/fo/BookInstalGuide.pdf -> BookInstalGuide-${PV}.pdf
  9. ${SRC_DOC}/ForApplicationDeveloper/fo/BookForAppliDev.pdf -> BookForAppliDev-${PV}.pdf
  10. ${SRC_DOC}/ForToolkitDeveloper/fo/BookForToolDev.pdf -> BookForToolDev-${PV}.pdf
  11. ${SRC_DOC}/PhysicsReferenceManual/fo/PhysicsReferenceManual.pdf -> PhysicsReferenceManual-${PV}.pdf
  12. "
  13. LICENSE="geant4"
  14. SLOT="4"
  15. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  16. IUSE=""
  17. S="${DISTDIR}"
  18. src_install() {
  19. local d
  20. for d in *pdf; do newdoc ${d} ${d/-${PV}}; done
  21. echo GEANT_DOC_DIR="${EPREFIX%/}/usr/share/doc/${PF}" >> 99geant-doc
  22. doenvd 99geant-doc
  23. }