commit: 416dd4ac8a8b9184946482bf2db3f10ee8e35f63 parent 67abcddbbf9b9bc940efbe449f114c19542636a4 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Mon, 20 Feb 2023 16:52:11 +0100 dev-util/genie: new package, add 1170Diffstat:
A | dev-util/genie/Manifest | 1 | + |
A | dev-util/genie/files/genie-1170-system-lua.patch | 267 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | dev-util/genie/genie-1170.ebuild | 48 | ++++++++++++++++++++++++++++++++++++++++++++++++ |
3 files changed, 316 insertions(+), 0 deletions(-)diff --git a/dev-util/genie/Manifest b/dev-util/genie/Manifest
@@ -0,0 +1 @@ +DIST genie-81e594dc974866b5d301711258c774cbf3c68883.tar.gz 542716 BLAKE2B b07e0285836383d91dcd6554b1f8c6ef5c6686e5726ef9c490042928a1b146125eae28d79353be278d2491a7c940e31c5d78616ca2788236a81b2be11f7e58b7 SHA512 18928638a7fb73d588a96e617d04b0f44d4531615e361b32b50d98630de724d6ce6e4fcea895dd4a1b3216ed367270ee05c4b76cf195b2e9883485a4ba1f43d8diff --git a/dev-util/genie/files/genie-1170-system-lua.patch b/dev-util/genie/files/genie-1170-system-lua.patch
@@ -0,0 +1,267 @@ +diff --git a/build/gmake.linux/genie.make.old b/build/gmake.linux/genie.make +index 371360e..28aea12 100644 +--- a/build/gmake.linux/genie.make.old ++++ b/build/gmake.linux/genie.make +@@ -50,7 +50,7 @@ ifeq ($(config),release) + TARGETDIR = ../../bin/linux + override TARGET = $(TARGETDIR)/genie + DEFINES += -DNDEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_FILE_OFFSET_BITS=64 +- INCLUDES += -I"../../src/host/lua-5.3.0/src" ++ INCLUDES += `pkg-config --cflags lua` + ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) + ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os -m64 -Wno-implicit-fallthrough + ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -Os -m64 -Wno-implicit-fallthrough +@@ -60,7 +60,7 @@ ifeq ($(config),release) + ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) + ALL_LDFLAGS += $(LDFLAGS) -L"." -s -rdynamic + LIBDEPS += +- LDDEPS += ++ LDDEPS += `pkg-config --libs lua` + LDRESP = + LIBS += $(LDDEPS) -ldl -lm + EXTERNAL_LIBS += +@@ -68,39 +68,6 @@ ifeq ($(config),release) + LINKCMD = $(CC) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) + OBJRESP = + OBJECTS := \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \ + $(OBJDIR)/src/host/os_chdir.o \ + $(OBJDIR)/src/host/os_copyfile.o \ + $(OBJDIR)/src/host/os_getcwd.o \ +@@ -137,7 +104,7 @@ ifeq ($(config),debug) + TARGETDIR = ../../bin/linux + override TARGET = $(TARGETDIR)/genie + DEFINES += -D_DEBUG -DLUA_COMPAT_MODULE -DLUA_USE_POSIX -DLUA_USE_DLOPEN -D_FILE_OFFSET_BITS=64 +- INCLUDES += -I"../../src/host/lua-5.3.0/src" ++ INCLUDES += `pkg-config --cflags lua` + ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) + ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g -m64 -Wno-implicit-fallthrough + ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -Wall -Wextra -g -m64 -Wno-implicit-fallthrough +@@ -147,7 +114,7 @@ ifeq ($(config),debug) + ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) + ALL_LDFLAGS += $(LDFLAGS) -L"." -rdynamic + LIBDEPS += +- LDDEPS += ++ LDDEPS += `pkg-config --libs lua` + LDRESP = + LIBS += $(LDDEPS) -ldl -lm + EXTERNAL_LIBS += +@@ -155,39 +122,6 @@ ifeq ($(config),debug) + LINKCMD = $(CC) -o $(TARGET) $(LINKOBJS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS) + OBJRESP = + OBJECTS := \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lapi.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lcode.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lctype.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldo.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ldump.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lgc.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/linit.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/liolib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/llex.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lmem.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lobject.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/loslib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lparser.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstate.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstring.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltable.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/ltm.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lundump.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lvm.o \ +- $(OBJDIR)/src/host/lua-5.3.0/src/lzio.o \ + $(OBJDIR)/src/host/os_chdir.o \ + $(OBJDIR)/src/host/os_copyfile.o \ + $(OBJDIR)/src/host/os_getcwd.o \ +@@ -222,7 +156,6 @@ endif + OBJDIRS := \ + $(OBJDIR) \ + $(OBJDIR)/src/host \ +- $(OBJDIR)/src/host/lua-5.3.0/src \ + + RESOURCES := \ + +@@ -282,138 +215,6 @@ $(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) + $(SILENT) echo $^ > $@ + endif + +-$(OBJDIR)/src/host/lua-5.3.0/src/lapi.o: ../../src/host/lua-5.3.0/src/lapi.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lauxlib.o: ../../src/host/lua-5.3.0/src/lauxlib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lbaselib.o: ../../src/host/lua-5.3.0/src/lbaselib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lbitlib.o: ../../src/host/lua-5.3.0/src/lbitlib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lcode.o: ../../src/host/lua-5.3.0/src/lcode.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lcorolib.o: ../../src/host/lua-5.3.0/src/lcorolib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lctype.o: ../../src/host/lua-5.3.0/src/lctype.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ldblib.o: ../../src/host/lua-5.3.0/src/ldblib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ldebug.o: ../../src/host/lua-5.3.0/src/ldebug.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ldo.o: ../../src/host/lua-5.3.0/src/ldo.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ldump.o: ../../src/host/lua-5.3.0/src/ldump.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lfunc.o: ../../src/host/lua-5.3.0/src/lfunc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lgc.o: ../../src/host/lua-5.3.0/src/lgc.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/linit.o: ../../src/host/lua-5.3.0/src/linit.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/liolib.o: ../../src/host/lua-5.3.0/src/liolib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/llex.o: ../../src/host/lua-5.3.0/src/llex.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lmathlib.o: ../../src/host/lua-5.3.0/src/lmathlib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lmem.o: ../../src/host/lua-5.3.0/src/lmem.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/loadlib.o: ../../src/host/lua-5.3.0/src/loadlib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lobject.o: ../../src/host/lua-5.3.0/src/lobject.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lopcodes.o: ../../src/host/lua-5.3.0/src/lopcodes.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/loslib.o: ../../src/host/lua-5.3.0/src/loslib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lparser.o: ../../src/host/lua-5.3.0/src/lparser.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lstate.o: ../../src/host/lua-5.3.0/src/lstate.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lstring.o: ../../src/host/lua-5.3.0/src/lstring.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lstrlib.o: ../../src/host/lua-5.3.0/src/lstrlib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ltable.o: ../../src/host/lua-5.3.0/src/ltable.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ltablib.o: ../../src/host/lua-5.3.0/src/ltablib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/ltm.o: ../../src/host/lua-5.3.0/src/ltm.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lundump.o: ../../src/host/lua-5.3.0/src/lundump.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lutf8lib.o: ../../src/host/lua-5.3.0/src/lutf8lib.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lvm.o: ../../src/host/lua-5.3.0/src/lvm.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- +-$(OBJDIR)/src/host/lua-5.3.0/src/lzio.o: ../../src/host/lua-5.3.0/src/lzio.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host/lua-5.3.0/src +- @echo $(notdir $<) +- $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" +- + $(OBJDIR)/src/host/os_chdir.o: ../../src/host/os_chdir.c $(GCH) $(MAKEFILE) | $(OBJDIR)/src/host + @echo $(notdir $<) + $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<"diff --git a/dev-util/genie/genie-1170.ebuild b/dev-util/genie/genie-1170.ebuild
@@ -0,0 +1,48 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-3 ) +inherit lua-single + +DESCRIPTION="GENie project generator tool (a fork of premake by Branimir Karadžić)" +HOMEPAGE="https://github.com/bkaradzic/GENie" + +# No proper release/tag tarballs +EGIT_COMMIT="81e594dc974866b5d301711258c774cbf3c68883" +SRC_URI="https://github.com/bkaradzic/GENie/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz" +S="${WORKDIR}/GENie-${EGIT_COMMIT}/" + +LICENSE="MIT BSD" +SLOT="0" +KEYWORDS="~amd64" + +REQUIRED_USE="${LUA_REQUIRED_USE}" +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +DOCS=( "docs/scripting-reference.md" ) + +PATCHES=( "${FILESDIR}/genie-1170-system-lua.patch" ) + +src_prepare() { + default + + sed -i \ + -e 's;^CC\W*=.*;CC ?= cc;' \ + -e 's;^CXX\W*=.*;CXX ?= c++;' \ + -e 's;^AR\W*=.*;AR ?= ar;' \ + build/gmake.linux/genie.make || die + + rm -r src/host/lua-5.3.0 || die +} + +src_compile() { + emake verbose=1 SILENT='' ARCH='' +} + +src_install() { + dobin bin/linux/genie +}