pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-compiledb: add finished package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Fri Aug 9 13:13:31 2024 +0200
Changeset: d477f95a9b75b5c1608b113f5bb98ca5bf8e8af5
Added Files:
py-compiledb/ALTERNATIVES
py-compiledb/DESCR
py-compiledb/Makefile
py-compiledb/PLIST
py-compiledb/distinfo
Log Message:
py-compiledb: add finished package
Import this if you find it useful.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d477f95a9b75b5c1608b113f5bb98ca5bf8e8af5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-compiledb/ALTERNATIVES | 1 +
py-compiledb/DESCR | 11 +++++++++++
py-compiledb/Makefile | 29 +++++++++++++++++++++++++++++
py-compiledb/PLIST | 35 +++++++++++++++++++++++++++++++++++
py-compiledb/distinfo | 5 +++++
5 files changed, 81 insertions(+)
diffs:
diff --git a/py-compiledb/ALTERNATIVES b/py-compiledb/ALTERNATIVES
new file mode 100644
index 0000000000..1bfe595fff
--- /dev/null
+++ b/py-compiledb/ALTERNATIVES
@@ -0,0 +1 @@
+bin/compiledb @PREFIX@/bin/compiledb-@PYVERSSUFFIX@
diff --git a/py-compiledb/DESCR b/py-compiledb/DESCR
new file mode 100644
index 0000000000..62dc13848d
--- /dev/null
+++ b/py-compiledb/DESCR
@@ -0,0 +1,11 @@
+Tool for generating Clang's JSON Compilation Database file for GNU
+`make`-based build systems.
+
+It's aimed mainly at non-cmake (cmake already generates compilation
+database) large codebases. Inspired by projects like YCM-Generator
+and Bear, but faster (mainly with large projects), since in most
+cases it doesn't need a clean build (as the mentioned tools do) to
+generate the compilation database file, to achieve this it uses
+the make options such as `-n`/`--dry-run` and `-k`/`--keep-going`
+to extract the compile commands. Also, it's more **cross-compiling
+friendly** than YCM-generator's fake-toolchain approach.
diff --git a/py-compiledb/Makefile b/py-compiledb/Makefile
new file mode 100644
index 0000000000..3bd4211cbf
--- /dev/null
+++ b/py-compiledb/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+DISTNAME= compiledb-0.10.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_GITHUB:=nickdiego/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/nickdiego/compiledb
+COMMENT= Generate Clang JSON Compilation Database files for make-based build systems
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+DEPENDS+= ${PYPKGPREFIX}-wheel>=0:../../devel/py-wheel
+DEPENDS+= ${PYPKGPREFIX}-click>=0:../../devel/py-click
+DEPENDS+= ${PYPKGPREFIX}-shutilwhich>=0:../../wip/py-shutilwhich
+DEPENDS+= ${PYPKGPREFIX}-bashlex>=0:../../shells/py-bashlex
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+post-install:
+ cd ${DESTDIR}${PREFIX}/bin && ${MV} compiledb compiledb-${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-compiledb/PLIST b/py-compiledb/PLIST
new file mode 100644
index 0000000000..f0af80c469
--- /dev/null
+++ b/py-compiledb/PLIST
@@ -0,0 +1,35 @@
+@comment $NetBSD$
+bin/compiledb-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/compiledb/__init__.py
+${PYSITELIB}/compiledb/__init__.pyc
+${PYSITELIB}/compiledb/__init__.pyo
+${PYSITELIB}/compiledb/__main__.py
+${PYSITELIB}/compiledb/__main__.pyc
+${PYSITELIB}/compiledb/__main__.pyo
+${PYSITELIB}/compiledb/__version__.py
+${PYSITELIB}/compiledb/__version__.pyc
+${PYSITELIB}/compiledb/__version__.pyo
+${PYSITELIB}/compiledb/cli.py
+${PYSITELIB}/compiledb/cli.pyc
+${PYSITELIB}/compiledb/cli.pyo
+${PYSITELIB}/compiledb/commands/__init__.py
+${PYSITELIB}/compiledb/commands/__init__.pyc
+${PYSITELIB}/compiledb/commands/__init__.pyo
+${PYSITELIB}/compiledb/commands/make.py
+${PYSITELIB}/compiledb/commands/make.pyc
+${PYSITELIB}/compiledb/commands/make.pyo
+${PYSITELIB}/compiledb/compiler.py
+${PYSITELIB}/compiledb/compiler.pyc
+${PYSITELIB}/compiledb/compiler.pyo
+${PYSITELIB}/compiledb/parser.py
+${PYSITELIB}/compiledb/parser.pyc
+${PYSITELIB}/compiledb/parser.pyo
+${PYSITELIB}/compiledb/utils.py
+${PYSITELIB}/compiledb/utils.pyc
+${PYSITELIB}/compiledb/utils.pyo
diff --git a/py-compiledb/distinfo b/py-compiledb/distinfo
new file mode 100644
index 0000000000..05bdd08f2c
--- /dev/null
+++ b/py-compiledb/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (compiledb-0.10.1.tar.gz) = 0da42cac7783f89b80d4223a461f36a03852abfa69017e45c29148c521487bc0
+SHA512 (compiledb-0.10.1.tar.gz) = 9920042fa99431c54bbc31c5d6e3783d305e7520f0276ab21f86fd78f7dd68acc5381cc18e3fae0b848023798666aa4dd71c3ab7d8588c808bf73a6ad13c2d8e
+Size (compiledb-0.10.1.tar.gz) = 27579 bytes
Home |
Main Index |
Thread Index |
Old Index