2017-02-16 16:06:57 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2016-06-12 14:35:36 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
inherit eutils fixheadtails multilib
|
|
|
|
|
|
|
|
DESCRIPTION="Erlang bindings for the SDL library"
|
|
|
|
HOMEPAGE="http://esdl.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/esdl/${P}.src.tgz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2017-02-17 21:43:11 +03:00
|
|
|
KEYWORDS="~amd64 ppc ppc64 ~x86"
|
2016-06-12 14:35:36 +03:00
|
|
|
IUSE="image truetype"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-lang/erlang-14[wxwidgets]
|
|
|
|
media-libs/libsdl[opengl]
|
|
|
|
image? ( media-libs/sdl-image )
|
|
|
|
truetype? ( media-libs/sdl-ttf )
|
|
|
|
virtual/opengl
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
dev-util/rebar
|
|
|
|
"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
rebar compile || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
ERLANG_DIR="/usr/$(get_libdir)/erlang/lib"
|
|
|
|
ESDL_DIR="${ERLANG_DIR}/${P}"
|
|
|
|
|
|
|
|
find -name 'Makefile*' -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
insinto ${ESDL_DIR}
|
|
|
|
doins -r ebin c_src include priv src
|
|
|
|
}
|