diff options
author | 2014-07-27 08:59:42 -0400 | |
---|---|---|
committer | 2014-07-27 08:59:42 -0400 | |
commit | 6c93ceb310e4858b7063b32776a3e138b89e0291 (patch) | |
tree | e86980b167407876a13ea98b146c7656c7352ae0 | |
parent | [dev-util/gcc-python-plugin] Adding dev-python/sphinx dependency (diff) | |
download | dMaggot-6c93ceb310e4858b7063b32776a3e138b89e0291.tar.gz dMaggot-6c93ceb310e4858b7063b32776a3e138b89e0291.tar.bz2 dMaggot-6c93ceb310e4858b7063b32776a3e138b89e0291.zip |
[dev-util/gcc-python-plugin] Fixed missing library in installation
-rw-r--r-- | dev-util/gcc-python-plugin/Manifest | 1 | ||||
-rw-r--r-- | dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r2.ebuild | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-util/gcc-python-plugin/Manifest b/dev-util/gcc-python-plugin/Manifest index 6770686..0b73566 100644 --- a/dev-util/gcc-python-plugin/Manifest +++ b/dev-util/gcc-python-plugin/Manifest @@ -6,6 +6,7 @@ DIST gcc-python-plugin-0.11.tar.gz 839171 SHA256 8015ffe2c09123b74c194b8a390ec35 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-r2.ebuild 1967 SHA256 b0033b35d5d80be53a558ba022de3c47e47eaa137c775fc197edad036a055e3c SHA512 ed9f92a0478b9f400eccc525ee2216de730df709f504e178a03fa412225c7b46717a22459117b697257da6374c093d3cbad10a4f3650679986c6bb16e9e32716 WHIRLPOOL c77de26ddabff5b8477a426af0fa8d54857ffbceb8f40f73096bf8cda402bdec3765de49e8c65a051f3911181b0207088031a7f9353fcd8c0aff15337eb615c5 EBUILD gcc-python-plugin-0.12.ebuild 1903 SHA256 7705944d9c9688d49ba1bec5fda8c73dd8935faf3c1b89aaa944348aa1bb1294 SHA512 40b737e261295afdce9f40d5fee614ceb54c4f2235c401212a672e2f05fc499487a28f9edd27c9446dd355e4941d3a2ead126d1d604074b834ae4db7f26fded6 WHIRLPOOL d43a3470433b01644a24e3dda7f30d88c3af4a9cb2e4bf914a3a562172020928daa4f8f4546e8d6b6b892dd37451d7e1dde2f7de6536bc2af4d9dc5161b251af 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-r2.ebuild b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r2.ebuild new file mode 100644 index 0000000..4afb2f2 --- /dev/null +++ b/dev-util/gcc-python-plugin/gcc-python-plugin-0.12-r2.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} +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)" + + insinto "${GCC_PLUGIN_DIR}" + doins "gcc-c-api/libgcc-c-api.so" + doman docs/_build/man/* + + if use doc; then + dodoc -r examples + dodoc -r docs/_build/html + fi +} |