From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-mathematics/nusmv/Manifest | 6 +++ sci-mathematics/nusmv/metadata.xml | 15 ++++++ sci-mathematics/nusmv/nusmv-2.6.0.ebuild | 82 ++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 sci-mathematics/nusmv/Manifest create mode 100644 sci-mathematics/nusmv/metadata.xml create mode 100644 sci-mathematics/nusmv/nusmv-2.6.0.ebuild (limited to 'sci-mathematics/nusmv') diff --git a/sci-mathematics/nusmv/Manifest b/sci-mathematics/nusmv/Manifest new file mode 100644 index 000000000000..dbd13aee680e --- /dev/null +++ b/sci-mathematics/nusmv/Manifest @@ -0,0 +1,6 @@ +DIST NuSMV-2.6.0.tar.gz 4223312 SHA256 dba953ed6e69965a68cd4992f9cdac6c449a3d15bf60d200f704d3a02e4bbcbb SHA512 3749e0267c2adffaa5f2f98ee925f5a774e3132277a02c549b3f4b836f8b090a44d6a14730b58251d7bb88055eb55e89f0eab7fea8714cb2f0786afd803efd0e WHIRLPOOL 26dfa45e0cb97807364783a574f5ec1d26e7240eec411bf1f674872c62e037d912e409dabbfb78fdd52a4a317297fc3918149efe1460dadc0e5d5d0a3cabfb28 +DIST zchaff.64bit.2007.3.12.zip 63139 SHA256 9b88d8f366d0dc6b3cacd9d497e755d06af069ff27411870cc8b40fe0f11911f SHA512 075d0bceede6643a880763943cba9a2fa0f6c58c47b86c0a2bbbe86a2e3925dc5b3859800d1cab0c558d727635556beb77f9efbd0f2837a768ef8d513dc2b300 WHIRLPOOL ba62b561d415ea15f6734466a45760aba4fa45430f1baf904db5f15332bfc94797cbc2f9ebc2f77797bffc1489a54a527790f4f7314bf92871324e8e3cf0c0ab +EBUILD nusmv-2.6.0.ebuild 2369 SHA256 5f9e57e0f94f891b22dcbb9e76274738d5173298bd50df8cc282f3d6afa80124 SHA512 56b7b6dcac3e810052340a7696b4f185e36d70eb49ffeeb467ab297c37730d8bbadb508f2b1bd54764eb9aca18ef10e7b6b0e336d5e3d9c50d1176186052a34c WHIRLPOOL 2a51c801315c165ffc23e3ff375a7c246ecea117d47b6e1b557d46c846376de7b3bb7718600a7ee0a91005c3a58b081847af1e257bb2e768ac7663f0f549adf0 +MISC ChangeLog 3340 SHA256 01eaf041903e4a7c4a33d1ea3e41be600c6d9ecc4ae2747568c77fe0dd3378b0 SHA512 53dd782b237fc57b57f8299372cbc9d0a987e3dce0f5e229aa07af84dd5b68aca39d1e931b1b63661f830ac16cc38c1029728b63662f4e102dd130cb96ad7482 WHIRLPOOL b95771a1c9db02d56e5f565a6dad0b902410d61e753001f475e87baba20816c709bd50f76534fff48d2b79aaa1a45361054993bb6b57225fbe651ce5c07cdc17 +MISC ChangeLog-2015 2636 SHA256 d27307b29b0d1e07681e1d8744d0aedd993d5f461eef00c6cb154619160f82f6 SHA512 72cc45faa4afe31dfa8f8bcc924f46149da5f4021e5915864eab8ed374710146c3473ce877269c44f89fda3d6415e40b0a62f1f89c4d80d5d6b25de944db5367 WHIRLPOOL ff7e18b94ede30fcda9363027b5b06e52ac87b9f0f2ca102cdc66feb12fbd467a7028263089b4e08018669d4f0f589a076234ccec96dcb5ac2f001171dee00fb +MISC metadata.xml 475 SHA256 0c736442a96edf62296e7ed3171d64c95a42ad95908d9f26990e320b6f99de85 SHA512 77ced108c3ec2595b851e8be0fe2103087699ff5c222e2c95f09378da82b0f4340e28314e1d763a154d24edeadf42d7e62e521d5b19a201be18748513eab0b2b WHIRLPOOL fbc978ffb6439225f0f11b04ff24c6d65148acf6d1aaaeac3fa399fa382eb14079fdd80ca0cfbc03ee5c51ea66850df56f7d7fe8bacdf091bf296d5a80a980ce diff --git a/sci-mathematics/nusmv/metadata.xml b/sci-mathematics/nusmv/metadata.xml new file mode 100644 index 000000000000..314da184fb2b --- /dev/null +++ b/sci-mathematics/nusmv/metadata.xml @@ -0,0 +1,15 @@ + + + + + robbat2@gentoo.org + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + Enable support for MiniSat + Enable support for zChaff + + diff --git a/sci-mathematics/nusmv/nusmv-2.6.0.ebuild b/sci-mathematics/nusmv/nusmv-2.6.0.ebuild new file mode 100644 index 000000000000..235562292b07 --- /dev/null +++ b/sci-mathematics/nusmv/nusmv-2.6.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-any-r1 toolchain-funcs + +MY_P="NuSMV-${PV}" +NUSMV_A="${MY_P}.tar.gz" +ZCHAFF_A="zchaff.64bit.2007.3.12.zip" + +DESCRIPTION="NuSMV: new symbolic model checker" +HOMEPAGE="http://nusmv.fbk.eu/" +SRC_URI="http://nusmv.fbk.eu/distrib/${NUSMV_A} + zchaff? ( http://www.princeton.edu/~chaff/zchaff/${ZCHAFF_A} )" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="minisat doc zchaff" +REQUIRED_USE="|| ( minisat zchaff )" + +SHARED_DEPEND="minisat? ( >=sci-mathematics/minisat-2.2.0_p20130925 )" +RDEPEND="${SHARED_DEPEND} + dev-libs/expat" +DEPEND="${SHARED_DEPEND} + doc? ( + virtual/latex-base + dev-texlive/texlive-latexextra + app-doc/doxygen + ) + dev-libs/libxml2 + ${PYTHON_DEPS}" + +S="${WORKDIR}/${MY_P}/NuSMV" + +src_unpack() { + unpack "${NUSMV_A}" + if use zchaff; then + cp "${DISTDIR}/${ZCHAFF_A}" "${WORKDIR}/${MY_P}/zChaff" || die + fi +} + +src_prepare() { + sed -i -e 's/-mcpu=[^\s]*//' "${WORKDIR}/${MY_P}/cudd-2.4.1.1"/Makefile || die + # Prevent automatic build of minisat - we are using the ebuild from portage + sed -i -e 's/ add_subdirectory(${MINISAT_SOURCE_DIR} ${MINISAT_BUILD_DIR})//' \ + -e 's/MINISAT_LIB/MiniSat/' CMakeLists.txt || die + sed -i -e 's/DEPENDS MINISAT_BUILD//' code/nusmv/core/sat/solvers/CMakeLists.txt || die + # Change the "prog-man/html" rule to optional + sed -i -e '/\s*install( .*html /s:${PROJECT_BINARY_DIR}:share/nusmv/doc OPTIONAL:' doc/prog-man/CMakeLists.txt || die + # Change the doc destination + sed -i -e "s:share/nusmv/doc:share/doc/${PF}:" doc/{tutorial,user-man,prog-man}/CMakeLists.txt || die + + # Correction for proper parallel compilation +# sed -i -e 's/COMMAND ${MAKE}/COMMAND $(MAKE)/' "${WORKDIR}/${MY_P}/"{zchaff,MiniSat}/CMakeLists.txt || die + default +} + +src_configure() { + local mycmakeargs=( + -DENABLE_MINISAT=$(usex minisat) + -DENABLE_ZCHAFF=$(usex zchaff) + -DMINISAT_INCLUDE_DIR="${EPREFIX}"/usr/include/minisat/simp + ) + + cmake-utils_src_configure +} + +src_compile() { + local targets=( all ) + use doc && targets+=( prog-man user-man html tutorial docs ) + cmake-utils_src_compile "${targets[@]}" +} + +src_install() { + cmake-utils_src_install + # Remove docs where they do not belong to + rm -f "${ED%/}"/usr/share/nusmv/{LGPL-2.1,README*,NEWS} || die +} -- cgit v1.2.3