games-engines/love: add documentation to love.exlib

This commit is contained in:
Julian Ospald 2016-02-28 19:32:34 +01:00
parent 9c10f13d65
commit a0828458a6

View File

@ -1,6 +1,19 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de> # Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# Purpose: an exlib dealing with installation of the love engine
# Maintainer: Julian Ospald <hasufell@posteo.de>
# Exports: src_prepare src_install pkg_postinst
# Side-effects: - adds build and runtime dependencies
# - sets $SUMMARY, $WORK, $HOMEPAGE, $DOWNLOADS, $LICENCES,
# $DEFAULT_SRC_CONFIGURE_PARAMS,
# $DEFAULT_SRC_INSTALL_EXTRA_DOCS,
# - imports alternatives, lua,
# autotools depending on $LOVE_AUTOCONF
#
# Usage
# Set LOVE_AUTOCONF before 'require' to force autoreconf
require alternatives require alternatives
require lua [ whitelist="5.1" multibuild="false" ] require lua [ whitelist="5.1" multibuild="false" ]
@ -15,7 +28,6 @@ HOMEPAGE="http://love2d.org/"
DOWNLOADS="https://bitbucket.org/rude/love/downloads/love-${PV}-linux-src.tar.gz" DOWNLOADS="https://bitbucket.org/rude/love/downloads/love-${PV}-linux-src.tar.gz"
LICENCES="ZLIB" LICENCES="ZLIB"
MYOPTIONS=""
DEPENDENCIES=" DEPENDENCIES="
build: build:
@ -45,6 +57,7 @@ fi
DEFAULT_SRC_INSTALL_EXTRA_DOCS=( "readme.md" "changes.txt" ) DEFAULT_SRC_INSTALL_EXTRA_DOCS=( "readme.md" "changes.txt" )
# Exported 'src_prepare'.
love_src_prepare() { love_src_prepare() {
if [[ -n ${LOVE_AUTOCONF} ]]; then if [[ -n ${LOVE_AUTOCONF} ]]; then
edo cp platform/unix/{configure.ac,Makefile.am} . edo cp platform/unix/{configure.ac,Makefile.am} .
@ -55,10 +68,12 @@ love_src_prepare() {
fi fi
} }
# Exported 'src_install'.
love_src_install() { love_src_install() {
newbin src/${PN} ${PN}-${SLOT} newbin src/${PN} ${PN}-${SLOT}
emagicdocs emagicdocs
# set up alternatives based on SLOT
local host=$(exhost --target) local host=$(exhost --target)
local binaries=( love love-${SLOT} ) local binaries=( love love-${SLOT} )
@ -67,6 +82,7 @@ love_src_install() {
done done
} }
# Exported 'pkg_postinst'.
love_pkg_postinst() { love_pkg_postinst() {
alternatives_pkg_postinst alternatives_pkg_postinst
} }