forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-engines/love: Re-add live ebuild
Closes: https://bugs.gentoo.org/646256 Package-Manager: Portage-2.3.40, Repoman-2.3.9
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 1999-2018 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
inherit gnome2-utils xdg-utils | ||
|
||
if [[ ${PV} == 9999* ]]; then | ||
inherit mercurial | ||
EHG_REPO_URI="https://bitbucket.org/rude/${PN}" | ||
SRC_URI="" | ||
KEYWORDS="" | ||
else | ||
SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz" | ||
KEYWORDS="~amd64 ~arm ~x86" | ||
fi | ||
|
||
DESCRIPTION="A framework for 2D games in Lua" | ||
HOMEPAGE="http://love2d.org/" | ||
|
||
LICENSE="ZLIB" | ||
SLOT="0" | ||
IUSE="+luajit" | ||
|
||
RDEPEND="sys-libs/zlib | ||
!luajit? ( dev-lang/lua:0[deprecated] ) | ||
luajit? ( dev-lang/luajit:2 ) | ||
media-libs/freetype | ||
media-libs/libmodplug | ||
media-libs/libsdl2[joystick,opengl] | ||
media-libs/libogg | ||
media-libs/libtheora | ||
media-libs/libvorbis | ||
media-libs/openal | ||
media-sound/mpg123 | ||
virtual/opengl" | ||
DEPEND="${RDEPEND}" | ||
|
||
DOCS=( "readme.md" "changes.txt" ) | ||
|
||
src_prepare() { | ||
default | ||
if [[ ${PV} == 9999* ]]; then | ||
./platform/unix/automagic || die | ||
fi | ||
} | ||
|
||
src_configure() { | ||
econf --with-lua=$(usex luajit luajit lua) | ||
} | ||
|
||
pkg_postinst() { | ||
gnome2_icon_cache_update | ||
xdg_desktop_database_update | ||
xdg_mimeinfo_database_update | ||
} | ||
|
||
pkg_postrm() { | ||
gnome2_icon_cache_update | ||
xdg_desktop_database_update | ||
xdg_mimeinfo_database_update | ||
} |