1
0
flewkey-overlay/media-gfx/glslviewer/glslviewer-9999.ebuild
Ryan Fox f24ec4bd04
media-gfx/glslviewer: Bump Ada
I won't bump the version since the build is still broken.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2022-05-12 19:39:45 -07:00

49 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="b3f4158d53b34454aa3b3837acf50f436050a346"
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"
IUSE="ncurses"
DEPEND="ncurses? ( sys-libs/ncurses )"
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"
}