1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils versionator
9 DESCRIPTION="Palm WebOS SDK with Mojo Application Framework and emulator to develop Palm Pre applications"
10 HOMEPAGE="http://developer.palm.com/"
12 MY_VER="$(get_version_component_range 1-3)-svn274946-sdk1436-pho$(get_version_component_range 4)"
13 SRC_URI="http://cdn.downloads.palm.com/sdkdownloads/${PV}/sdkBinaries/palm-sdk_${MY_VER}_i386.deb"
17 KEYWORDS="~amd64 ~x86 -*"
18 MY_LINGUAS="linguas_de linguas_it linguas_pt_BR linguas_ru linguas_sv"
22 app-emulation/virtualbox-bin
23 app-emulation/virtualbox
29 net-libs/libsoup-gnome:2.4
35 opt/PalmSDK/0.1/bin/palminspector
36 opt/PalmSDK/0.1/bin/proxy"
37 QA_PRESTRIPPED_amd64="${QA_PRESTRIPPED_x86}
38 opt/PalmSDK/0.1/lib/libproxy.so
39 opt/PalmSDK/0.1/lib/libproxy.so.0
40 opt/PalmSDK/0.1/lib/libproxy.so.0.0.0
41 opt/PalmSDK/0.1/lib/libproxy/0.2.3/plugins/envvar.so
42 opt/PalmSDK/0.1/lib/libproxy/0.2.3/plugins/file.so
43 opt/PalmSDK/0.1/lib/libproxy/0.2.3/plugins/gnome.so
44 opt/PalmSDK/0.1/lib/libproxy/0.2.3/plugins/kde.so"
53 for my_linguas in ${MY_LINGUAS} ; do
54 use ${my_linguas} && continue
55 rm -rf "opt/${PN}/0.1/share/locale/${my_linguas#linguas_}" || die
58 rm -rf opt/${PN}/0.1/lib/lib{soup,webkit}* || die
61 rm -rf opt/${PN}/0.1/lib/libproxy* || die
67 for my_bin in $(find opt/${PN}/0.1/bin -maxdepth 1 -type f) ; do
68 dosym "/${my_bin}" "/opt/bin/$(basename "${my_bin}")" || die
72 doins -r opt/${PN}/0.1 || die
73 fperms -R a+x /opt/${PN}/0.1/{bin,lib} || die
75 dosym 0.1 opt/PalmSDK/Current || die
77 newicon "${FILESDIR}/${PN}-palm-emulator.png" palm-emulator.png || die
78 make_desktop_entry /opt/bin/palm-emulator "Palm Mojo SDK Emulator" palm-emulator Development
81 ewarn "palminspector does not work on amd64 due to missing 32bit libraries "
82 ewarn "libenchant.so.1 libicu{data,i18n,uc}.so.38 and libgnutls.so.13."
83 ewarn "The execute bit will be removed to silence revdep-rebuild."
84 ewarn "You can obtain these by using portage2.2 and multilib overlay."
85 ewarn "See http://github.com/sjnewbury/multilib-overlay for details."
86 fperms a-x /opt/${PN}/0.1/bin/palminspector || die
91 if ! grep 'localhost' /etc/hosts | grep -s -q '127.0.0.1' ; then
92 ewarn 'Add "127.0.0.1 localhost" to your /etc/hosts'
94 if ! grep -s -q '127.0.0.1 qemu' /etc/hosts ; then
95 ewarn 'Add "127.0.0.1 qemu" to your /etc/hosts'
97 if ! grep -s -q '192.168.2.101 device' /etc/hosts ; then
98 ewarn 'Add something like "192.168.2.101 device" to your /etc/hosts'
100 elog 'Do not forget to add your account to the vboxusers group!'