libpdb-991112.ebuild 902 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="3"
  4. inherit eutils multilib 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. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  10. LICENSE="BSD"
  11. IUSE=""
  12. RDEPEND=""
  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_prepare() {
  20. epatch "${FILESDIR}"/${PV}-dynlib.patch
  21. }
  22. src_compile() {
  23. emake \
  24. CC="$(tc-getCC)" \
  25. CFLAGS="${CFLAGS} -fPIC" \
  26. ${PN}.a || die
  27. }
  28. src_install() {
  29. dolib.a ${PN}.a || die
  30. dolib.so ${PN}.so.0.1 || die
  31. dosym ${PN}.so.0.1 /usr/$(get_libdir)/${PN}.so.0
  32. dosym ${PN}.so.0.1 /usr/$(get_libdir)/${PN}.so
  33. insinto /usr/include/${PN}
  34. doins *.h || die
  35. }