bin86-0.16.20-r2.ebuild 971 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit toolchain-funcs eutils
  5. DESCRIPTION="Assembler and loader used to create kernel bootsector"
  6. HOMEPAGE="http://v3.sk/~lkundrak/dev86/"
  7. SRC_URI="http://v3.sk/~lkundrak/dev86/${P}.tar.gz
  8. https://github.com/lkundrak/dev86/commit/2c95336f19eeff761ecb858c5a2a58484bb3ceeb.patch -> ${PN}-0.16.20-fix_lilo_build.patch"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
  12. IUSE=""
  13. src_prepare() {
  14. sed -i \
  15. -e '/^PREFIX/s:=.*:=$(DESTDIR)/usr:' \
  16. -e '/^MANDIR/s:)/man/man1:)/share/man/man1:' \
  17. -e '/^INSTALL_OPTS/s:-s::' \
  18. -e "/^CFLAGS/s:=.*:=${CFLAGS} -D_POSIX_SOURCE ${CPPFLAGS}:" \
  19. -e "/^LDFLAGS/s:=.*:=${LDFLAGS}:" \
  20. Makefile || die
  21. epatch "${FILESDIR}"/${PN}-0.16.17-amd64-build.patch \
  22. "${DISTDIR}"/${P}-fix_lilo_build.patch
  23. tc-export CC
  24. }
  25. src_install() {
  26. dodir /usr/bin /usr/share/man/man1
  27. default
  28. }