X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by lists.alpinelinux.org (Postfix) with ESMTP id DA45F5C6298 for ; Fri, 7 Sep 2018 08:38:22 +0000 (GMT) Received: by mail-lf1-f49.google.com with SMTP id l26-v6so11387005lfc.8 for ; Fri, 07 Sep 2018 01:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duniel-no.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fytyaSltDohIycbSfkbgwh/bQWX2MtDPn1O9C4jyBC8=; b=Rh8+NylSrOhwCnRZcfLnljxNjKZvpP4vKShuotXWlc06LIycWP5k+2s/Zgz4t3MKO2 ZAFoSuHrrUYnH6NGz7+yvh/ueW3KwtJSW5cGnGPweRiNeqZJKvJdubnzZVk+s6KEGyYz hfqYaHgDSwZ2zNNxyX0D1zSVkz4HaBTY73V319wFbk/Qqgf7D0oNJlSeLl9SLVaWpbc7 xYH7QPjKF4OjY5VsPV2RC/metE25Bui5GX+lMA7lzLQXdZfsoNRWk1NTFmlhTSk/mP6P YduvihLcP1FFJ0I2jBkRuftr3yK1RClKtk0X9KC8UCvaYMZ99nt4FmXULKi2YPf24dqT 55TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fytyaSltDohIycbSfkbgwh/bQWX2MtDPn1O9C4jyBC8=; b=mc83h0JLFqIU8WL0US9ck2LekioQuMa6w8mR74QHlH8ZRoHV+ocnEgX7lqKCN9G9kQ JzKSYy8hAMPLPKE46V4glZ0SgBGA1aYsEYJ+l55xMKAIiZXrwLgz5bdcCQ8tbgAeBBZB ihXl77W8FT1rjG8nTdXRLdHvoYmUN75fJY+vC18TKiP4alZh1xEttcY5XgygFS33xsTT FVKDLVr04+c798rCx15RNJcH/1WJA/jxPjxRjEFl6z5Yacy+htVWhsDaZJUEI6cRCz1T hlIxHDcw7bABXEaY6SEHuugNamTw1L9z5HuHcrjCwF4KD/s4EQxxDAto178itXbvXNVO AumA== X-Gm-Message-State: APzg51DEYQ1vs0LKOCm+VBguY/4SSL5sjUTZAZMX2QLbf1arXbDKojsv GeR2Q10pNr0i6jyHgvP7nHwx6BO2KgEibLFVbfpSuTIJ X-Google-Smtp-Source: ANB0VdasPN3Z14jIGEaqzZAFRCX73Gv7z7w7w0wa9H8jS3s6pcoQGPO2bI4iv6V1kWXbVLfAp1f9bQqvUVTbjYD6F/c= X-Received: by 2002:a19:ea52:: with SMTP id i79-v6mr4099098lfh.75.1536309501667; Fri, 07 Sep 2018 01:38:21 -0700 (PDT) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 2002:ab3:7654:0:0:0:0:0 with HTTP; Fri, 7 Sep 2018 01:38:01 -0700 (PDT) In-Reply-To: <20180907064723.2596-1-d@duniel.no> References: <20180907064723.2596-1-d@duniel.no> From: Daniel Isaksen Date: Fri, 7 Sep 2018 10:38:01 +0200 Message-ID: Subject: [alpine-aports] Re: [PATCH] testing/py-iptools: new aport To: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000001cbff6057543ee82" --0000000000001cbff6057543ee82 Content-Type: text/plain; charset="UTF-8" I accidentally had py-typing in there as a dependency. It can be removed, as I did in this reply. ----- Sincerely / Med vennlig hilsen, Daniel Isaksen (https://duniel.no) On Fri, Sep 7, 2018 at 8:47 AM, Daniel Isaksen wrote: > --- > testing/py-iptools/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 testing/py-iptools/APKBUILD > > diff --git a/testing/py-iptools/APKBUILD b/testing/py-iptools/APKBUILD > new file mode 100644 > index 0000000000..e46457d4d4 > --- /dev/null > +++ b/testing/py-iptools/APKBUILD > @@ -0,0 +1,52 @@ > +# Contributor: Daniel Isaksen +# Maintainer: Daniel Isaksen > +pkgname=py-iptools > +_pkgname="${pkgname//py-/python-}" > +pkgver=0.6.1 > +pkgrel=0 > +pkgdesc="A crypto and SSL toolkit for Python" > +url="https://pypi.python.org/pypi/M2Crypto/" > +arch="all" > +license="BSD" > +makedepends="python2-dev python3-dev py-setuptools" > +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" > +source="py-iptools.tar.gz::https://github.com/bd808/$_ > pkgname/archive/v$pkgver.tar.gz" > +builddir="$srcdir/$_pkgname-$pkgver" > + > +build() { > + cd "$builddir" > + python2 setup.py build > + python3 setup.py build > +} > + > +package() { > + mkdir -p "$pkgdir" > +} > + > +check() { > + cd "$builddir" > + python3 setup.py test > +} > + > +_py() { > + local python="$1" > + pkgdesc="$pkgdesc ${python#python}" > + depends="$depends $python" > + install_if="$pkgname=$pkgver-r$pkgrel $python" > + > + cd "$builddir" > + $python setup.py install --prefix=/usr --root="$subpkgdir" > +} > + > +_py2() { > + depends="${depends//py-/py2-}" > + _py python2 > +} > + > +_py3() { > + depends="${depends//py-/py3-}" > + _py python3 > +} > + > +sha512sums="a9cae8b035741efe8874f432b9200b118b5ebf63f081d522df4c1ffa0096 > e23ac6db552f1989049d4e421cc95d13dd0b22ee8cf07a8340aa4db5fb79646380eb > py-iptools.tar.gz" > -- > 2.18.0 > > --0000000000001cbff6057543ee82 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I accidentally had py-typing in there as a dependency. It = can be removed, as I did in this reply.

-----
Sincerely / Med vennlig hilsen,<= /div>
Daniel Isaksen <d@duniel.no> (htt= ps://duniel.no)

On Fri, Sep 7, 2018 at 8:47 AM, Daniel Isaks= en <d= @duniel.no> wrote:
---
=C2=A0testing/py-iptools/APKBUILD | 52 +++++++++++++++++++++++++++++++= ++++++
=C2=A01 file changed, 52 insertions(+)
=C2=A0create mode 100644 testing/py-iptools/APKBUILD

diff --git a/testing/py-iptools/APKBUILD b/testing/py-iptools/APKBUILD
new file mode 100644
index 0000000000..e46457d4d4
--- /dev/null
+++ b/testing/py-iptools/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Daniel Isaksen <d@duniel.= no
+# Maintainer: Daniel Isaksen <d@duniel.n= o>
+pkgname=3Dpy-iptools
+_pkgname=3D"${pkgname//py-/python-}"
+pkgver=3D0.6.1
+pkgrel=3D0
+pkgdesc=3D"A crypto and SSL toolkit for Python"
+url=3D"https://pypi.python.org/pypi/M2Crypto/&q= uot;
+arch=3D"all"
+license=3D"BSD"
+makedepends=3D"python2-dev python3-dev py-setuptools"
+subpackages=3D"py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3&q= uot;
+source=3D"py-iptools.tar.gz::ht= tps://github.com/bd808/$_pkgname/archive/v$pkgver.tar.gz"= ;
+builddir=3D"$srcdir/$_pkgname-$pkgver"
+
+build() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0python2 setup.py build
+=C2=A0 =C2=A0 =C2=A0 =C2=A0python3 setup.py build
+}
+
+package() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir -p "$pkgdir"
+}
+
+check() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0python3 setup.py test
+}
+
+_py() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0local python=3D"$1"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0pkgdesc=3D"$pkgdesc ${python#python}"=
+=C2=A0 =C2=A0 =C2=A0 =C2=A0depends=3D"$depends $python"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0install_if=3D"$pkgname=3D$pkgver-r$pk= grel $python"
+
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0$python setup.py install --prefix=3D/usr --root= =3D"$subpkgdir"
+}
+
+_py2() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0depends=3D"${depends//py-/py2-}"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0_py python2
+}
+
+_py3() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0depends=3D"${depends//py-/py3-}"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0_py python3
+}
+
+sha512sums=3D"a9cae8b035741efe8874f432b9200b118b5ebf63f081d= 522df4c1ffa0096e23ac6db552f1989049d4e421cc95d13dd0b22ee8cf07a8340= aa4db5fb79646380eb=C2=A0 py-iptools.tar.gz"
--
2.18.0


--0000000000001cbff6057543ee82-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---