# HG changeset patch # User Aleksej Bobylev # Date 1401907078 -10800 # Node ID 41942ece735f886d818ab5b8047243b96ca8eee9 # Parent 92e8a75bdf91fca907920ceb63758ff2a200b7b8 Add: micropython (also supports ARM) diff -r 92e8a75bdf91 -r 41942ece735f micropython/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/micropython/receipt Wed Jun 04 21:37:58 2014 +0300 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="micropython" +VERSION="1.0.1" +CATEGORY="development" +SHORT_DESC="The Micro Python project" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="http://micropython.org/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" + +DEPENDS="readline libffi" +BUILD_DEPENDS="wget git readline-dev libffi-dev" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's|bash|sh|' $src/py/py-version.sh + sed -i 's|-lreadline|& -lncurses -ldl|' $src/unix/Makefile + + cd unix + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $src/unix/micropython $fs/usr/bin +}