git: 1608be4a8694 - main - science/py-mercantile: Move science/mercantile to science/py-mercantile

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:21:59 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1608be4a86940ef76d4be72ddd226a81c85a0a4a

commit 1608be4a86940ef76d4be72ddd226a81c85a0a4a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:48:39 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:55 +0000

    science/py-mercantile: Move science/mercantile to science/py-mercantile
    
    - Change MASTER_SITES from GitHub to PYPI
    - Add LICENSE_FILE
    - Fix version requirement of RUN_DEPENDS
    - Convert to USE_PYTHON=pep517
    - Bump PORTREVISION for package change
    - Take maintainership
---
 MOVED                                           |  1 +
 science/Makefile                                |  2 +-
 science/mercantile/Makefile                     | 22 ----------------------
 science/mercantile/distinfo                     |  3 ---
 science/py-mercantile/Makefile                  | 24 ++++++++++++++++++++++++
 science/py-mercantile/distinfo                  |  3 +++
 science/{mercantile => py-mercantile}/pkg-descr |  0
 7 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/MOVED b/MOVED
index 460a0dad4f93..052d0b626d24 100644
--- a/MOVED
+++ b/MOVED
@@ -3423,3 +3423,4 @@ graphics/svg2pdf||2024-08-04|Has expired: Depends on deprecated library graphics
 audio/libsidplay2||2024-08-04|Has expired: Abandonware and superseded by audio/libsidplayfp
 www/py-imdbpy|www/py-cinemagoer|2024-08-04|Has expired: IMDbPY is now cinemagoer. Use www/py-cinemagoer instead
 dns/dnrd||2024-08-04|Has expired: Abandonware, last release in 2007 and last activity in 2010. Consider using Unbound, dns/dnsmasq or dns/blocky
+science/mercantile|science/py-mercantile|2024-08-04|Move science/mercantile to science/py-mercantile
diff --git a/science/Makefile b/science/Makefile
index a5063b6d6154..d45832be54ba 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -183,7 +183,6 @@
     SUBDIR += mdynamix
     SUBDIR += medit
     SUBDIR += meep
-    SUBDIR += mercantile
     SUBDIR += metaphysicl
     SUBDIR += minc2
     SUBDIR += mmdb2
@@ -364,6 +363,7 @@
     SUBDIR += py-libpysal
     SUBDIR += py-lifelines
     SUBDIR += py-mdp
+    SUBDIR += py-mercantile
     SUBDIR += py-meshio
     SUBDIR += py-mmcif
     SUBDIR += py-mmtf-python
diff --git a/science/mercantile/Makefile b/science/mercantile/Makefile
deleted file mode 100644
index 12e3fd6334c5..000000000000
--- a/science/mercantile/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-PORTNAME=	mercantile
-DISTVERSION=	1.2.1
-CATEGORIES=	science
-PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Spherical mercator coordinate and tile utilities
-WWW=		https://github.com/mapbox/mercantile
-
-LICENSE=	BSD3CLAUSE
-
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.0:devel/py-click@${PY_FLAVOR}
-
-USES=		python
-USE_PYTHON=	autoplist concurrent distutils
-
-USE_GITHUB=	yes
-GH_ACCOUNT=	mapbox
-
-NO_ARCH=	yes
-
-.include <bsd.port.mk>
diff --git a/science/mercantile/distinfo b/science/mercantile/distinfo
deleted file mode 100644
index e3088cf7c11c..000000000000
--- a/science/mercantile/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1662722235
-SHA256 (mapbox-mercantile-1.2.1_GH0.tar.gz) = 4437c29cf8ecf96f68e2dfa9e0abe1a125bd9d772d9ee7413d48cbf6092d9e01
-SIZE (mapbox-mercantile-1.2.1_GH0.tar.gz) = 36690
diff --git a/science/py-mercantile/Makefile b/science/py-mercantile/Makefile
new file mode 100644
index 000000000000..f22231f5861a
--- /dev/null
+++ b/science/py-mercantile/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	mercantile
+DISTVERSION=	1.2.1
+PORTREVISION=	1
+CATEGORIES=	science
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Web mercator XYZ tile utilities
+WWW=		https://github.com/mapbox/mercantile
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=3.0:devel/py-click@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/science/py-mercantile/distinfo b/science/py-mercantile/distinfo
new file mode 100644
index 000000000000..aaa333f05ab5
--- /dev/null
+++ b/science/py-mercantile/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1662722235
+SHA256 (mercantile-1.2.1.tar.gz) = fa3c6db15daffd58454ac198b31887519a19caccee3f9d63d17ae7ff61b3b56b
+SIZE (mercantile-1.2.1.tar.gz) = 26352
diff --git a/science/mercantile/pkg-descr b/science/py-mercantile/pkg-descr
similarity index 100%
rename from science/mercantile/pkg-descr
rename to science/py-mercantile/pkg-descr