mustang-3.2.2.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. MY_PN="MUSTANG"
  6. SRC_P="${PN}_v${PV}"
  7. MY_P="${MY_PN}_v${PV}"
  8. DESCRIPTION="MUltiple STructural AligNment AlGorithm"
  9. HOMEPAGE="http://www.csse.monash.edu.au/~karun/Site/mustang.html"
  10. SRC_URI="http://www.csse.monash.edu.au/~karun/${PN}/${PN}_v${PV}.tgz"
  11. LICENSE="BSD"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  14. IUSE=""
  15. S="${WORKDIR}/${MY_P}"
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${PN}-3.2.1-gcc-4.7.patch
  18. sed -e 's:3.2.1:3.2.2:g' -i Makefile || die
  19. }
  20. src_compile() {
  21. emake \
  22. CPP=$(tc-getCXX) \
  23. CPPFLAGS="${CXXFLAGS}" \
  24. LDFLAGS="${LDFLAGS}"
  25. }
  26. src_test() {
  27. ./bin/${P} -f ./data/test/test_zf-CCHH || die
  28. }
  29. src_install() {
  30. newbin bin/${P} ${PN}
  31. doman man/${PN}.1
  32. dodoc README
  33. }
  34. pkg_postinst() {
  35. elog "If you use this program for an academic paper, please cite:"
  36. elog "Arun S. Konagurthu, James C. Whisstock, Peter J. Stuckey, and Arthur M. Lesk"
  37. elog "Proteins: Structure, Function, and Bioinformatics. 64(3):559-574, Aug. 2006"
  38. }