summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Benedikt Morbach <moben@exherbo.org> 2017-05-21 23:41:50 +0200
committerAvatar Benedikt Morbach <moben@exherbo.org> 2017-05-22 11:10:32 +0200
commit783fc4914a7155b52d2ca24032b0723624887a2d (patch)
tree173b993bee59d81be90ecfd3290b49d8f346cda8
parent9c09c80b8c4edc17dc6ae440fc0ce6c9e0f6033c (diff)
downloadgames-783fc4914a7155b52d2ca24032b0723624887a2d.tar.gz
games-783fc4914a7155b52d2ca24032b0723624887a2d.tar.xz
mame: make it clearer which src_unpack runs
export_exlib_phases has to be called after requiring exlibs that export the same phases or those overwrite the earlier export. paludis might generate errors for these cases soon, so clean this up now Change-Id: I38bd8abb221870f7cf33394a001421057cc653f4
-rw-r--r--packages/games-emulation/mame/mame.exlib14
1 files changed, 6 insertions, 8 deletions
diff --git a/packages/games-emulation/mame/mame.exlib b/packages/games-emulation/mame/mame.exlib
index d384114..7965831 100644
--- a/packages/games-emulation/mame/mame.exlib
+++ b/packages/games-emulation/mame/mame.exlib
@@ -1,18 +1,18 @@
# Copyright 2010-2011 Elias Pipping <pipping@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
-export_exlib_phases src_unpack src_prepare src_compile src_install
-
MY_PV=$(ever delete_all $(ever range 1-2))
if ever is_scm ; then
require github [ user='mamedev' ]
else
+ export_exlib_phases src_unpack
DOWNLOADS="
https://github.com/mamedev/mame/releases/download/${PN}${MY_PV}/${PN}${MY_PV}s.zip
"
fi
+export_exlib_phases src_prepare src_compile src_install
SUMMARY="Multiple Arcade Machine Emulator. "
DESCRIPTION="
@@ -59,18 +59,16 @@ RESTRICT="test"
if ! ever is_scm; then
WORK="${WORKBASE}"
-fi
-mame_src_unpack() {
- default
- if ! ever is_scm ; then
+ mame_src_unpack() {
+ default
# unzip fails due to some unicode filenames,
# so we have to use unzip directly to exclude them
edo unzip -qo ./mame.zip \
-x '3rdparty/pugixml/tests/data/*'
edo rm -f mame.zip
- fi
-}
+ }
+fi
mame_src_prepare() {
if ever is_scm; then