1 |
tomka 11/09/25 16:55:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lrslib-042c-r2.ebuild |
5 |
Log: |
6 |
convert to EAPI=4, fix bugs 384195, 383811. |
7 |
|
8 |
(Portage version: 2.1.10.19/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 sci-libs/lrslib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/lrslib/ChangeLog?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/lrslib/ChangeLog?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/lrslib/ChangeLog?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/lrslib/ChangeLog,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- ChangeLog 7 May 2011 18:17:48 -0000 1.6 |
24 |
+++ ChangeLog 25 Sep 2011 16:55:32 -0000 1.7 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-libs/lrslib |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/ChangeLog,v 1.6 2011/05/07 18:17:48 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/ChangeLog,v 1.7 2011/09/25 16:55:32 tomka Exp $ |
30 |
+ |
31 |
+*lrslib-042c-r2 (25 Sep 2011) |
32 |
+ |
33 |
+ 25 Sep 2011; Thomas Kahle <tomka@g.o> +lrslib-042c-r2.ebuild: |
34 |
+ Convert to EAPI=4, don't link gmp statically (bug 383811) |
35 |
+ use -DB64 on amd64 (bug 384195). |
36 |
|
37 |
07 May 2011; Thomas Kahle <tomka@g.o> -lrslib-042c.ebuild: |
38 |
Remove old |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/lrslib/lrslib-042c-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/lrslib/lrslib-042c-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/lrslib/lrslib-042c-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: lrslib-042c-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/lrslib-042c-r2.ebuild,v 1.1 2011/09/25 16:55:31 tomka Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit toolchain-funcs |
56 |
|
57 |
DESCRIPTION="self-contained ANSI C implementation of the reverse search algorithm" |
58 |
HOMEPAGE="http://cgm.cs.mcgill.ca/~avis/C/lrs.html" |
59 |
SRC_URI="http://cgm.cs.mcgill.ca/~avis/C/lrslib/${P}.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="gmp" |
65 |
|
66 |
DEPEND="gmp? ( dev-libs/gmp )" |
67 |
RDEPEND="${DEPEND}" |
68 |
|
69 |
src_prepare(){ |
70 |
sed -i "s/gcc/$(tc-getCC)/g" makefile || die |
71 |
sed -i "s/-O3/${CFLAGS} ${LDFLAGS}/g" makefile || die |
72 |
# We don't like static linking to gmp or anywhere. |
73 |
if use amd64 ; then |
74 |
# This macro may only change messages that the |
75 |
# binary outputs, but just in case... (Bug 384195) |
76 |
sed -i "s/-static/-DB64/g" makefile || die |
77 |
else |
78 |
sed -i "s/-static//g" makefile || die |
79 |
fi |
80 |
} |
81 |
|
82 |
src_compile () { |
83 |
if use amd64 ; then |
84 |
emake all64 |
85 |
else |
86 |
emake |
87 |
fi |
88 |
if use gmp ; then |
89 |
emake gmp |
90 |
fi |
91 |
} |
92 |
|
93 |
src_install() { |
94 |
dobin lrs redund redund1 |
95 |
# Collides with sys-block/buffer |
96 |
newbin buffer lrsbuffer |
97 |
if use x86; then |
98 |
dobin nash setupnash setupnash2 2nash |
99 |
# Prevent clash with cddlib: |
100 |
newbin fourier lrsfourier |
101 |
fi |
102 |
if use gmp; then |
103 |
dobin glrs gredund gfourier |
104 |
# Clash with www-plugins/gnash |
105 |
newbin gnash lrsgnash |
106 |
fi |
107 |
dodoc readme |
108 |
dohtml lrslib.html |
109 |
} |