diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-17 11:00:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-17 11:00:45 +0000 |
commit | 1a9ae24220a2c2ab40424782c35c0f62925620d9 (patch) | |
tree | d0c9dc65e7eab4ef06bae39fa08c675a48ef5a67 /meta | |
parent | d717268a0d7b02181fd750e7a0b8a66af6463274 (diff) | |
download | poky-1a9ae24220a2c2ab40424782c35c0f62925620d9.tar.gz |
puzzles: Capitalize program names, use svn for obtaining source rather than tarball
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1744 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/puzzles/oh-puzzles_svn.bb | 8 | ||||
-rw-r--r-- | meta/packages/puzzles/puzzles_r6915.bb | 17 |
2 files changed, 21 insertions, 4 deletions
diff --git a/meta/packages/puzzles/oh-puzzles_svn.bb b/meta/packages/puzzles/oh-puzzles_svn.bb index ad978d38c0..f6599484e6 100644 --- a/meta/packages/puzzles/oh-puzzles_svn.bb +++ b/meta/packages/puzzles/oh-puzzles_svn.bb | |||
@@ -3,7 +3,7 @@ LICENSE = "MIT" | |||
3 | SECTION = "x11" | 3 | SECTION = "x11" |
4 | DEPENDS = "gtk+ gconf intltool-native librsvg" | 4 | DEPENDS = "gtk+ gconf intltool-native librsvg" |
5 | PV = "0.1+svn${SRCDATE}" | 5 | PV = "0.1+svn${SRCDATE}" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | inherit autotools pkgconfig | 8 | inherit autotools pkgconfig |
9 | 9 | ||
@@ -18,11 +18,15 @@ do_install_append () { | |||
18 | cd ${D}/${prefix}/games | 18 | cd ${D}/${prefix}/games |
19 | for prog in *; do | 19 | for prog in *; do |
20 | if [ -x $prog ]; then | 20 | if [ -x $prog ]; then |
21 | # Convert prog to Title Case | ||
22 | firstchar=${prog:0:1} | ||
23 | title=`echo "$firstchar" | tr a-z A-Z` | ||
24 | title="$title${prog:1}" | ||
21 | echo "making ${D}/${datadir}/applications/$prog.desktop" | 25 | echo "making ${D}/${datadir}/applications/$prog.desktop" |
22 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | 26 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop |
23 | [Desktop Entry] | 27 | [Desktop Entry] |
24 | Encoding=UTF-8 | 28 | Encoding=UTF-8 |
25 | Name=$prog | 29 | Name=$title |
26 | Exec=${prefix}/games/$prog | 30 | Exec=${prefix}/games/$prog |
27 | Icon=applications-games | 31 | Icon=applications-games |
28 | Terminal=false | 32 | Terminal=false |
diff --git a/meta/packages/puzzles/puzzles_r6915.bb b/meta/packages/puzzles/puzzles_r6915.bb index 3342b5d17c..bcb19bae2c 100644 --- a/meta/packages/puzzles/puzzles_r6915.bb +++ b/meta/packages/puzzles/puzzles_r6915.bb | |||
@@ -1,8 +1,17 @@ | |||
1 | 1 | ||
2 | DEPENDS = "gtk+" | 2 | DEPENDS = "gtk+" |
3 | PR = "r4" | 3 | PR = "r4" |
4 | MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}" | ||
4 | 5 | ||
5 | SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" | 6 | #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" |
7 | SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;rev=${MOD_PV} \ | ||
8 | file://makedist_hack.patch;patch=1" | ||
9 | |||
10 | S = "${WORKDIR}/${PN}" | ||
11 | |||
12 | do_configure () { | ||
13 | ./makedist.sh ${MOD_PV} | ||
14 | } | ||
6 | 15 | ||
7 | do_compile_prepend = " \ | 16 | do_compile_prepend = " \ |
8 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ | 17 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ |
@@ -25,11 +34,15 @@ do_install () { | |||
25 | cd ${D}/${prefix}/games | 34 | cd ${D}/${prefix}/games |
26 | for prog in *; do | 35 | for prog in *; do |
27 | if [ -x $prog ]; then | 36 | if [ -x $prog ]; then |
37 | # Convert prog to Title Case | ||
38 | firstchar=${prog:0:1} | ||
39 | title=`echo "$firstchar" | tr a-z A-Z` | ||
40 | title="$title${prog:1}" | ||
28 | echo "making ${D}/${datadir}/applications/$prog.desktop" | 41 | echo "making ${D}/${datadir}/applications/$prog.desktop" |
29 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | 42 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop |
30 | [Desktop Entry] | 43 | [Desktop Entry] |
31 | Encoding=UTF-8 | 44 | Encoding=UTF-8 |
32 | Name=$prog | 45 | Name=$title |
33 | Exec=${prefix}/games/$prog | 46 | Exec=${prefix}/games/$prog |
34 | Icon=applications-games | 47 | Icon=applications-games |
35 | Terminal=false | 48 | Terminal=false |