libpdb-991112-r1.ebuild 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="PDB Record I/O Libraries -- c version"
  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="static-libs"
  12. RDEPEND=""
  13. DEPEND="${RDEPEND}
  14. app-arch/sharutils"
  15. S="${WORKDIR}"
  16. src_unpack() {
  17. "${EPREFIX}/usr/bin/unshar" "${DISTDIR}"/${A} || die
  18. }
  19. src_prepare() {
  20. epatch "${FILESDIR}"/${P}-dynlib+flags.patch
  21. tc-export CC RANLIB AR
  22. }
  23. src_compile() {
  24. emake ${PN}.so
  25. use static-libs && emake ${PN}.a
  26. }
  27. src_install() {
  28. dolib.so ${PN}.so*
  29. use static-libs && dolib.a ${PN}.a
  30. insinto /usr/include/${PN}
  31. doins *.h
  32. }