Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/nusmv/
Date: Sat, 24 Sep 2016 13:31:10
Message-Id: 1474723809.fcd24257a64491dc584f2bb5e4cfd6a987d58093.soap@gentoo
1 commit: fcd24257a64491dc584f2bb5e4cfd6a987d58093
2 Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
3 AuthorDate: Mon Sep 19 16:36:31 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 13:30:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcd24257
7
8 sci-mathematics/nusmv: version bump to 2.6.0 + EAPI bump
9
10 Package-Manager: portage-2.2.28
11 Closes: https://github.com/gentoo/gentoo/pull/2271
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 sci-mathematics/nusmv/Manifest | 2 +
16 sci-mathematics/nusmv/metadata.xml | 1 +
17 sci-mathematics/nusmv/nusmv-2.6.0.ebuild | 81 ++++++++++++++++++++++++++++++++
18 3 files changed, 84 insertions(+)
19
20 diff --git a/sci-mathematics/nusmv/Manifest b/sci-mathematics/nusmv/Manifest
21 index 5b81573..38fefd8 100644
22 --- a/sci-mathematics/nusmv/Manifest
23 +++ b/sci-mathematics/nusmv/Manifest
24 @@ -4,3 +4,5 @@ DIST NuSMV-2.5.0.tar.gz 3792968 SHA256 59310f5f23f72cb1ad16419e40f245db7c5aa41c0
25 DIST NuSMV-2.5.2.tar.gz 3631420 SHA256 bc41c53c266d41d7bcb92851fbdb07d894c246d1189bfe420301c7b4fca46de0 SHA512 678dd85a860744943e56a3fc02b3cccacc93fcbac064bcda079e612348b91876372a866e7236bdf12fb3c1dae9d727d3baaa23fa3f4cf5194497f06c87e00e9f WHIRLPOOL bb491869c997d1de09632986c03945c7e0e76173735bd07c18951030d3e61ab370ddd3dd9db9c585ede62768e1dd7d3465da418a0c29577e502a7f9afecbc9fe
26 DIST NuSMV-2.5.3.tar.gz 3951637 SHA256 d5d6b2873dfa6f82ff9bef1a7eefa36dc5070557aa2b0e0d53cc8c54b2fe437d SHA512 8233a621d3cfad17d0b8f77a33460089b5c0a9fa694e6d91cbd6eb334213cd8d9e37fce8755e9ebc066279f25e86dfa7ded0197f679e42b8f2e7c048cc93356a WHIRLPOOL ea8075f405324179a822b9abd78f2c5d2a0c62ac31d2682f2145db7b033e2cf30f3a466689d75814cc3bfc551471425097d17515b19742f298899a432daec249
27 DIST NuSMV-2.5.4.tar.gz 3968258 SHA256 3c250624cba801b1f62f50733f9507b0f3b3ca557ce1cd65956178eb273f1bdf SHA512 fc3cc641bbdbfc9464947c9991c8d363adeed9ed34af215c092a14b32d5ce536cb2dbc4eee1645d5aa85caa85e6e95b695620fa247f3a22652cdc4cd252c4c79 WHIRLPOOL 5822d1e7d853cf78cbdee07b0dafa1216fd226ecad803533310351573c7e9a864e6bba699a16c1b357da458311bf65b7362b6207b63e0c8008123e63950121e1
28 +DIST NuSMV-2.6.0.tar.gz 4223312 SHA256 dba953ed6e69965a68cd4992f9cdac6c449a3d15bf60d200f704d3a02e4bbcbb SHA512 3749e0267c2adffaa5f2f98ee925f5a774e3132277a02c549b3f4b836f8b090a44d6a14730b58251d7bb88055eb55e89f0eab7fea8714cb2f0786afd803efd0e WHIRLPOOL 26dfa45e0cb97807364783a574f5ec1d26e7240eec411bf1f674872c62e037d912e409dabbfb78fdd52a4a317297fc3918149efe1460dadc0e5d5d0a3cabfb28
29 +DIST zchaff.64bit.2007.3.12.zip 63139 SHA256 9b88d8f366d0dc6b3cacd9d497e755d06af069ff27411870cc8b40fe0f11911f SHA512 075d0bceede6643a880763943cba9a2fa0f6c58c47b86c0a2bbbe86a2e3925dc5b3859800d1cab0c558d727635556beb77f9efbd0f2837a768ef8d513dc2b300 WHIRLPOOL ba62b561d415ea15f6734466a45760aba4fa45430f1baf904db5f15332bfc94797cbc2f9ebc2f77797bffc1489a54a527790f4f7314bf92871324e8e3cf0c0ab
30
31 diff --git a/sci-mathematics/nusmv/metadata.xml b/sci-mathematics/nusmv/metadata.xml
32 index a6eef5c..314da18 100644
33 --- a/sci-mathematics/nusmv/metadata.xml
34 +++ b/sci-mathematics/nusmv/metadata.xml
35 @@ -10,5 +10,6 @@
36 </maintainer>
37 <use>
38 <flag name="minisat">Enable support for MiniSat</flag>
39 + <flag name="zchaff">Enable support for zChaff</flag>
40 </use>
41 </pkgmetadata>
42
43 diff --git a/sci-mathematics/nusmv/nusmv-2.6.0.ebuild b/sci-mathematics/nusmv/nusmv-2.6.0.ebuild
44 new file mode 100644
45 index 00000000..b63439a
46 --- /dev/null
47 +++ b/sci-mathematics/nusmv/nusmv-2.6.0.ebuild
48 @@ -0,0 +1,81 @@
49 +# Copyright 1999-2016 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +# $Id$
52 +
53 +EAPI=6
54 +
55 +PYTHON_COMPAT=( python2_7 )
56 +
57 +inherit cmake-utils python-any-r1 toolchain-funcs
58 +
59 +MY_P="NuSMV-${PV}"
60 +NUSMV_A="${MY_P}.tar.gz"
61 +ZCHAFF_A="zchaff.64bit.2007.3.12.zip"
62 +
63 +DESCRIPTION="NuSMV: new symbolic model checker"
64 +HOMEPAGE="http://nusmv.fbk.eu/"
65 +SRC_URI="http://nusmv.fbk.eu/distrib/${NUSMV_A}
66 + zchaff? ( http://www.princeton.edu/~chaff/zchaff/${ZCHAFF_A} )"
67 +LICENSE="LGPL-2.1"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="minisat doc zchaff"
71 +REQUIRED_USE="|| ( minisat zchaff )"
72 +
73 +SHARED_DEPEND="minisat? ( >=sci-mathematics/minisat-2.2.0_p20130925 )"
74 +RDEPEND="${SHARED_DEPEND}
75 + dev-libs/expat"
76 +DEPEND="${SHARED_DEPEND}
77 + doc? (
78 + virtual/latex-base
79 + dev-texlive/texlive-latexextra
80 + app-doc/doxygen
81 + )
82 + dev-libs/libxml2"
83 +
84 +S="${WORKDIR}/${MY_P}/NuSMV"
85 +
86 +src_unpack() {
87 + unpack "${NUSMV_A}"
88 + if use zchaff; then
89 + cp "${DISTDIR}/${ZCHAFF_A}" "${WORKDIR}/${MY_P}/zChaff" || die
90 + fi
91 +}
92 +
93 +src_prepare() {
94 + sed -i -e 's/-mcpu=[^\s]*//' "${WORKDIR}/${MY_P}/cudd-2.4.1.1"/Makefile || die
95 + # Prevent automatic build of minisat - we are using the ebuild from portage
96 + sed -i -e 's/ add_subdirectory(${MINISAT_SOURCE_DIR} ${MINISAT_BUILD_DIR})//' \
97 + -e 's/MINISAT_LIB/MiniSat/' CMakeLists.txt || die
98 + sed -i -e 's/DEPENDS MINISAT_BUILD//' code/nusmv/core/sat/solvers/CMakeLists.txt || die
99 + # Change the "prog-man/html" rule to optional
100 + sed -i -e '/\s*install( .*html /s:${PROJECT_BINARY_DIR}:share/nusmv/doc OPTIONAL:' doc/prog-man/CMakeLists.txt || die
101 + # Change the doc destination
102 + sed -i -e "s:share/nusmv/doc:share/doc/${PF}:" doc/{tutorial,user-man,prog-man}/CMakeLists.txt || die
103 +
104 + # Correction for proper parallel compilation
105 +# sed -i -e 's/COMMAND ${MAKE}/COMMAND $(MAKE)/' "${WORKDIR}/${MY_P}/"{zchaff,MiniSat}/CMakeLists.txt || die
106 + default
107 +}
108 +
109 +src_configure() {
110 + local mycmakeargs=(
111 + -DENABLE_MINISAT=$(usex minisat)
112 + -DENABLE_ZCHAFF=$(usex zchaff)
113 + -DMINISAT_INCLUDE_DIR="${EPREFIX}"/usr/include/minisat/simp
114 + )
115 +
116 + cmake-utils_src_configure
117 +}
118 +
119 +src_compile() {
120 + local targets=( all )
121 + use doc && targets+=( prog-man user-man html tutorial docs )
122 + cmake-utils_src_compile "${targets[@]}"
123 +}
124 +
125 +src_install() {
126 + cmake-utils_src_install
127 + # Remove docs where they do not belong to
128 + rm -f "${ED%/}"/usr/share/nusmv/{LGPL-2.1,README*,NEWS} || die
129 +}