games-emulation/onscripter-yuri: new package, add 0.7.6_beta1-r1
This commit is contained in:
1 parent
349d9cf67c
commit
b9b90ad948
5 files changed
+91
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST onscripter-yuri-0.7.6_beta1.tar.gz 8759012 BLAKE2B 93dce0ce1e77e2a5e34e85ea1fcc2bf00445505b6c561a74ee82bf17143bbdd84bac6c96272c38a703ee6c9c7542ab15605cb21184ba6206d14f0f3879ad871e SHA512 04a80557e6ad3a48ff3e7076c4066e6635478582df90a72d020fce61b5a60892fceb3397bb5d7621781ea1a4dd0ca4b2637398ea9d5daab5fcf8167c62d61fd7
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 27060fc..9251167 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -57,7 +57,7 @@ function(config_linux TARGET_NAME)
|
||||
SDL2::SDL2
|
||||
jpeg
|
||||
bz2
|
||||
- lua
|
||||
+ ${LUA_LIBRARIES}
|
||||
dl
|
||||
SDL2_ttf
|
||||
SDL2_image
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 27060fc..55bbde9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -49,7 +49,7 @@ function(config_linux TARGET_NAME)
|
||||
pkg_check_modules(SDL2_IMAGE REQUIRED SDL2_image)
|
||||
pkg_check_modules(SDL2_MIXER REQUIRED SDL2_mixer)
|
||||
pkg_check_modules(JPEG REQUIRED libjpeg)
|
||||
- find_package(Lua REQUIRED)
|
||||
+ find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
|
||||
target_include_directories(${TARGET_NAME} PRIVATE
|
||||
${LUA_INCLUDE_DIR}
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>me@puqns67.icu</email>
|
||||
<name>Puqns67</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">YuriSizuku/OnscripterYuri</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} )
|
||||
|
||||
inherit cmake lua-single
|
||||
|
||||
_PN="OnscripterYuri"
|
||||
_PV="${PV/_beta/beta}"
|
||||
|
||||
DESCRIPTION="An enhancement ONScripter project porting to many platforms, especially web"
|
||||
HOMEPAGE="https://github.com/YuriSizuku/OnscripterYuri"
|
||||
SRC_URI="https://github.com/YuriSizuku/OnscripterYuri/archive/refs/tags/v${_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${_PN}-${_PV}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${LUA_DEPS}
|
||||
media-libs/mesa
|
||||
app-arch/bzip2
|
||||
media-libs/libjpeg-turbo
|
||||
media-libs/libpng
|
||||
media-libs/libsdl2
|
||||
media-libs/sdl2-image
|
||||
media-libs/sdl2-mixer
|
||||
media-libs/sdl2-ttf
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.7.6_beta1-r1-cmake_lua_version.patch"
|
||||
"${FILESDIR}/${PN}-0.7.6_beta1-lua_link_error.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
lua-single_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DLUA_VERSION="$(lua_get_version)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in new issue
Block a user