From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 56C0F158064 for ; Tue, 7 May 2024 17:23:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AA80E2B17; Tue, 7 May 2024 17:23:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65292E2B17 for ; Tue, 7 May 2024 17:23:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 480593430F0 for ; Tue, 7 May 2024 17:23:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD13093E for ; Tue, 7 May 2024 17:23:39 +0000 (UTC) From: "Denis Strizhkin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Strizhkin" Message-ID: <1715102557.c85edea06695fa1c0b7d91ed12d191680a4bfb55.strdenis02@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/raylib/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/raylib/Manifest media-libs/raylib/metadata.xml media-libs/raylib/raylib-5.0.ebuild media-libs/raylib/raylib-9999.ebuild X-VCS-Directories: media-libs/raylib/ X-VCS-Committer: strdenis02 X-VCS-Committer-Name: Denis Strizhkin X-VCS-Revision: c85edea06695fa1c0b7d91ed12d191680a4bfb55 X-VCS-Branch: dev Date: Tue, 7 May 2024 17:23:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d731bdce-b6dd-45d4-990a-7a65384cb332 X-Archives-Hash: 50e78315cab25b76583d5382b7b5e348 commit: c85edea06695fa1c0b7d91ed12d191680a4bfb55 Author: Denis Strizhkin gmail com> AuthorDate: Tue May 7 17:22:22 2024 +0000 Commit: Denis Strizhkin gmail com> CommitDate: Tue May 7 17:22:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c85edea0 media-libs/raylib: new package, add 5.0, 9999 Signed-off-by: Denis Strizhkin gmail.com> media-libs/raylib/Manifest | 1 + media-libs/raylib/metadata.xml | 14 ++++++++ media-libs/raylib/raylib-5.0.ebuild | 65 ++++++++++++++++++++++++++++++++++++ media-libs/raylib/raylib-9999.ebuild | 65 ++++++++++++++++++++++++++++++++++++ 4 files changed, 145 insertions(+) diff --git a/media-libs/raylib/Manifest b/media-libs/raylib/Manifest new file mode 100644 index 0000000000..e13b8a3f73 --- /dev/null +++ b/media-libs/raylib/Manifest @@ -0,0 +1 @@ +DIST raylib-5.0.tar.gz 32701105 BLAKE2B ee8ef069cd2a7b91efd1d97e8ed9076620c216fb0bf2eb7517624472d157c2d20919a6c54d7f8160e34c1d1a889f1766f5a94c6577bbb68f779e76a5160229dd SHA512 5956bc1646b99baac6eb1652c4d72e96af874337158672155ba144f131de8a4fd19291a58335a92fcaaa2fc818682f93ff4230af0f815efb8b49f7d2a162e9b0 diff --git a/media-libs/raylib/metadata.xml b/media-libs/raylib/metadata.xml new file mode 100644 index 0000000000..922b621bf3 --- /dev/null +++ b/media-libs/raylib/metadata.xml @@ -0,0 +1,14 @@ + + + + + strdenis02@gmail.com + Denis Strizhkin + + + Link raylib against system GLFW instead of embedded one + + + raysan5/raylib + + diff --git a/media-libs/raylib/raylib-5.0.ebuild b/media-libs/raylib/raylib-5.0.ebuild new file mode 100644 index 0000000000..756ae44614 --- /dev/null +++ b/media-libs/raylib/raylib-5.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A simple and easy-to-use library to learn videogames programming" +HOMEPAGE="https://www.raylib.com/" + +LICENSE="ZLIB" +SLOT="0" + +IUSE="alsa examples static-libs +system-glfw X wayland" +REQUIRED_USE="|| ( system-glfw || ( X wayland ) )" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/raysan5/raylib.git" + inherit git-r3 +else + SRC_URI="https://github.com/raysan5/raylib/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/raylib-${PV}" +fi + +RDEPEND=" + alsa? ( media-libs/alsa-lib ) + X? ( + virtual/opengl + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXxf86vm + ) + wayland? ( + dev-libs/wayland + media-libs/mesa[wayland] + ) + system-glfw? ( >=media-libs/glfw-3.2.1 ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs ON OFF) + -DUSE_AUDIO=$(usex alsa ON OFF) + -DUSE_EXTERNAL_GLFW=$(usex system-glfw ON OFF) + -DBUILD_EXAMPLES=OFF + ) + if use !system-glfw; then + mycmakeargs+=(-DGLFW_BUILD_WAYLAND=$(usex wayland ON OFF)) + mycmakeargs+=(-DGLFW_BUILD_X11=$(usex X ON OFF)) + fi + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use examples; then + dodoc -r "${S}"/examples/* + fi +} diff --git a/media-libs/raylib/raylib-9999.ebuild b/media-libs/raylib/raylib-9999.ebuild new file mode 100644 index 0000000000..756ae44614 --- /dev/null +++ b/media-libs/raylib/raylib-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A simple and easy-to-use library to learn videogames programming" +HOMEPAGE="https://www.raylib.com/" + +LICENSE="ZLIB" +SLOT="0" + +IUSE="alsa examples static-libs +system-glfw X wayland" +REQUIRED_USE="|| ( system-glfw || ( X wayland ) )" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/raysan5/raylib.git" + inherit git-r3 +else + SRC_URI="https://github.com/raysan5/raylib/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/raylib-${PV}" +fi + +RDEPEND=" + alsa? ( media-libs/alsa-lib ) + X? ( + virtual/opengl + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXxf86vm + ) + wayland? ( + dev-libs/wayland + media-libs/mesa[wayland] + ) + system-glfw? ( >=media-libs/glfw-3.2.1 ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex !static-libs ON OFF) + -DUSE_AUDIO=$(usex alsa ON OFF) + -DUSE_EXTERNAL_GLFW=$(usex system-glfw ON OFF) + -DBUILD_EXAMPLES=OFF + ) + if use !system-glfw; then + mycmakeargs+=(-DGLFW_BUILD_WAYLAND=$(usex wayland ON OFF)) + mycmakeargs+=(-DGLFW_BUILD_X11=$(usex X ON OFF)) + fi + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use examples; then + dodoc -r "${S}"/examples/* + fi +}