X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) by lists.alpinelinux.org (Postfix) with ESMTP id 84A735C6298 for ; Fri, 7 Sep 2018 08:42:44 +0000 (GMT) Received: by mail-lj1-f172.google.com with SMTP id q127-v6so11599240ljq.11 for ; Fri, 07 Sep 2018 01:42:44 -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=OE5sTbOm1PlFeuiVsoPyHEi9vlD1w/1FzbfLtL0KMs4=; b=pqJlpkVjpuRSa5VIYshhH1cVOm4s1reVG6QpueE7PflCxfXD9+Rs8Rox9bsf0HxmME /tcf5KUDJryhWYUoUk1scR6b6BaPI7L9QI9UPlTi+Y7BSXm5v+dXkwGpx3ZMJO4y9svH bwDsDjpfgV5ffCfqPuxl8slsbx4RUm76iK3jq5yqu3K8jENJ2YOHP+Kq+A/URlVi4xdn sVJ/K0MV6Tpia72cDI3gA94f/Imr0EmgE/W780pDlHd1gczTJzCp8bJtlbnLEE12xvyR nASaGaTCNgvFepGY3+K+SpXNka33rBm/xcVhS3eM4MjnC4b/tqkVBwQ8fjGPtcGSdTyS rBFQ== 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=OE5sTbOm1PlFeuiVsoPyHEi9vlD1w/1FzbfLtL0KMs4=; b=kd9MSPlKBsv5BNO4R2MI2jp14deav8hyOjdTE6qN8zd8iwGlwRX1tf7XDsG01KtSAv 7GMUtVYmaiSGC0oorSRS1UAI7epfBlEKW2ruO+ZnJ9Ekvz8GRd2Zk3zUh9ts6eS4r1XS q+7Mk8LtMdhPz98/CFsfOh/lHWZGDzK/J4uP2R0dt3frbOiTyZJYskvuby7JH3wI9hN4 Q34bydTaSUdGMsDuBpLbFo2LjE1RHbN36oId00LOj2z1YxLQg1Dinz5gkHn0fgylfDJd VOIMnBja+pOtSVX24Gyf//uYaokLoysHdaY2NWWi84uxXddSdzfGKzTyl9uDGnm5Y2Pp 6oQg== X-Gm-Message-State: APzg51BA5jP2fXIk1p5IPC75ivWNeF0vch+G/0F3VmPIeXfTPtN+wGMb 1Eq3wR+X+deNGtGwg2EHBLsxzVJxzxgIUO5GXXO4yB1X X-Google-Smtp-Source: ANB0VdZK5Uo6Nmnt5xb0HdUHSkg1ASj8IluJvsRwLZtjAT2wp9sO/flCOWBv8eGEV4DwRqQkxgo9cBAuTKWSBgYM7Ks= X-Received: by 2002:a2e:9f4d:: with SMTP id v13-v6mr4098482ljk.42.1536309763487; Fri, 07 Sep 2018 01:42:43 -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:42:23 -0700 (PDT) In-Reply-To: References: <20180907064723.2596-1-d@duniel.no> From: Daniel Isaksen Date: Fri, 7 Sep 2018 10:42:23 +0200 Message-ID: Subject: [alpine-aports] Re: [PATCH] testing/py-iptools: new aport To: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000b7d0a9057543fdfd" --000000000000b7d0a9057543fdfd Content-Type: text/plain; charset="UTF-8" Also, now that I think of it, I made a slight mistake with the license. It's actually BSD-2-Clause. I have again fixed it in this reply. ----- Sincerely / Med vennlig hilsen, Daniel Isaksen (https://duniel.no) On Fri, Sep 7, 2018 at 10:38 AM, Daniel Isaksen wrote: > 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-2-Clause" >> +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/$_pkgna >> me/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="a9cae8b035741efe8874f432b9200b118b5ebf63f081d52 >> 2df4c1ffa0096e23ac6db552f1989049d4e421cc95d13dd0b22ee8cf07a8340aa4db5fb79646380eb >> py-iptools.tar.gz" >> -- >> 2.18.0 >> >> > --000000000000b7d0a9057543fdfd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, now that I think of it, I made a slight mistake with= the license. It's actually BSD-2-Clause.

I have aga= in fixed it in this reply.

-----
Sincerely / Med vennlig hilsen,
Daniel Isaksen <d@du= niel.no> (https://du= niel.no)

On Fri, Sep 7, 2018 at 10:38 AM, Daniel Isak= sen <= d@duniel.no> wrote:
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 <d@duniel.no> (https://duniel.no)

On Fri, Sep 7, 2018 at 8:47= AM, Daniel Isaksen <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.no>
+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-2-Clause"
+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"a9cae8b035741efe8874f432b9200b118b5ebf63f081d522df4c1ffa0096e23ac6db552f1989049d4e421cc95d13dd0b22ee8cf07a8340= aa4db5fb79646380eb=C2=A0 py-iptools.tar.gz"
--
2.18.0



--000000000000b7d0a9057543fdfd-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---