Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Revert soletta-dev-app recipe to use standlone version instead of npm
Browse files Browse the repository at this point in the history
npm faling by downloading incompleted files resulting in wrong shasum.
As it is possible to see here: npm/npm#2701

To workaround this problem, we reverted the recipe to use the standalone
version of Soletta Dev-App. It will contain all needed package to run
without needing to run the command npm.

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Apr 28, 2016
1 parent 4e11b7e commit 841b69b
Showing 1 changed file with 6 additions and 60 deletions.
66 changes: 6 additions & 60 deletions recipes-soletta/dev-app/soletta-dev-app_git.bb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
DESCRIPTION = "Soletta Development Application"
DEPENDS = "nodejs-native"
RDEPENDS_${PN} = "soletta nodejs systemd graphviz libmicrohttpd avahi-daemon bash git"
LICENSE = "Apache-2.0"
PV = "1_beta8+git${SRCPV}"

LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=93888867ace35ffec2c845ea90b2e16b"
PV = "1_beta8"

SRC_URI = "git://git@github.com/solettaproject/soletta-dev-app.git;protocol=https \
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=93888867ace35ffec2c845ea90b2e16b"
SRC_URI[md5sum] = "557e80c99ac34d1c55dcb18423a1c308"
SRC_URI[sha256sum] = "141a3e6df771d64fcb46c41489837b938995c4d0b7997e384232cc7d11303fbf"
SRC_URI = "https://github.com/solettaproject/soletta-dev-app/releases/download/v${PV}/soletta-dev-app_standalone_v${PV}.tar.gz;protocol=archive \
file://soletta-dev-app.service \
file://soletta-dev-app-mac.sh \
file://soletta-dev-app-avahi-discover.service \
"
SRCREV = "f9f011a47394bcb0c04b4e0439a20e56e0f69ce1"

S = "${WORKDIR}/git"
S = "${WORKDIR}/${PN}"

# We provide only one package
PACKAGES = " \
Expand All @@ -37,60 +37,6 @@ FILES_${PN} += " \

SYSTEMD_SERVICE_${PN} = "soletta-dev-app-server.service soletta-dev-app-avahi-discover.service"

do_compile() {

# changing the home directory to the working directory, the .npmrc will be created in this directory
export HOME=${WORKDIR}

# does not build dev packages
npm config set dev false

# access npm registry using http
npm set strict-ssl false
npm config set registry http://registry.npmjs.org/

# configure http proxy if neccessary
if [ -n "${http_proxy}" ]; then
npm config set proxy ${http_proxy}
export bower_https_proxy=${http_proxy}
fi
if [ -n "${HTTP_PROXY}" ]; then
npm config set proxy ${HTTP_PROXY}
export bower_https_proxy=${HTTP_PROXY}
fi

# configure cache to be in working directory
npm set cache ${WORKDIR}/npm_cache

# clear local cache prior to each compile
npm cache clear

case ${TARGET_ARCH} in
i?86) targetArch="ia32"
echo "targetArch = 32"
;;
x86_64) targetArch="x64"
echo "targetArch = 64"
;;
arm) targetArch="arm"
;;
mips) targetArch="mips"
;;
sparc) targetArch="sparc"
;;
*) echo "unknown architecture"
exit 1
;;
esac

npm install --arch=${targetArch} --production --verbose -g bower@v1.7.9

# compile and install node modules in source directory
npm --arch=${targetArch} --production --verbose install

bower -V install
}

do_install() {
install -d ${D}{INSTALLATION_PATH}
install -d ${D}${INSTALLATION_PATH}soletta-dev-app
Expand Down

0 comments on commit 841b69b

Please sign in to comment.