diff options
Diffstat (limited to 'devel/py-pyjq')
| -rw-r--r-- | devel/py-pyjq/Makefile | 27 | ||||
| -rw-r--r-- | devel/py-pyjq/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-pyjq/files/patch-setup.py | 89 | ||||
| -rw-r--r-- | devel/py-pyjq/pkg-descr | 13 |
4 files changed, 0 insertions, 132 deletions
diff --git a/devel/py-pyjq/Makefile b/devel/py-pyjq/Makefile deleted file mode 100644 index 8006721108ac..000000000000 --- a/devel/py-pyjq/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -PORTNAME= pyjq -PORTVERSION= 2.4.0 -PORTREVISION= 1 -CATEGORIES= devel python -MASTER_SITES= PYPI -PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} - -MAINTAINER= gmm@tutanota.com -COMMENT= Python binding for jq -WWW= https://github.com/doloopwhile/pyjq - -LICENSE= MIT -LICENSE_FILE= ${WRKSRC}/LICENSE - -LIB_DEPENDS= libjq.so:textproc/jq \ - libonig.so:devel/oniguruma - -USES= localbase python:3.9 -USE_PYTHON= autoplist distutils - -post-patch: - @${RM} -r ${WRKSRC}/dependencies - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pyjq*.so - -.include <bsd.port.mk> diff --git a/devel/py-pyjq/distinfo b/devel/py-pyjq/distinfo deleted file mode 100644 index 80c8f67a0a03..000000000000 --- a/devel/py-pyjq/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1573147120 -SHA256 (pyjq-2.4.0.tar.gz) = 651f7a3ab2087e7c69cf00f1ba5433d7afe7b72f4ff499dcaf9c86cb1c2ae3c1 -SIZE (pyjq-2.4.0.tar.gz) = 2033014 diff --git a/devel/py-pyjq/files/patch-setup.py b/devel/py-pyjq/files/patch-setup.py deleted file mode 100644 index 01feb11f0dc1..000000000000 --- a/devel/py-pyjq/files/patch-setup.py +++ /dev/null @@ -1,89 +0,0 @@ ---- setup.py.orig 2019-09-18 06:52:51 UTC -+++ setup.py -@@ -12,86 +12,20 @@ from setuptools import setup - from setuptools.extension import Extension - from setuptools.command.build_ext import _build_ext - -- --dependencies_dir_path = join(abspath(dirname(__file__)), "dependencies") -- --onig_tarball_path = join(dependencies_dir_path, "onig-6.9.0.tar.gz") --onig_install_path = join(dependencies_dir_path, "onig_install") --onig_source_path = join(dependencies_dir_path, "onig-6.9.0") -- --jq_tarball_path = join(dependencies_dir_path, "jq-1.5.tar.gz") --jq_install_path = join(dependencies_dir_path, "jq_install") --jq_source_path = join(dependencies_dir_path, "jq-jq-1.5") -- -- - class build_ext(_build_ext): - def run(self): -- self._build_oniguruma() -- self._build_libjq() - _build_ext.run(self) - -- def _build_oniguruma(self): -- self._safe_rmtree(onig_install_path) -- self._safe_rmtree(onig_source_path) -- -- self._extract_tarball(onig_tarball_path, dependencies_dir_path) -- self._build_lib( -- lib_dir=onig_source_path, -- commands=[ -- ["./configure", "CFLAGS=-fPIC", "--disable-shared", "--prefix", onig_install_path], -- ["make"], -- ["make", "install"], -- ] -- ) -- -- def _build_libjq(self): -- self._safe_rmtree(jq_install_path) -- self._safe_rmtree(jq_source_path) -- -- self._extract_tarball(jq_tarball_path, dependencies_dir_path) -- self._build_lib( -- lib_dir=jq_source_path, -- commands=[ -- ["autoreconf", "-i"], -- ["./configure", "CFLAGS=-fPIC", "--disable-maintainer-mode", -- "--enable-all-static", "--disable-shared", -- "--with-oniguruma=" + onig_install_path, "--prefix", jq_install_path], -- ["make", "install-libLTLIBRARIES", "install-includeHEADERS"], -- ] -- ) -- -- def _build_lib(self, lib_dir, commands): -- macosx_deployment_target = sysconfig.get_config_var("MACOSX_DEPLOYMENT_TARGET") -- if macosx_deployment_target: -- os.environ['MACOSX_DEPLOYMENT_TARGET'] = macosx_deployment_target -- -- for command in commands: -- subprocess.check_call(command, cwd=lib_dir) -- -- def _extract_tarball(self, tarball_path, workdir_path): -- tarfile.open(tarball_path, "r:gz").extractall(workdir_path) -- -- def _safe_rmtree(self, d): -- try: -- shutil.rmtree(d) -- except OSError: -- pass -- - libraries = ["jq", "onig"] --if platform.architecture()[1] == 'WindowsPE': -- libraries.append("shlwapi") - - pyjq = Extension( - "_pyjq", - sources=["_pyjq.c"], -- include_dirs=["dependencies/jq_install/include"], - libraries=libraries, -- library_dirs=["dependencies/jq_install/lib", "dependencies/onig_install/lib"] - ) - - setup( - test_suite='test_pyjq', - ext_modules=[pyjq], - cmdclass={"build_ext": build_ext}, -- package_data={'': [onig_tarball_path, jq_tarball_path]}, - ) diff --git a/devel/py-pyjq/pkg-descr b/devel/py-pyjq/pkg-descr deleted file mode 100644 index 717eb027d0c3..000000000000 --- a/devel/py-pyjq/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -pyjq is a Python bindings for jq (http://stedolan.github.io/jq/). - - jq is like sed for JSON data - you can use it to slice and filter and map - and transform structured data with the same ease that sed, awk, grep and - friends let you play with text. - - http://stedolan.github.io/jq/ - -You can seamlessly call jq script (like regular expression) and process a plain -python data structure. - -For your information, https://pypi.python.org/pypi/jq is a also jq bindings but -different and incompatible with pyjq. |
