logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

genie-1170.ebuild (1098B)


  1. # Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. LUA_COMPAT=( lua5-3 )
  5. inherit lua-single
  6. DESCRIPTION="GENie project generator tool (a fork of premake by Branimir Karadžić)"
  7. HOMEPAGE="https://github.com/bkaradzic/GENie"
  8. # No proper release/tag tarballs
  9. EGIT_COMMIT="81e594dc974866b5d301711258c774cbf3c68883"
  10. SRC_URI="https://github.com/bkaradzic/GENie/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz"
  11. S="${WORKDIR}/GENie-${EGIT_COMMIT}/"
  12. LICENSE="MIT BSD"
  13. SLOT="0"
  14. KEYWORDS="~amd64"
  15. REQUIRED_USE="${LUA_REQUIRED_USE}"
  16. DEPEND="${LUA_DEPS}"
  17. RDEPEND="${DEPEND}"
  18. BDEPEND="virtual/pkgconfig"
  19. DOCS=( "docs/scripting-reference.md" )
  20. PATCHES=( "${FILESDIR}/genie-1170-system-lua.patch" )
  21. src_prepare() {
  22. default
  23. sed -i \
  24. -e 's;^CC\W*=.*;CC ?= cc;' \
  25. -e 's;^CXX\W*=.*;CXX ?= c++;' \
  26. -e 's;^AR\W*=.*;AR ?= ar;' \
  27. build/gmake.linux/genie.make || die
  28. rm -r src/host/lua-5.3.0 || die
  29. }
  30. src_compile() {
  31. emake verbose=1 SILENT='' ARCH=''
  32. }
  33. src_install() {
  34. dobin bin/linux/genie
  35. }