diff options
Diffstat (limited to 'dev-util/pkgcheck')
-rw-r--r-- | dev-util/pkgcheck/Manifest | 3 | ||||
-rw-r--r-- | dev-util/pkgcheck/files/50pkgcheck-gentoo.el | 4 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-9999.ebuild | 32 |
3 files changed, 37 insertions, 2 deletions
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest index fa8a1ae31ae5..3ab8b4d17078 100644 --- a/dev-util/pkgcheck/Manifest +++ b/dev-util/pkgcheck/Manifest @@ -1,6 +1,7 @@ +AUX 50pkgcheck-gentoo.el 179 BLAKE2B e2f6ee5f7bbb7371076ec8ca029a4c75ca9c943efb4e1a1d449b4377998000667bb3460d6fbb501e0cd9c3759d274869ed4f39553eae10bdcda382cc50951792 SHA512 b82eb973f9fa37228cfbbe687211678bf75017ad6ef632fd5cf1323dc1d17fcd0b8108a3d02c4ebee3027cf0404bc7f2600c42ea3bec14f9666f61a627874627 DIST pkgcheck-0.10.11.tar.gz 474106 BLAKE2B 2a3e330d54e421a48e5cd89044b9af37334bf461f47487b8dd62e7fd1c766d162766d0a6c1319c50c3fd6965b56377536743903c265782b2fbef050d4f805d3a SHA512 b47814822599417d0f7030ac444fd4b2bab1f1bea21abc2a4fe1dd679185afd7d5f823aefff1b6830036de5c7db6232c0b6fc6d33f9c2535d88a711e6d49132c DIST pkgcheck-0.10.12.tar.gz 477880 BLAKE2B 9d71e6d3312f2c11a722f12c854a14523174b91ca1cf8ea89f6da3463e8aeab1744b083a31eca675e40069b57f4b2b24a83efa0d692d90cd00b9e9c4ec452a02 SHA512 e146dd0533b769078102ff27f90120c459ceb614aed4365a43a36e1a24d1230890c9da7a756b3fcce528806ca1fca10d8d8c283dcc464a7c98368bac0d98a26f EBUILD pkgcheck-0.10.11.ebuild 1661 BLAKE2B 7b7f84f3c944a517a3dcc7f18bc12856f97df92a90be68f3b3b59fb574e382ac55f6e52f684e6e49db36a9b40fc7ce7b0d9860a39c13ac48215fef31fa06f733 SHA512 1a88f0f25b4584f3b84c5a04e43695ff8af6ed609e2e85cba141ad2cd43dd7cd40cf0bbec172804e361e4aae21409b424e5aad37e540d1cdef8664c7e0e85463 EBUILD pkgcheck-0.10.12.ebuild 1669 BLAKE2B a4138f9a6237e810e6d62e0de9a2917dae00ed38ea7c3e28a01cec936efcaf6e289a0933f930cbe33a4de93d9c1339e9b6eb743d91110ed7d067325790a0c78c SHA512 343538d930710fa9f2ac633be577641bfe2424eafb9c8779953dd24d876b006fa460eb415297dd526476ff09f3fe9791abe01d806e03c7c372b0bf56ffc02c7a -EBUILD pkgcheck-9999.ebuild 1669 BLAKE2B a4138f9a6237e810e6d62e0de9a2917dae00ed38ea7c3e28a01cec936efcaf6e289a0933f930cbe33a4de93d9c1339e9b6eb743d91110ed7d067325790a0c78c SHA512 343538d930710fa9f2ac633be577641bfe2424eafb9c8779953dd24d876b006fa460eb415297dd526476ff09f3fe9791abe01d806e03c7c372b0bf56ffc02c7a +EBUILD pkgcheck-9999.ebuild 2205 BLAKE2B f2be60125edc166fd8125530885959b32b06186836fcd52c2df20274fa26f66cb0827327cc835ae50887c9d1bd42b77c11e560000f435eb62e29c6bd66f1c848 SHA512 96aada3f50188cdcdbb9006552a11b135948839889c8e563046a24d7256e56cb7dc2be2dfb66e8e047a6cc805be465cadb9a7557fccefd7de9b294d2cd51120b MISC metadata.xml 486 BLAKE2B 3fbd43c40601e7edccf11e4335b82d90bd42c9144436529dd6a0c2ffaccbf5febf018c55a336d07c2a86271b43e8da4dafa228a6d2afa7dfd8215eeda5e415e8 SHA512 98c0803dd08976c0f1be543c052a49647d3ec3dbb02667053fee22baec3a05723350cc02d3c0090ff128ba795ed4802b8b73161148f2b790519bbcb881b31105 diff --git a/dev-util/pkgcheck/files/50pkgcheck-gentoo.el b/dev-util/pkgcheck/files/50pkgcheck-gentoo.el new file mode 100644 index 000000000000..7808713be94a --- /dev/null +++ b/dev-util/pkgcheck/files/50pkgcheck-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'flycheck-pkgcheck-setup "flycheck-pkgcheck" + "Flycheck pkgcheck setup." t) +(add-hook 'ebuild-mode-hook 'flycheck-pkgcheck-setup) diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index 44a8666a2eac..80366db8e2e5 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_IN_SOURCE_BUILD=1 -inherit distutils-r1 optfeature +inherit elisp-common distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git" @@ -20,6 +20,7 @@ HOMEPAGE="https://github.com/pkgcore/pkgcheck" LICENSE="BSD MIT" SLOT="0" +IUSE="emacs" if [[ ${PV} == *9999 ]]; then RDEPEND=" @@ -38,8 +39,14 @@ RDEPEND+=" dev-python/lxml[${PYTHON_USEDEP}] dev-python/pathspec[${PYTHON_USEDEP}] >=dev-python/tree-sitter-0.19.0[${PYTHON_USEDEP}] + emacs? ( + >=app-editors/emacs-24.1:* + app-emacs/ebuild-mode + app-emacs/flycheck + ) " BDEPEND=" + ${RDEPEND} test? ( dev-python/pytest[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] @@ -47,10 +54,22 @@ BDEPEND=" ) " +SITEFILE="50${PN}-gentoo.el" + distutils_enable_tests setup.py export USE_SYSTEM_TREE_SITTER_BASH=1 +src_compile() { + distutils-r1_src_compile + + if use emacs ; then + pushd "${S}"/contrib/emacs >/dev/null || die + elisp-compile *.el + popd >/dev/null || die + fi +} + src_test() { local -x PYTHONDONTWRITEBYTECODE= distutils-r1_src_test @@ -60,9 +79,20 @@ python_install_all() { local DOCS=( NEWS.rst ) [[ ${PV} == *9999 ]] || doman man/* distutils-r1_python_install_all + + if use emacs ; then + elisp-install ${PN} "${S}"/contrib/emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi } pkg_postinst() { + use emacs && elisp-site-regen + optfeature "Network check support" dev-python/requests optfeature "Perl module version check support" dev-perl/Gentoo-PerlMod-Version } + +pkg_postrm() { + use emacs && elisp-site-regen +} |