1 |
robbat2 13/12/28 05:28:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nusmv-2.5.4.ebuild |
5 |
Log: |
6 |
Bug #492696: version bump. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 sci-mathematics/nusmv/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/nusmv/ChangeLog?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/nusmv/ChangeLog?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/nusmv/ChangeLog?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/nusmv/ChangeLog,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -p -w -b -B -u -u -r1.14 -r1.15 |
23 |
--- ChangeLog 2 Feb 2013 07:34:52 -0000 1.14 |
24 |
+++ ChangeLog 28 Dec 2013 05:28:43 -0000 1.15 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sci-mathematics/nusmv |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/nusmv/ChangeLog,v 1.14 2013/02/02 07:34:52 patrick Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/nusmv/ChangeLog,v 1.15 2013/12/28 05:28:43 robbat2 Exp $ |
30 |
+ |
31 |
+*nusmv-2.5.4 (28 Dec 2013) |
32 |
+ |
33 |
+ 28 Dec 2013; Robin H. Johnson <robbat2@g.o> +nusmv-2.5.4.ebuild: |
34 |
+ Bug #492696: version bump. |
35 |
|
36 |
*nusmv-2.5.3 (02 Feb 2013) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-mathematics/nusmv/nusmv-2.5.4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/nusmv/nusmv-2.5.4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/nusmv/nusmv-2.5.4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: nusmv-2.5.4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/nusmv/nusmv-2.5.4.ebuild,v 1.1 2013/12/28 05:28:43 robbat2 Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic toolchain-funcs |
53 |
|
54 |
NUSMV_PN="NuSMV" |
55 |
NUSMV_PV="${PV}" |
56 |
NUSMV_P="${NUSMV_PN}-${NUSMV_PV}" |
57 |
NUSMV_A="${NUSMV_P}.tar.gz" |
58 |
NUSMV_S="${WORKDIR}/${NUSMV_P}/nusmv" |
59 |
|
60 |
MINISAT_PN="MiniSat" |
61 |
MINISAT_PV="1.14" |
62 |
MINISAT_P="${MINISAT_PN}_v${MINISAT_PV}" |
63 |
MINISAT_A="${MINISAT_P}_src.zip" |
64 |
MINISAT_S="${WORKDIR}/${NUSMV_P}/MiniSat/${MINISAT_P}" |
65 |
|
66 |
CUDD_PN="cudd" |
67 |
CUDD_PV="2.4.1.1" |
68 |
CUDD_P="${CUDD_PN}-${CUDD_PV}" |
69 |
#CUDD_A is none |
70 |
CUDD_S="${WORKDIR}/${NUSMV_P}/${CUDD_P}" |
71 |
|
72 |
DESCRIPTION="NuSMV: new symbolic model checker" |
73 |
HOMEPAGE="http://nusmv.irst.itc.it/" |
74 |
SRC_URI="http://nusmv.fbk.eu/distrib/${NUSMV_A} |
75 |
minisat? ( mirror://gentoo/${MINISAT_A} )" |
76 |
LICENSE="LGPL-2.1" |
77 |
SLOT="0" |
78 |
KEYWORDS="~amd64 ~x86" |
79 |
IUSE="minisat examples" |
80 |
RDEPEND="dev-libs/expat" |
81 |
DEPEND="${RDEPEND} |
82 |
virtual/latex-base |
83 |
dev-texlive/texlive-latexextra |
84 |
app-text/ghostscript-gpl |
85 |
www-client/lynx |
86 |
dev-lang/perl" |
87 |
# the above 4 are for docs, which aren't optional yet patches welcome to |
88 |
# avoid building the docs but I suspect anybody using this package will |
89 |
# actually need them |
90 |
S="${NUSMV_S}" |
91 |
|
92 |
src_unpack() { |
93 |
unpack ${NUSMV_A} |
94 |
if use minisat; then |
95 |
cd "${WORKDIR}"/${NUSMV_P}/MiniSat |
96 |
unpack ${MINISAT_A} |
97 |
epatch ${MINISAT_P}_nusmv.patch |
98 |
epatch "${FILESDIR}"/${MINISAT_P}-optimizedlib.patch |
99 |
epatch "${FILESDIR}"/${MINISAT_P}_gcc41.patch |
100 |
fi |
101 |
|
102 |
cd "${CUDD_S}" |
103 |
if [[ "$(tc-arch)" = amd64 ]] ; then |
104 |
mv Makefile_64bit Makefile || die |
105 |
fi |
106 |
sed -i Makefile -e 's/-mcpu=[^\s]*//' || die |
107 |
|
108 |
for i in ${NUSMV_S}/doc/{user-man,tutorial}/Makefile.in ; do |
109 |
sed -i.orig \ |
110 |
'/install_sh_DATA/s!$(datadir)!$(DESTDIR)$(datadir)!g' \ |
111 |
${i} || die "sed $i failed" |
112 |
done |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
if [[ "$(tc-arch)" = x86 ]] ; then |
117 |
append-flags -DNUSMV_SIZEOF_VOID_P=4 -DNUSMV_SIZEOF_LONG=4 -DNUSMV_SIZEOF_INT=4 |
118 |
fi |
119 |
# With LTO, it tried to link for 6 hours on an i7 system before failing. |
120 |
filter-flags -flto -Wl,-flto |
121 |
|
122 |
rm -f ${NUSMV_S}/${MINISAT_P} |
123 |
if use minisat; then |
124 |
cd ${MINISAT_S} |
125 |
# do NOT merge these targets |
126 |
emake COPTIMIZE="${CFLAGS}" r || die "Failed to build minisat bin" |
127 |
emake COPTIMIZE="${CFLAGS}" lr || die "Failed to build minisat lib" |
128 |
ln -sf ${MINISAT_S} "${WORKDIR}"/${NUSMV_P}/${MINISAT_P} |
129 |
fi |
130 |
|
131 |
cd ${CUDD_S} |
132 |
emake clean || die "Failed to clean cudd out." |
133 |
emake \ |
134 |
CPP="$(tc-getCPP)" CC="$(tc-getCC)" \ |
135 |
RANLIB="$(tc-getRANLIB)" ICFLAGS="${CFLAGS}" \ |
136 |
|| die "Failed to build cudd." |
137 |
|
138 |
local myconf="$(use_enable minisat) --enable-pslparser" |
139 |
if use minisat; then |
140 |
myconf="${myconf} |
141 |
--with-minisat-incdir=../${MINISAT_P} |
142 |
--with-minisat-libdir=../${MINISAT_P}" |
143 |
fi |
144 |
|
145 |
cd ${NUSMV_S} |
146 |
econf ${myconf} |
147 |
emake || die "emake failed" |
148 |
|
149 |
VARTEXFONTS="${T}"/fonts emake docs |
150 |
} |
151 |
|
152 |
src_install() { |
153 |
into /usr |
154 |
if use minisat; then |
155 |
newbin ${MINISAT_S}/minisat_release minisat |
156 |
fi |
157 |
|
158 |
dodir /usr/share/nusmv/doc |
159 |
cd ${NUSMV_S} |
160 |
emake DESTDIR="${D}" install || die "emake install failed" |
161 |
# duplicate items |
162 |
rm -f "${D}"/usr/share/nusmv/{LGPL-2.1,README*,NEWS} |
163 |
# real docs |
164 |
dodoc README* NEWS AUTHORS |
165 |
dodoc doc/tutorial/tutorial.pdf |
166 |
dodoc doc/user-man/nusmv.pdf |
167 |
|
168 |
# move package-installed docs |
169 |
mv "${D}"/usr/share/nusmv/doc/* "${D}"/usr/share/doc/${PF}/ |
170 |
rmdir "${D}"/usr/share/nusmv/doc |
171 |
|
172 |
# clean out examples if not needed |
173 |
if use !examples ; then |
174 |
rm -rf "${D}"/usr/share/nusmv/examples || die "Failed to remove examples" |
175 |
fi |
176 |
} |
177 |
|
178 |
src_test() { |
179 |
cd ${NUSMV_S} |
180 |
emake check || die "emake check failed" |
181 |
} |