X-Git-Url: https://git.sthu.org/?p=shuber-gentoo-overlay.git;a=blobdiff_plain;f=dev-util%2Fstack%2Fstack-9999.ebuild;fp=dev-util%2Fstack%2Fstack-9999.ebuild;h=2a42ce38ccca5d38065dae2d5c0490fc2df867f3;hp=0000000000000000000000000000000000000000;hb=1a3da7d5371913d212e9b7596dcd122c69918d5f;hpb=4ed57723db7c4dda887ec8c4450498cac08d719b diff --git a/dev-util/stack/stack-9999.ebuild b/dev-util/stack/stack-9999.ebuild new file mode 100644 index 0000000..2a42ce3 --- /dev/null +++ b/dev-util/stack/stack-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="STACK is a static checker that detects unstable code in C/C++ programs" +HOMEPAGE="http://css.csail.mit.edu/stack/" +SRC_URI="https://github.com/xiw/stack/archive/master.zip -> stack-master.zip" +S="${WORKDIR}/${PN}-master" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + sys-devel/clang + >sys-devel/llvm-3.3.9999" +RDEPEND="${DEPEND}" + +src_configure() { + autoreconf -fvi + econf +} + +src_install() { + default + + dobin src/ncpu + dobin src/optck + dobin src/poptck + dobin test/stack-build + + exeinto /usr/bin/stack + doexe test/arm-linux-gnueabi-g++ + doexe test/arm-linux-gnueabi-gcc + doexe test/cc1 + doexe test/gcc + + into /usr/bin/stack + dosym ${DESTTREE}/gcc ${DESTTREE}/c++ + dosym ${DESTTREE}/gcc ${DESTTREE}/cc + dosym ${DESTTREE}/gcc ${DESTTREE}/clang + dosym ${DESTTREE}/gcc ${DESTTREE}/clang++ + dosym ${DESTTREE}/gcc ${DESTTREE}/g++ +}