2007-04-02 16:00:08 +00:00
|
|
|
DESCRIPTION = "Portable Puzzle Collection"
|
2010-07-14 00:52:46 +00:00
|
|
|
HOMEPAGE = "http://o-hand.com/"
|
|
|
|
BUGTRACKER = "http://bugzilla.openedhand.com/"
|
|
|
|
|
2007-04-02 16:00:08 +00:00
|
|
|
LICENSE = "MIT"
|
2010-07-14 00:52:46 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=f56ec6772dd1c7c367067bbea8ea1675 \
|
|
|
|
file://src/tree234.h;endline=28;md5=a188e6d250430ca094a54a82f48472a7 \
|
|
|
|
file://src/tree234.c;endline=28;md5=b4feb1976feebf8f1379093ed52f2945"
|
|
|
|
|
2007-04-02 16:00:08 +00:00
|
|
|
SECTION = "x11"
|
2009-12-07 17:21:56 +00:00
|
|
|
DEPENDS = "gtk+ gconf intltool-native librsvg"
|
|
|
|
DEPENDS_append_poky = " libowl"
|
2008-02-25 22:47:49 +00:00
|
|
|
|
2011-08-25 18:20:21 +00:00
|
|
|
SRCREV = "92f1a20e4b72eed7a35b00984d9793b51dc2fb3b"
|
|
|
|
PV = "0.2+git${SRCPV}"
|
2009-12-07 17:21:56 +00:00
|
|
|
PR = "r10"
|
2007-08-17 12:54:32 +00:00
|
|
|
|
2011-08-25 18:20:21 +00:00
|
|
|
SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git"
|
|
|
|
SRC_URI_append_poky = " file://oh-puzzles-owl-menu.patch;striplevel=0 "
|
2007-04-02 16:00:08 +00:00
|
|
|
|
2011-08-25 18:20:21 +00:00
|
|
|
S = "${WORKDIR}/git"
|
2007-04-02 16:00:08 +00:00
|
|
|
|
2011-08-25 18:20:21 +00:00
|
|
|
inherit autotools pkgconfig
|
2009-12-07 17:21:56 +00:00
|
|
|
|
2011-08-25 18:20:21 +00:00
|
|
|
bindir = "/usr/games"
|
2007-04-02 16:00:08 +00:00
|
|
|
|
2008-02-11 17:55:25 +00:00
|
|
|
EXTRA_OEMAKE += "GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1"
|
|
|
|
|
2007-04-02 16:00:08 +00:00
|
|
|
do_install_append () {
|
|
|
|
install -d ${D}/${datadir}/applications/
|
|
|
|
|
|
|
|
cd ${D}/${prefix}/games
|
|
|
|
for prog in *; do
|
|
|
|
if [ -x $prog ]; then
|
2007-05-17 11:00:45 +00:00
|
|
|
# Convert prog to Title Case
|
2007-06-29 10:23:37 +00:00
|
|
|
title=$(echo $prog | sed 's/\(^\| \)./\U&/g')
|
2007-04-02 16:00:08 +00:00
|
|
|
echo "making ${D}/${datadir}/applications/$prog.desktop"
|
|
|
|
cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
|
|
|
|
[Desktop Entry]
|
2007-05-17 11:00:45 +00:00
|
|
|
Name=$title
|
2007-04-02 16:00:08 +00:00
|
|
|
Exec=${prefix}/games/$prog
|
2007-04-10 14:15:01 +00:00
|
|
|
Icon=applications-games
|
2007-04-02 16:00:08 +00:00
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
2007-08-17 12:54:32 +00:00
|
|
|
Categories=Game;
|
2007-04-02 16:00:08 +00:00
|
|
|
StartupNotify=true
|
2007-09-27 09:09:33 +00:00
|
|
|
X-MB-SingleInstance=true
|
2007-07-11 15:38:17 +00:00
|
|
|
Comment=Play $title.
|
2007-04-02 16:00:08 +00:00
|
|
|
STOP
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2012-02-26 21:53:02 +00:00
|
|
|
PACKAGES += "${PN}-extra"
|
2008-02-25 22:47:49 +00:00
|
|
|
RDEPENDS_${PN}-extra += "oh-puzzles"
|
|
|
|
|
|
|
|
FILES_${PN} = "/usr/share/pixmaps /usr/share/oh-puzzles/"
|
2007-04-02 16:00:08 +00:00
|
|
|
FILES_${PN}-dbg += "/usr/games/.debug/*"
|
2008-02-25 22:47:49 +00:00
|
|
|
FILES_${PN}-extra = "/usr/games/ /usr/share/applications /etc/gconf/schemas"
|
|
|
|
|
|
|
|
python __anonymous () {
|
|
|
|
var = bb.data.expand("FILES_${PN}", d, 1)
|
2012-03-03 10:59:25 +00:00
|
|
|
data = d.getVar(var, True)
|
2008-02-26 15:58:38 +00:00
|
|
|
for name in ("bridges", "fifteen", "inertia", "map", "samegame", "slant"):
|
2008-02-25 22:47:49 +00:00
|
|
|
data = data + " /usr/games/%s" % name
|
|
|
|
data = data + " /usr/share/applications/%s.desktop" % name
|
|
|
|
data = data + " /etc/gconf/schemas/%s.schemas" % name
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
d.setVar(var, data)
|
2008-07-02 14:19:07 +00:00
|
|
|
}
|