diff options
author | 2014-07-27 05:35:39 -0400 | |
---|---|---|
committer | 2014-07-27 05:35:39 -0400 | |
commit | 3fcdf5e40ca5121a75157d6d2d191d3ad922f24b (patch) | |
tree | babc7d1b51996c5fa26022bf829534d5eb6d4349 | |
parent | [dev-util/melt] Added Melt 1.0.2 (diff) | |
download | dMaggot-3fcdf5e40ca5121a75157d6d2d191d3ad922f24b.tar.gz dMaggot-3fcdf5e40ca5121a75157d6d2d191d3ad922f24b.tar.bz2 dMaggot-3fcdf5e40ca5121a75157d6d2d191d3ad922f24b.zip |
[dev-util/gcc-python-plugin] Adding dev-python/sphinx dependency
Needed to build the man page
-rw-r--r-- | dev-util/gcc-python-plugin/Manifest | 3 | ||||
-rw-r--r-- | dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r1.ebuild | 89 | ||||
-rw-r--r-- | dev-util/gcc-python-plugin/gcc-python-plugin-9999.ebuild | 2 |
3 files changed, 92 insertions, 2 deletions
diff --git a/dev-util/gcc-python-plugin/Manifest b/dev-util/gcc-python-plugin/Manifest index f75ac66..6770686 100644 --- a/dev-util/gcc-python-plugin/Manifest +++ b/dev-util/gcc-python-plugin/Manifest @@ -5,6 +5,7 @@ AUX gcc-with-python 127 SHA256 9b3e8c17f64b6cd59310069628238dce65c0aaba91d55b8b9 DIST gcc-python-plugin-0.11.tar.gz 839171 SHA256 8015ffe2c09123b74c194b8a390ec3584ef8b2f02990d4ad033a1f7759f1eb79 SHA512 0a7966617690df7ca322f4ed197713444d4f12ff95c37d76ab609a49f4e1c08351e5185eeefdff7f99c23683dd1ae78020d53c01e4c5b29fae0d402a8142a2b6 WHIRLPOOL 1154c55853f70daa0e070244c84cfae5a5561500e0827248e77bcab190e806488dcd527cc65cfc01ba95991a42ec3409b43c7610563e4e151d00f5c85f940b16 DIST gcc-python-plugin-0.12.tar.gz 1030708 SHA256 790fc5af26d58dade58995612858b861bbc1a86183655e656325739d6e979dec SHA512 155b933f1ce42b0926e302b070e2002f6498c4bc8ce26d712295286ada9f0dbfe841a67d4ef56ccfa4d15b55be9ec471c765a0421b11871cd8d4474c79931b78 WHIRLPOOL cb91ebd34de179f5590fe883b0fa4aead2522a1294bf92c5af267a3ca4a4b7205c213e8fc23b33698579023cc6d7fb4ba4afaec26e3ae4989a0423e3b8ccc00b EBUILD gcc-python-plugin-0.11.ebuild 1931 SHA256 e41e7e25f3f1edbe2dd15a52c36f97a9b1c28c172113caa1a64f1b2e01a33dcc SHA512 8ceed52f7b94b32de46026547a6a6b322403d22f6072da30b529a5b4ac82b75bf435c4b544689ec3777f5ae87000bfe3eda3b082365ae2bbab7934dbced580a2 WHIRLPOOL 58ca8267ff11343544fbc80368e0381f2f05198f1af2c4cc9be34eb1c36ed996480dd855975d911c9b9275150dbaa9d22830b46466b5027d5f755f33b574b74f +EBUILD gcc-python-plugin-0.12-r1.ebuild 1903 SHA256 08b4c877185d8cfd783f28816a28fac56ac698d24102365a12aba17e532d6704 SHA512 0e9372e371928925faf6c424211df27c766543f97528ce5d1c7030e20b6d8cb5c57b06a67e81d93784eefbb2fd914857a01355a42f2f584891d39f82e4cf495e WHIRLPOOL ca442979b2c0952229b5cac475c1a07a2137139ea6c5e71882d3d68715058d9169dda125e26888eb1e3eda8387f37a7f5b36a5d5de421fcef7dfb4b784cd6408 EBUILD gcc-python-plugin-0.12.ebuild 1903 SHA256 7705944d9c9688d49ba1bec5fda8c73dd8935faf3c1b89aaa944348aa1bb1294 SHA512 40b737e261295afdce9f40d5fee614ceb54c4f2235c401212a672e2f05fc499487a28f9edd27c9446dd355e4941d3a2ead126d1d604074b834ae4db7f26fded6 WHIRLPOOL d43a3470433b01644a24e3dda7f30d88c3af4a9cb2e4bf914a3a562172020928daa4f8f4546e8d6b6b892dd37451d7e1dde2f7de6536bc2af4d9dc5161b251af -EBUILD gcc-python-plugin-9999.ebuild 1878 SHA256 041dd06bb99051151f688e9db241a95d0993e615d0ee54ac6068521b6c18b78e SHA512 2a33a7ef41aaa6ce983a8d5c2224711ce0427251fae5555333428176d58f2967fe7374fc85d2f700a287dd95d32d5e7da9519131b5272a06b7b4bf993d592d1b WHIRLPOOL efa0f2b2e581b52fe85b52adff67828bfd30490f7787a8eaa3207343e663aede1a1d19b71a7ad500e4a1cb8fffef44b20f20c86d52a0b4b6758db3a1b5a57e0d +EBUILD gcc-python-plugin-9999.ebuild 1878 SHA256 1438333583206be80f27ab0f7cd8c52a1218b8c284091d1544b08703c66e51bf SHA512 e1511b92c9fe56ccb780a39e9cddf283e8452175564108a1ec7ebd5a815600b1fce052ee6bb28c2c756c716f3638dad28668a901b04a27fdfee16a3811fd7eae WHIRLPOOL 9b5f8e0a12dcbbd85e2fa281b2abe6a59068fe7f95711195ad81146fb4ae1dd5ed60a4a2e55278a994377865e0dad44611d62b0140fd945e3eaf272a6296837c MISC ChangeLog 849 SHA256 f6c7f3feb67f0cf7147a8f8a06486b4715a3d3b10e44caed08be03b637946686 SHA512 4ebab561c62afba78ea045383737f0c72f548ca984f27658d9dd20237b102e70973955894992d52c49735f83620fc32894f4794b7a4fbee35042aa63f0fbfe83 WHIRLPOOL ddaf5c3356dcbe9a1ed9852ef4b546dedbe4696f3d85eb9e96dc02bb8452d93efaa2042573248f69004b3f6271f6e08ae9408421644837820ebabbf949815372 diff --git a/dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r1.ebuild b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r1.ebuild new file mode 100644 index 0000000..e6b0dba --- /dev/null +++ b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +SUPPORT_PYTHON_ABIS="1" +PYTHON_DEPEND="*" +PYTHON_EXPORT_PHASE_FUNCTIONS="1" + +inherit python eutils + +DESCRIPTION="GCC Python plugin for static analysis" +HOMEPAGE="https://fedorahosted.org/gcc-python-plugin" +SRC_URI="https://fedorahosted.org/releases/g/c/gcc-python-plugin/${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="doc" + +DEPEND="${DEPEND} +>=sys-devel/gcc-4.6 +dev-python/six +dev-python/pygments +media-gfx/graphviz" + +RDEPEND="${DEPEND}" + +DEPEND="${DEPEND} +dev-python/sphinx +doc? ( +dev-python/pycairo +)" + +src_configure() { + return +} + +src_compile() { + rename_items() { + PLUGIN_NAME="python$(python_get_version --major)" + GCC_WITH_PYTHON_SCRIPT_NAME="gcc-with-${PLUGIN_NAME}" + + cp python.so "${PLUGIN_NAME}.so" + cp gcc-with-python "${GCC_WITH_PYTHON_SCRIPT_NAME}" + sed -i -e"s|-fplugin=[^ ]*|-fplugin=${PLUGIN_NAME}|" "${GCC_WITH_PYTHON_SCRIPT_NAME}" + sed -i -e"s|-fplugin-arg-python-script|-fplugin-arg-${PLUGIN_NAME}-script|" "${GCC_WITH_PYTHON_SCRIPT_NAME}" + } + + python_execute_function -d -s plugin + python_execute_function -s rename_items + + cd "${WORKDIR}/${P}-$(python_get_version -f)" + + emake man + + if use doc; then + emake html + fi +} + +src_test() { + emake testcpybuilder test-suite testcpychecker +} + +src_install() { + GCC_PLUGIN_DIR="$(gcc --print-file-name=plugin)" + + install_plugin_files() { + dobin "gcc-with-python$(python_get_version --major)" + insinto "${GCC_PLUGIN_DIR}" + doins "python$(python_get_version --major).so" + insinto "$(python_get_sitedir)" + doins -r gccutils + doins -r libcpychecker + } + + python_execute_function -s install_plugin_files + dobin "${FILESDIR}/gcc-with-python" + + cd "${WORKDIR}/${P}-$(python_get_version -f)" + + doman docs/_build/man/* + + if use doc; then + dodoc -r examples + dodoc -r docs/_build/html + fi +} diff --git a/dev-util/gcc-python-plugin/gcc-python-plugin-9999.ebuild b/dev-util/gcc-python-plugin/gcc-python-plugin-9999.ebuild index 4e8f7eb..b1e812e 100644 --- a/dev-util/gcc-python-plugin/gcc-python-plugin-9999.ebuild +++ b/dev-util/gcc-python-plugin/gcc-python-plugin-9999.ebuild @@ -27,8 +27,8 @@ media-gfx/graphviz" RDEPEND="${DEPEND}" DEPEND="${DEPEND} -doc? ( dev-python/sphinx +doc? ( dev-python/pycairo )" |