ksdssp-040728-r1.ebuild 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit toolchain-funcs
  5. DESCRIPTION="An open source implementation of sci-chemistry/dssp"
  6. HOMEPAGE="http://www.cgl.ucsf.edu/Overview/software.html"
  7. SRC_URI="mirror://gentoo/${P}.shar"
  8. SLOT="0"
  9. LICENSE="BSD"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  11. IUSE=""
  12. RDEPEND="sci-libs/libpdb++"
  13. DEPEND="${RDEPEND}
  14. app-arch/sharutils"
  15. S="${WORKDIR}"/${PN}
  16. src_unpack() {
  17. "${EPREFIX}/usr/bin/unshar" "${DISTDIR}"/${A} || die
  18. }
  19. src_compile() {
  20. emake \
  21. CXX="$(tc-getCXX)" \
  22. PDBINCDIR="${EPREFIX}/usr/include/libpdb++" \
  23. BINDIR="${EPREFIX}/usr/bin" \
  24. .TARGET="${PN}.csh" \
  25. .CURDIR="${S}" \
  26. CC="$(tc-getCXX)" \
  27. LINKER="$(tc-getCXX)" \
  28. OPT="${CXXFLAGS}" \
  29. LFLAGS="${LDFLAGS}" \
  30. ${PN} ${PN}.csh
  31. }
  32. src_install() {
  33. dobin ${PN}{,.csh}
  34. dodoc README
  35. dohtml ${PN}.html
  36. doman ${PN}.1
  37. }