X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mailauth4.nine.ch (mailauth4.nine.ch [94.230.211.190]) by lists.alpinelinux.org (Postfix) with ESMTP id 810EF5C4CAD for ; Tue, 29 Aug 2017 19:40:03 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mailauth4.nine.ch (Postfix) with ESMTP id 8C40CBFB14; Tue, 29 Aug 2017 21:40:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailauth4.nine.ch X-Spam-Flag: NO X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-0.999 tagged_above=-999 required=5.6 tests=[ALL_TRUSTED=-1, HEADER_FROM_DIFFERENT_DOMAINS=0.001] autolearn=disabled Received: from mailauth4.nine.ch ([127.0.0.1]) by localhost (mailauth4.nine.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MTSLrUtwbdj6; Tue, 29 Aug 2017 21:40:01 +0200 (CEST) Received: from vimes (148-73-241-84.dyn.cable.fcom.ch [84.241.73.148]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pf@1042.ch) by mailauth4.nine.ch (Postfix) with ESMTPSA; Tue, 29 Aug 2017 21:40:01 +0200 (CEST) Received: by vimes (Postfix, from userid 1000) id 4C8562037B; Tue, 29 Aug 2017 21:40:01 +0200 (CEST) From: Jean-Louis Fuchs To: alpine-aports@lists.alpinelinux.org Cc: Jean-Louis Fuchs Subject: [alpine-aports] [PATCH] testing/py3-pyo: new aport Date: Tue, 29 Aug 2017 21:39:57 +0200 Message-Id: <20170829193957.5871-1-ganwell@fangorn.ch> X-Mailer: git-send-email 2.13.5 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/py3-pyo/APKBUILD | 31 +++++++++++++++++++++++++++++++ testing/py3-pyo/portaudio-only.patch | 14 ++++++++++++++ testing/py3-pyo/remove-O3.patch | 12 ++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 testing/py3-pyo/APKBUILD create mode 100644 testing/py3-pyo/portaudio-only.patch create mode 100644 testing/py3-pyo/remove-O3.patch diff --git a/testing/py3-pyo/APKBUILD b/testing/py3-pyo/APKBUILD new file mode 100644 index 0000000000..92eaa7e984 --- /dev/null +++ b/testing/py3-pyo/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Jean-Louis Fuchs +# Maintainer: Jean-Louis Fuchs +pkgname=py3-pyo +_pkgname=pyo +pkgver=0.8.6 +pkgrel=0 +pkgdesc="dedicated Python module for digital signal processing" +url="http://ajaxsoundstudio.com/software/pyo/" +arch="all" +license="GPL" +options="!check" +depends="python3 python3-tkinter" +makedepends="python3-dev portaudio-dev libsndfile-dev" +source="http://ajaxsoundstudio.com/downloads/${_pkgname}_${pkgver}-src.tar.bz2 + portaudio-only.patch + remove-O3.patch" +builddir="$srcdir/${_pkgname}_${pkgver}-src" + +build() { + cd "$builddir" + python3 setup.py build --minimal +} + +package() { + cd "$builddir" + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums="7cde34f16710d7375dc7ccd88c4496bc9b4b3c8af3affdc3c2933d9a51c57e860e16b3a1e28d45589ef39813a640787c34ab8130f452c81cfd2958c14f660c42 pyo_0.8.6-src.tar.bz2 +292c16864698b39e40c869dcff8a34c564bd827ebdf7ae146d0dd50fbba02d3d5d32e0421a09737c7c1e68fb88bae208f6af4268ca38b838a01a6aeb103750c8 portaudio-only.patch +5994f01ae188a2e414df914a2c096dc812966dab9b75caceae0a7d8d20f568e7770bc68bb670d391185697159ab967a6b95e58dc599606970508135280f6692b remove-O3.patch" diff --git a/testing/py3-pyo/portaudio-only.patch b/testing/py3-pyo/portaudio-only.patch new file mode 100644 index 0000000000..e855903d13 --- /dev/null +++ b/testing/py3-pyo/portaudio-only.patch @@ -0,0 +1,14 @@ +diff -ruN a/setup.py b/setup.py +--- a/setup.py 2017-08-29 21:04:01.704564192 +0200 ++++ b/setup.py 2017-08-29 21:04:30.369416183 +0200 +@@ -94,7 +94,9 @@ + if '--minimal' in sys.argv: + minimal_build = True + sys.argv.remove('--minimal') +- libraries = [] ++ macros.append(('USE_PORTAUDIO', None)) ++ ad_files.append("ad_portaudio.c") ++ libraries = ["portaudio"] + else: + minimal_build = False + # portaudio diff --git a/testing/py3-pyo/remove-O3.patch b/testing/py3-pyo/remove-O3.patch new file mode 100644 index 0000000000..7595f2a813 --- /dev/null +++ b/testing/py3-pyo/remove-O3.patch @@ -0,0 +1,12 @@ +diff -ruN a/setup.py b/setup.py +--- a/setup.py 2017-08-29 21:11:55.290997348 +0200 ++++ b/setup.py 2017-08-29 21:12:13.690639738 +0200 +@@ -84,7 +84,7 @@ + sys.argv.remove('--fast-compile') + oflag = "-O0" + else: +- oflag = "-O3" ++ oflag = "-Os" + + # Specific audio drivers source files to compile + ad_files = [] -- 2.13.5 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---