From 486aa15417a60ad2e0bb3e12d7b4d38b1553f159 Mon Sep 17 00:00:00 2001 From: David Narváez Date: Mon, 8 Apr 2013 07:20:07 -0500 Subject: [gcc-python-plugin] Adding gcc-python-plugin-0.12 --- dev-util/gcc-python-plugin/ChangeLog | 6 ++ dev-util/gcc-python-plugin/Manifest | 4 +- .../gcc-python-plugin-0.10.ebuild | 105 --------------------- .../gcc-python-plugin-0.12.ebuild | 91 ++++++++++++++++++ 4 files changed, 99 insertions(+), 107 deletions(-) delete mode 100644 dev-util/gcc-python-plugin/gcc-python-plugin-0.10.ebuild create mode 100644 dev-util/gcc-python-plugin/gcc-python-plugin-0.12.ebuild diff --git a/dev-util/gcc-python-plugin/ChangeLog b/dev-util/gcc-python-plugin/ChangeLog index 089ec0f..79f1511 100644 --- a/dev-util/gcc-python-plugin/ChangeLog +++ b/dev-util/gcc-python-plugin/ChangeLog @@ -12,6 +12,12 @@ * gcc-python-plugin-0.9.ebuild: Adding ebuild for version 0.9 including man pages and documentation for Python 3 +*gcc-python-plugin-0.12 (08 Apr 2013) + + 08 Apr 2013; -gcc-python-plugin-0.10.ebuild, + +gcc-python-plugin-0.12.ebuild: + Adding gcc-python-0.12 + 08 Mar 2013; David E. Narváez gcc-python-plugin-9999.ebuild: Updating live ebuild to new gccutils and EAPI 5 diff --git a/dev-util/gcc-python-plugin/Manifest b/dev-util/gcc-python-plugin/Manifest index 13dd5c7..b448029 100644 --- a/dev-util/gcc-python-plugin/Manifest +++ b/dev-util/gcc-python-plugin/Manifest @@ -2,9 +2,9 @@ AUX gcc-python-plugin-cpp-compilation.diff 3437 SHA256 43d2b86ac9b1645a0b050bd0d AUX gcc-python-plugin-man-target.diff 425 SHA256 a4d2b1270e5f41a669e657cb1b04814f23e38dce05de4cb2748104e051e3f159 SHA512 484c4600c8a70dfe2e455d14ad2d70f773f3091894259af8ffaa433c676c0fd8dd55f8e83455d257173686bb724402ed7471bc0eff88f62cba03336bd5d5019c WHIRLPOOL ac6755859918827a73f9331b228644dd32ba97075597522e7f90ecfca82a54f2f4138800fc87dbcc519e9972f42854e6422af4232926a0e00d15af44ceb848cb AUX gcc-python-plugin-python3-docs.diff 1103 SHA256 111ef08f5bc6bc37d8db661a11e8105dcd8ee107178165dc0d7e0ffad72973e5 SHA512 e498673528d0c3af1ea7ff141fc308eef455be69f2531e65241cc67b1b532be48b79b57971264e3e8c7622abc2df15fa5ac1fee3710e29392b7d63e34ad5f661 WHIRLPOOL 1a191d3a5d29c37d97c74b2c99a960cd855145ce2a6dfaaf91ab108c62f98eed312ad841d220c4fc74b3f22aa80f00d1f28016bb0cfce5b6aa421a707ff6b652 AUX gcc-with-python 127 SHA256 9b3e8c17f64b6cd59310069628238dce65c0aaba91d55b8b976dd3ab2f876617 SHA512 7005cfd21e60129ccb00e9c9bb7de5f02c8315b403c680b88ec05fd75622c783ebaeeb4778ec60792dba74eb7e14f5b2fff6c180a9b16826cb81f3380d2b94f3 WHIRLPOOL d5aa88eef40bd975478fc668ad0a5d155eb430e9216ea1508f6a97ab4e41f171aca8eba86704859d2cb92cde7424ef8dfaee9386af38ef7232812475a1e99c4d -DIST gcc-python-plugin-0.10.tar.gz 836437 SHA256 1f12bb252394cb3ea6218e76fca126820b4c65d0abe16d94345cb66a50018ab8 SHA512 fae932f2ee1956eb36b3a68977823279f3f7192c7cb617ca1d5dc1b51cbfc7dad71bec0f69c3b897c49446d444625c8c6736fcbb1aae93262202b9d74dc229ad WHIRLPOOL 08c3e642f195f95dcb35960fe8bd79d6a3bd5daab67812f355b90d11584602cb8952e15fce54197d8dc408ef57661515cca3946759c3f3e2a7ecfef864f25f4d DIST gcc-python-plugin-0.11.tar.gz 839171 SHA256 8015ffe2c09123b74c194b8a390ec3584ef8b2f02990d4ad033a1f7759f1eb79 SHA512 0a7966617690df7ca322f4ed197713444d4f12ff95c37d76ab609a49f4e1c08351e5185eeefdff7f99c23683dd1ae78020d53c01e4c5b29fae0d402a8142a2b6 WHIRLPOOL 1154c55853f70daa0e070244c84cfae5a5561500e0827248e77bcab190e806488dcd527cc65cfc01ba95991a42ec3409b43c7610563e4e151d00f5c85f940b16 -EBUILD gcc-python-plugin-0.10.ebuild 2181 SHA256 2fe5d35bcf2d1be069dc0aebe0921d30e4aeec8fa2b3593963d5e968f443ff6e SHA512 9ced3cd44bf91d3bfe723747f1f0d6217e717353bd542caae68968018c2fd7919ba0e50e832afe65a81de261bc3251a28f486a6d971aa34f58cc3bd8ab65d47a WHIRLPOOL 86cbeeadad33d009277815a3e80ba9c17ac6f4a3649805d85b1f0ebbab2fc01b4f8f734f78a739c1aebd44fa89289af4973c1dd70cbadebecc726237b7aab8f5 +DIST gcc-python-plugin-0.12.tar.gz 1030708 SHA256 790fc5af26d58dade58995612858b861bbc1a86183655e656325739d6e979dec SHA512 155b933f1ce42b0926e302b070e2002f6498c4bc8ce26d712295286ada9f0dbfe841a67d4ef56ccfa4d15b55be9ec471c765a0421b11871cd8d4474c79931b78 WHIRLPOOL cb91ebd34de179f5590fe883b0fa4aead2522a1294bf92c5af267a3ca4a4b7205c213e8fc23b33698579023cc6d7fb4ba4afaec26e3ae4989a0423e3b8ccc00b EBUILD gcc-python-plugin-0.11.ebuild 1987 SHA256 e43533d73b7a4ab40dcdfd8b718c8b8f4277a4d0d8270fd0469526b9237e1253 SHA512 99059869f24badfb22db34627c30b98c0c7e957efe32ae7fba8794fd9e36dcaf108a0fb6588c3d231d1f8aea4202fe55a0fc15f4a2c80927cb3879820a7412f6 WHIRLPOOL 6a415b8b3649e7086986faf0f7da586a5040622e101fa36501afdcd102b2ba4ebebf1335d53deb134057e9633b0ff4dbd09ce9dea4621ffda67982184b066ec0 +EBUILD gcc-python-plugin-0.12.ebuild 1909 SHA256 879de053d3141d3f780064dbace0c0d2870087c4e1f09c0c3e70d98daeb0c400 SHA512 f68503ff94aa3632b8796ae5aa7eb568d4f606e53d24049a564bacd79a20edb17e5c8800137bf563382b47cf7e3188513e1d16fa3c7b8041413c27cff858b5e6 WHIRLPOOL 1baa28859468532ed7955de4312cd4b6b22264914b20eb73d473f4ca82be8d378d659d260e9ec33a0fcf2b83fa552cae9508cb52132550e78fee4ab1f484a7cb EBUILD gcc-python-plugin-9999.ebuild 1934 SHA256 3cc3f297c9b3812d600731b3dbd5b90fc77f88ca622bcf2f9af73c18d064f585 SHA512 2dd70f90002ab99c7461d38bf8c800188191351f1704564a0ec5e123b3041bf87c40bd504b3fbfb36d34db569b7e7b4feaca92f3544b501d0222383feeb92c03 WHIRLPOOL 8221db768ed69e07b949d379d45d92ee6f7e21da05f7c6291d074f3b9f3c029f4345da78f05499c12fe36563cb25dbcc34688cede51ab2cc707f9bfa2332b187 MISC ChangeLog 684 SHA256 9aa2679e5def26eea4f26303c2d913093d2874d5742072f202be9ddaea0b73b9 SHA512 1d61e64d944b97b6f5e7b194fb1304fc0bb1d2d7d2055ddd2fddc04b7a9bda8526de8ca153c1c4b2c3a5f8692186936b6e1710c9bce6e88d96d07e603031633d WHIRLPOOL 8b4c0d8d3eb910d1c286e332faa85e8b0c0e740098f40cdbfa6615f3229c4fa60bc1bbfcc850a61c261b02f455f8db7f4ebdc6b831136847abc1de8715e0f892 diff --git a/dev-util/gcc-python-plugin/gcc-python-plugin-0.10.ebuild b/dev-util/gcc-python-plugin/gcc-python-plugin-0.10.ebuild deleted file mode 100644 index 267ab24..0000000 --- a/dev-util/gcc-python-plugin/gcc-python-plugin-0.10.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=4 - -SUPPORT_PYTHON_ABIS="1" -PYTHON_DEPEND="*" -PYTHON_EXPORT_PHASE_FUNCTIONS="1" - -inherit python toolchain-funcs versionator 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 -doc? ( - dev-python/sphinx - dev-python/pycairo -) -" - -RDEPEND="${DEPEND}" - -DEPEND="${DEPEND} -doc? ( - dev-python/sphinx - dev-python/pycairo -) -" - -src_configure() { - return -} - -src_prepare() { - if $(version_is_at_least 4.7 $(gcc-version)); then - CC=g++ - einfo "Patching for C++ compilation" - epatch "${FILESDIR}/${PN}-cpp-compilation.diff" - fi - - python_src_prepare -} - -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 gccutils.py - 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-0.12.ebuild b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12.ebuild new file mode 100644 index 0000000..b1d37a3 --- /dev/null +++ b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12.ebuild @@ -0,0 +1,91 @@ +# 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} +doc? ( + dev-python/sphinx + 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 +} -- cgit v1.2.3-65-gdbad