diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2018-05-09 14:46:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:50 +0100 |
commit | 837a2a6f993caddc9693403ef9508d7b317e689b (patch) | |
tree | 081f8b7eede2f96c3fdd652a4dfcaa0b408fd7dc /meta/recipes-sato/puzzles | |
parent | f8fa4aab98b07ff8f998cbec5ea705d8843952e1 (diff) | |
download | poky-837a2a6f993caddc9693403ef9508d7b317e689b.tar.gz |
puzzles: move ASNEEDED over-ride into the puzzles recipe
Move the recipe specific over-ride for ASNEEDED into the recipe to
make it more apparent that the over-ride is being applied (and that
it should be re-checked on version updates, etc).
Also misc minor recipe cleanup (re-order variables to follow the OE
style guide, etc).
(From OE-Core rev: d3653e8525e048d9968b949dbff5304c1fd94480)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/puzzles')
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_git.bb | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/meta/recipes-sato/puzzles/puzzles_git.bb b/meta/recipes-sato/puzzles/puzzles_git.bb index 3670ab81fb..7d08b964f8 100644 --- a/meta/recipes-sato/puzzles/puzzles_git.bb +++ b/meta/recipes-sato/puzzles/puzzles_git.bb | |||
@@ -1,20 +1,20 @@ | |||
1 | SUMMARY = "Simon Tatham's Portable Puzzle Collection" | 1 | SUMMARY = "Simon Tatham's Portable Puzzle Collection" |
2 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" | 2 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE;md5=da6110d4ed1225a287eab2bf0ac0193b" | ||
3 | 5 | ||
4 | DEPENDS = "libxt" | 6 | DEPENDS = "libxt" |
5 | 7 | ||
6 | # The libxt requires x11 in DISTRO_FEATURES | 8 | # The libxt requires x11 in DISTRO_FEATURES |
7 | REQUIRED_DISTRO_FEATURES = "x11" | 9 | REQUIRED_DISTRO_FEATURES = "x11" |
8 | 10 | ||
9 | LICENSE = "MIT" | ||
10 | LIC_FILES_CHKSUM = "file://LICENCE;md5=da6110d4ed1225a287eab2bf0ac0193b" | ||
11 | |||
12 | SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ | 11 | SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ |
13 | file://fix-compiling-failure-with-option-g-O.patch \ | 12 | file://fix-compiling-failure-with-option-g-O.patch \ |
14 | file://0001-Use-labs-instead-of-abs.patch \ | 13 | file://0001-Use-labs-instead-of-abs.patch \ |
15 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ | 14 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ |
16 | file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \ | 15 | file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \ |
17 | " | 16 | " |
17 | |||
18 | UPSTREAM_CHECK_COMMITS = "1" | 18 | UPSTREAM_CHECK_COMMITS = "1" |
19 | SRCREV = "c6e0161dd475415316ed66dc82794d68e52f0025" | 19 | SRCREV = "c6e0161dd475415316ed66dc82794d68e52f0025" |
20 | PE = "2" | 20 | PE = "2" |
@@ -24,24 +24,13 @@ S = "${WORKDIR}/git" | |||
24 | 24 | ||
25 | inherit autotools distro_features_check pkgconfig | 25 | inherit autotools distro_features_check pkgconfig |
26 | 26 | ||
27 | CFLAGS_append = " -Wno-deprecated-declarations" | ||
28 | |||
29 | PACKAGECONFIG ??= "gtk3" | 27 | PACKAGECONFIG ??= "gtk3" |
30 | PACKAGECONFIG[gtk2] = "--with-gtk=2,,gtk+," | 28 | PACKAGECONFIG[gtk2] = "--with-gtk=2,,gtk+," |
31 | PACKAGECONFIG[gtk3] = "--with-gtk=3,,gtk+3," | 29 | PACKAGECONFIG[gtk3] = "--with-gtk=3,,gtk+3," |
32 | 30 | ||
33 | PACKAGES += "${PN}-extra" | 31 | CFLAGS_append = " -Wno-deprecated-declarations" |
34 | FILES_${PN} = "" | ||
35 | FILES_${PN}-extra = "${prefix}/bin ${datadir}/applications" | ||
36 | 32 | ||
37 | python __anonymous () { | 33 | ASNEEDED = "" |
38 | var = d.expand("FILES_${PN}") | ||
39 | data = d.getVar(var, False) | ||
40 | for name in ("bridges", "fifteen", "inertia", "map", "samegame", "slant"): | ||
41 | data = data + " ${bindir}/%s" % name | ||
42 | data = data + " ${datadir}/applications/%s.desktop" % name | ||
43 | d.setVar(var, data) | ||
44 | } | ||
45 | 34 | ||
46 | do_configure_prepend () { | 35 | do_configure_prepend () { |
47 | cd ${S} | 36 | cd ${S} |
@@ -74,3 +63,17 @@ STOP | |||
74 | fi | 63 | fi |
75 | done | 64 | done |
76 | } | 65 | } |
66 | |||
67 | PACKAGES += "${PN}-extra" | ||
68 | |||
69 | FILES_${PN} = "" | ||
70 | FILES_${PN}-extra = "${prefix}/bin ${datadir}/applications" | ||
71 | |||
72 | python __anonymous () { | ||
73 | var = d.expand("FILES_${PN}") | ||
74 | data = d.getVar(var, False) | ||
75 | for name in ("bridges", "fifteen", "inertia", "map", "samegame", "slant"): | ||
76 | data = data + " ${bindir}/%s" % name | ||
77 | data = data + " ${datadir}/applications/%s.desktop" % name | ||
78 | d.setVar(var, data) | ||
79 | } | ||