1
0
flewkey-overlay/media-gfx/glslviewer/glslviewer-2.0.4.ebuild
Ryan Fox f4dfb2ad52
media-gfx/glslviewer: Bump to 2.0.4
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2022-03-06 13:59:47 -08:00

48 lines
1.3 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ ${PV} != *9999* ]]; then
MY_PN="glslViewer"
MY_P="${MY_PN}-${PV}"
ADA_REF="a29e36d9061a51a33bc34f9cfff645c81de8792f"
MINIAUDIO_V="0.10.42"
MINIAUDIO_REF="dbca7a3b44594e0226f887472b31f54aa5f14214"
S="${WORKDIR}/${MY_P}"
SRC_URI="
https://github.com/patriciogonzalezvivo/glslViewer/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/patriciogonzalezvivo/ada/archive/${ADA_REF}.tar.gz -> ada-${ADA_REF}.tar.gz
https://github.com/mackron/miniaudio/archive/${MINIAUDIO_REF}.tar.gz -> miniaudio-${MINIAUDIO_V}.tar.gz
"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/patriciogonzalezvivo/glslViewer.git"
EGIT_SUBMODULES=( deps/ada deps/miniaudio )
fi
DESCRIPTION="Console-based sandbox for GLSL shaders"
HOMEPAGE="http://patriciogonzalezvivo.com/2015/glslViewer/"
LICENSE="BSD"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
if [[ ${PV} != *9999* ]]; then
default
rm -rf "${S}/deps/ada" "${S}/deps/miniaudio" || die
ln -s "${WORKDIR}/ada-${ADA_REF}" "${S}/deps/ada" || die
ln -s "${WORKDIR}/miniaudio-${MINIAUDIO_REF}" "${S}/deps/miniaudio" || die
else
git-r3_src_unpack
fi
}
src_install() {
dobin "${S}/build/glslViewer"
}