Date: Tuesday, February 7, 2023 @ 08:58:37
  Author: arojas
Revision: 1395990

archrelease: copy trunk to community-any

Added:
  python-envisage/repos/community-any/PKGBUILD
    (from rev 1395989, python-envisage/trunk/PKGBUILD)
Deleted:
  python-envisage/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 34 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-07 08:58:28 UTC (rev 1395989)
+++ PKGBUILD    2023-02-07 08:58:37 UTC (rev 1395990)
@@ -1,28 +0,0 @@
-# Maintainer: Andrzej Giniewicz <[email protected]>
-
-pkgname=python-envisage
-pkgver=6.1.0
-pkgrel=1
-pkgdesc="Extensible Application Framework"
-arch=('any')
-url="https://github.com/enthought/envisage";
-license=('BSD')
-depends=('python-apptools')
-makedepends=('python-setuptools')
-optdepends=('ipython: for IPython shell plugin')
-source=("envisage-$pkgver.tar.gz::https://github.com/enthought/envisage/archive/${pkgver}.tar.gz";)
-sha256sums=('4576e5e1028a2bc2f2c8dc253af9d4b2b615bca694707cc185f2a052d6b0b6d4')
-
-build() {
-  cd envisage-$pkgver
-
-  python setup.py build
-}
-
-package() {
-  cd envisage-$pkgver
-
-  python setup.py install --root="$pkgdir"/  --optimize=1
-
-  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-envisage/repos/community-any/PKGBUILD (from rev 1395989, 
python-envisage/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-07 08:58:37 UTC (rev 1395990)
@@ -0,0 +1,34 @@
+# Maintainer:
+# Contributor: Andrzej Giniewicz <[email protected]>
+
+pkgname=python-envisage
+pkgver=6.1.0
+pkgrel=2
+pkgdesc="Extensible Application Framework"
+arch=(any)
+url="https://github.com/enthought/envisage";
+license=(BSD)
+depends=(python-apptools python-traitsui)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+optdepends=('ipython: for IPython shell plugin')
+source=(https://github.com/enthought/envisage/archive/$pkgver/$pkgname-$pkgver.tar.gz
+        https://github.com/enthought/envisage/commit/f23ea386.patch)
+sha256sums=('4576e5e1028a2bc2f2c8dc253af9d4b2b615bca694707cc185f2a052d6b0b6d4'
+            'fab5b1ed3eed0baed51731b2001bee89743f43ee2b8ea4fc7838a1650586c0a4')
+
+prepare() {
+  cd envisage-$pkgver
+  patch -p1 < ../f23ea386.patch # Fix compatibility with traits 6.4
+}
+
+build() {
+  cd envisage-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd envisage-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to