X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.ovgu.de (mail.ovgu.de [141.44.1.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 1A5FA5C4C56 for ; Wed, 2 Aug 2017 07:24:51 +0000 (GMT) Received: from mail.ovgu.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 10CF340065 for ; Wed, 2 Aug 2017 09:24:50 +0200 (CEST) Received: from notebook-marian.fritz.box (pD9EEBE74.dip0.t-ipconnect.de [217.238.190.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ovgu.de (Postfix) with ESMTPSA id 916DA40062; Wed, 2 Aug 2017 09:24:49 +0200 (CEST) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Cc: Marian Buschsieweke Subject: [alpine-aports] [PATCH] new aport: testing/micropython Date: Wed, 2 Aug 2017 09:24:03 +0200 Message-Id: <20170802072403.2885-1-marian.buschsieweke@ovgu.de> X-Mailer: git-send-email 2.13.2 X-PMX-Version: 6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.8.2.71517, AntiVirus-Engine: 5.38.0, AntiVirus-Data: 2017.8.1.5380001 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, LEGITIMATE_SIGNS 0, MULTIPLE_REAL_RCPTS 0, RDNS_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_SPECIFIC 0, __ANY_URI 0, __C230066_P5 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FROM_DOMAIN_IN_ANY_CC1 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __RDNS_POOLED_10 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NS , __URI_WITHOUT_PATH 0, __URI_WITH_PATH 0' X-Spam-Score: Gauge=IIIIIIII X-PMX-consideredAsSpam: no X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: A lean and efficient Python implementation for MCUs and constrained systems http://www.micropython.org/ --- testing/micropython/0000-unix-mpconfigport.patch | 22 ++++++++++++ testing/micropython/APKBUILD | 44 ++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 testing/micropython/0000-unix-mpconfigport.patch create mode 100644 testing/micropython/APKBUILD diff --git a/testing/micropython/0000-unix-mpconfigport.patch b/testing/micropython/0000-unix-mpconfigport.patch new file mode 100644 index 0000000000..9025694ff2 --- /dev/null +++ b/testing/micropython/0000-unix-mpconfigport.patch @@ -0,0 +1,22 @@ +--- old/micropython-1.9.1/unix/mpconfigport.mk ++++ new/micropython-1.9.1/unix/mpconfigport.mk +@@ -9,7 +9,7 @@ + MICROPY_USE_READLINE = 1 + + # btree module using Berkeley DB 1.xx +-MICROPY_PY_BTREE = 1 ++MICROPY_PY_BTREE = 0 + + # _thread module using pthreads + MICROPY_PY_THREAD = 1 +@@ -24,8 +24,8 @@ + MICROPY_PY_FFI = 1 + + # ussl module requires axtls +-MICROPY_PY_USSL = 1 +-MICROPY_SSL_AXTLS = 1 ++MICROPY_PY_USSL = 0 ++MICROPY_SSL_AXTLS = 0 + MICROPY_SSL_MBEDTLS = 0 + + # jni module requires JVM/JNI diff --git a/testing/micropython/APKBUILD b/testing/micropython/APKBUILD new file mode 100644 index 0000000000..fb7b141623 --- /dev/null +++ b/testing/micropython/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Marian +# Maintainer: Marian +pkgname=micropython +pkgver=1.9.1 +pkgrel=0 +pkgdesc="A lean and efficient Python implementation for MCUs and constrained systems" +url="http://www.micropython.org/" +arch="all" +license="MIT" +depends="" +makedepends="libffi-dev python3" +subpackages="" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz + 0000-unix-mpconfigport.patch" +builddir="${srcdir}/${pkgname}-${pkgver}/unix" + +prepare() { + cd "${srcdir}" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$builddir" + unset CFLAGS + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + mkdir -p "${pkgdir}/usr/bin" + install -m755 micropython "${pkgdir}/usr/bin/micropython" +} + +sha512sums="bc0eeb1e6d821034b7157613f2d421df304f2959e9fd62d2886641eba8d74575787861c9ff46fc3bcb9c14c6ad1f698043231801207f946af9b5d302bb253c63 micropython-1.9.1.tar.gz +926515a76dc856192de79a7c35c390bd533a38a2c163812ce5a3739280ca33881791f3d199922edb2e577ec9ac16265dc4891ad96f6c6eb4e7cf9d5ae8044a32 0000-unix-mpconfigport.patch" -- 2.13.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---