logo

overlay

My own overlay for experimentations, use with caution, no support is provided
commit: 3a6c727621cff6546fde8a7c680337ae4832e9a8
parent 2b646419fd971469ac5b45c3eb229a981402bdb2
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 27 Nov 2020 01:36:49 +0100

media-libs/libsdl: New Package, sdl12-compat

Diffstat:

Amedia-libs/libsdl/Manifest1+
Amedia-libs/libsdl/libsdl-9999.ebuild30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest @@ -0,0 +1 @@ +DIST SDL-1.2.15.tar.gz 3920622 BLAKE2B ecd4b82d7de6e4ca0de1317ad34bcd957a5a0d319e94c5b705f8b30aa53136ac08c88a6dcd90ad0ac84e607ba9483c2366921c4b25c8c53973cee62cfe97d204 SHA512 ac392d916e6953b0925a7cbb0f232affea33339ef69b47a0a7898492afb9784b93138986df53d6da6d3e2ad79af1e9482df565ecca30f89428be0ae6851b1adc diff --git a/media-libs/libsdl/libsdl-9999.ebuild b/media-libs/libsdl/libsdl-9999.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit mercurial cmake + +DESCRIPTION="Simple Direct Media Layer" +HOMEPAGE="https://www.libsdl.org/" +EHG_REPO_URI="https://hg.libsdl.org/sdl12-compat" +S="${WORKDIR}/sdl12-compat" + +LICENSE="ZLIB" +SLOT="0" + +IUSE="" + +src_prepare() { + cmake_src_prepare + + sed -i \ + -e 's;PUBLIC "/usr/local/include/SDL2";PUBLIC "/usr/include/SDL2";' \ + -e 's;test_program(testsprite;#test_program(testsprite;' \ + CMakeLists.txt || die +} + +src_install() { + default + + dolib.so "${BUILD_DIR}/"libSDL-1.2.so* +}