lrmi-0.10-r1.ebuild 925 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils toolchain-funcs
  4. DESCRIPTION="library for calling real mode BIOS routines under Linux"
  5. HOMEPAGE="http://www.sourceforge.net/projects/lrmi/"
  6. SRC_URI="mirror://sourceforge/lrmi/${P}.tar.gz"
  7. LICENSE="MIT"
  8. SLOT="0"
  9. KEYWORDS="x86"
  10. IUSE=""
  11. src_unpack() {
  12. unpack ${A}
  13. cd "${S}"
  14. epatch "${FILESDIR}"/${P}-kernel-2.6.26.patch
  15. epatch "${FILESDIR}"/${P}-ldflags.patch
  16. }
  17. src_compile() {
  18. tc-export CC AR RANLIB
  19. emake CFLAGS="${CFLAGS} -Wall" LDFLAGS="${LDFLAGS}" || die "emake failed."
  20. }
  21. src_install() {
  22. dobin vbetest || die "dobin failed."
  23. dolib.a liblrmi.a || die "dolib.a failed."
  24. dolib.so liblrmi.so.${PV} || die "dolib.so failed."
  25. dosym liblrmi.so.${PV} /usr/lib/liblrmi.so
  26. dosym liblrmi.so.${PV} /usr/lib/liblrmi.so.${PV%%.*}
  27. insinto /usr/include
  28. doins lrmi.h vbe.h || die "doins failed."
  29. }