From a80a83905fd2ccf8b75684915bbfaa961000f20c Mon Sep 17 00:00:00 2001 From: sthen Date: Wed, 11 Sep 2019 21:03:51 +0000 Subject: [PATCH] import ports/sysutils/py-distro, ok kmos@ distro provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or version information. It is the recommended replacement for Python's original platform.linux_distribution function (which will be removed in Python 3.8). It also provides much more functionality which isn't necessarily Python bound, like a command-line interface. --- sysutils/py-distro/Makefile | 22 ++++++++++++++++++++++ sysutils/py-distro/distinfo | 2 ++ sysutils/py-distro/pkg/DESCR | 7 +++++++ sysutils/py-distro/pkg/PLIST | 10 ++++++++++ 4 files changed, 41 insertions(+) create mode 100644 sysutils/py-distro/Makefile create mode 100644 sysutils/py-distro/distinfo create mode 100644 sysutils/py-distro/pkg/DESCR create mode 100644 sysutils/py-distro/pkg/PLIST diff --git a/sysutils/py-distro/Makefile b/sysutils/py-distro/Makefile new file mode 100644 index 00000000000..d1be67ed797 --- /dev/null +++ b/sysutils/py-distro/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2019/09/11 21:03:51 sthen Exp $ + +COMMENT= provide information about the OS platform + +MODPY_EGG_VERSION= 1.4.0 +DISTNAME= distro-${MODPY_EGG_VERSION} +PKGNAME= py-${DISTNAME} + +CATEGORIES= sysutils + +# Apache 2.0 +PERMIT_PACKAGE= Yes + +MODULES= lang/python +MODPY_PI= Yes +MODPY_SETUPTOOLS= Yes +MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3} +MODPY_PYTEST= Yes + +TEST_DEPENDS= devel/py-test-cov${MODPY_FLAVOR} + +.include diff --git a/sysutils/py-distro/distinfo b/sysutils/py-distro/distinfo new file mode 100644 index 00000000000..614ddcbf493 --- /dev/null +++ b/sysutils/py-distro/distinfo @@ -0,0 +1,2 @@ +SHA256 (distro-1.4.0.tar.gz) = Ni3eZdhG0juu5LXAWMhYbyGbWlS+HPX8b/VcRXg5L1c= +SIZE (distro-1.4.0.tar.gz) = 53719 diff --git a/sysutils/py-distro/pkg/DESCR b/sysutils/py-distro/pkg/DESCR new file mode 100644 index 00000000000..be8bf46da4c --- /dev/null +++ b/sysutils/py-distro/pkg/DESCR @@ -0,0 +1,7 @@ +distro provides information about the OS distribution it runs on, such +as a reliable machine-readable ID, or version information. + +It is the recommended replacement for Python's original +platform.linux_distribution function (which will be removed in Python +3.8). It also provides much more functionality which isn't necessarily +Python bound, like a command-line interface. diff --git a/sysutils/py-distro/pkg/PLIST b/sysutils/py-distro/pkg/PLIST new file mode 100644 index 00000000000..325f16120f6 --- /dev/null +++ b/sysutils/py-distro/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2019/09/11 21:03:51 sthen Exp $ +bin/distro +lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}distro.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt +lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/distro.py