flinker-1.72.ebuild 662 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit toolchain-funcs
  5. DESCRIPTION="GBA cart writing utility by Jeff Frohwein"
  6. HOMEPAGE="http://www.devrs.com/gba/software.php#misc"
  7. SRC_URI="http://www.devrs.com/gba/files/flgba.zip"
  8. LICENSE="public-domain"
  9. SLOT="0"
  10. KEYWORDS="x86"
  11. IUSE=""
  12. RDEPEND=""
  13. DEPEND="app-arch/unzip"
  14. S=${WORKDIR}
  15. src_prepare() {
  16. sed -i \
  17. -e '/unistd/s:^//::' \
  18. -e 's:asm/io.h:sys/io.h:' \
  19. fl.c || die
  20. echo >> fl.c
  21. echo >> cartlib.c
  22. }
  23. src_compile() {
  24. $(tc-getCC) ${LDFLAGS} -o FLinker ${CFLAGS} fl.c || die
  25. }
  26. src_install() {
  27. dobin FLinker
  28. dodoc readme
  29. }