Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/clisp/
Date: Sun, 10 Dec 2017 14:45:36
Message-Id: 1512917129.a9d92bea5bbf4320ff99c75296508ad0ff0c630d.nimiux@gentoo
1 commit: a9d92bea5bbf4320ff99c75296508ad0ff0c630d
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 10 14:45:29 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 10 14:45:29 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=a9d92bea
7
8 dev-lisp/clisp: Clean up and sync with main repo
9
10 ...clisp-2.49-r8.ebuild => clisp-2.49-r101.ebuild} | 23 +++-
11 dev-lisp/clisp/clisp-2.49-r6.ebuild | 142 ---------------------
12 2 files changed, 16 insertions(+), 149 deletions(-)
13
14 diff --git a/dev-lisp/clisp/clisp-2.49-r8.ebuild b/dev-lisp/clisp/clisp-2.49-r101.ebuild
15 similarity index 90%
16 rename from dev-lisp/clisp/clisp-2.49-r8.ebuild
17 rename to dev-lisp/clisp/clisp-2.49-r101.ebuild
18 index e19e47f6..8948b19a 100644
19 --- a/dev-lisp/clisp/clisp-2.49-r8.ebuild
20 +++ b/dev-lisp/clisp/clisp-2.49-r101.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 +# Copyright 1999-2017 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=5
27 @@ -9,8 +9,8 @@ HOMEPAGE="http://clisp.sourceforge.net/"
28 SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
29
30 LICENSE="GPL-2"
31 -SLOT="2/${PV}"
32 -KEYWORDS="amd64 ~ppc ~sparc x86"
33 +SLOT="2/7"
34 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
35 IUSE="hyperspec X berkdb dbus fastcgi gdbm gtk pari +pcre postgres +readline svm -threads +unicode +zlib"
36 # "jit" disabled ATM
37
38 @@ -21,11 +21,11 @@ RDEPEND=">=dev-lisp/asdf-2.33-r3
39 dbus? ( sys-apps/dbus )
40 fastcgi? ( dev-libs/fcgi )
41 gdbm? ( sys-libs/gdbm )
42 - gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 )
43 + gtk? ( >=x11-libs/gtk+-2.10:2 >=gnome-base/libglade-2.6 )
44 pari? ( <sci-mathematics/pari-2.5.0 )
45 - postgres? ( >=dev-db/postgresql-8.0 )
46 - readline? ( >=sys-libs/readline-5.0 <sys-libs/readline-7.0 )
47 - pcre? ( dev-libs/libpcre )
48 + postgres? ( >=dev-db/postgresql-8.0:* )
49 + readline? ( >=sys-libs/readline-7.0:0= )
50 + pcre? ( dev-libs/libpcre:3 )
51 svm? ( sci-libs/libsvm )
52 zlib? ( sys-libs/zlib )
53 X? ( x11-libs/libXpm )
54 @@ -61,15 +61,24 @@ src_prepare() {
55 epatch "${FILESDIR}"/${P}-bits_ipctypes_to_sys_ipc.patch
56 epatch "${FILESDIR}"/${P}-get_hostname.patch
57 epatch "${FILESDIR}"/${P}-tinfo.patch
58 + # bug #594552
59 + epatch "${FILESDIR}"/${P}-readline-7.patch
60 }
61
62 src_configure() {
63 + # Bug 618170. If anyone has a better idea...
64 + append-flags -fno-pie
65 +
66 # We need this to build on alpha/ia64
67 if use alpha || use ia64; then
68 replace-flags -O? -O1
69 append-flags '-D NO_MULTIMAP_SHM -D NO_MULTIMAP_FILE -D NO_SINGLEMAP -D NO_TRIVIALMAP'
70 fi
71
72 + if use x86; then
73 + append-flags -falign-functions=4
74 + fi
75 +
76 # QA issue with lisp.run
77 append-flags -Wa,--noexecstack
78
79
80 diff --git a/dev-lisp/clisp/clisp-2.49-r6.ebuild b/dev-lisp/clisp/clisp-2.49-r6.ebuild
81 deleted file mode 100644
82 index 93e79df6..00000000
83 --- a/dev-lisp/clisp/clisp-2.49-r6.ebuild
84 +++ /dev/null
85 @@ -1,142 +0,0 @@
86 -# Copyright 1999-2017 Gentoo Foundation
87 -# Distributed under the terms of the GNU General Public License v2
88 -
89 -EAPI=5
90 -inherit flag-o-matic eutils toolchain-funcs multilib
91 -
92 -DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp"
93 -HOMEPAGE="http://clisp.sourceforge.net/"
94 -SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
95 -
96 -LICENSE="GPL-2"
97 -SLOT="2"
98 -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
99 -IUSE="hyperspec X berkdb dbus fastcgi gdbm gtk pari +pcre postgres +readline svm -threads +unicode +zlib"
100 -# "jit" disabled ATM
101 -
102 -RDEPEND=">=dev-lisp/asdf-2.33-r3
103 - virtual/libiconv
104 - >=dev-libs/libsigsegv-2.4
105 - >=dev-libs/ffcall-1.10
106 - dbus? ( sys-apps/dbus )
107 - fastcgi? ( dev-libs/fcgi )
108 - gdbm? ( sys-libs/gdbm )
109 - gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 )
110 - pari? ( >=sci-mathematics/pari-2.3.0 )
111 - postgres? ( >=dev-db/postgresql-base-8.0 )
112 - readline? ( >=sys-libs/readline-5.0 )
113 - pcre? ( dev-libs/libpcre )
114 - svm? ( sci-libs/libsvm )
115 - zlib? ( sys-libs/zlib )
116 - X? ( x11-libs/libXpm )
117 - hyperspec? ( dev-lisp/hyperspec )
118 - berkdb? ( sys-libs/db:4.8 )"
119 -# jit? ( >=dev-libs/lightning-1.2 )
120 -
121 -DEPEND="${RDEPEND}
122 - X? ( x11-misc/imake x11-proto/xextproto )"
123 -
124 -enable_modules() {
125 - [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
126 - for m in "$@" ; do
127 - einfo "enabling module $m"
128 - myconf+=" --with-module=${m}"
129 - done
130 -}
131 -
132 -BUILDDIR="builddir"
133 -
134 -# modules not enabled:
135 -# * berkdb: must figure out a way to make the configure script pick up the
136 -# currect version of the library and headers
137 -# * dirkey: fails to compile, requiring windows.h, possibly wrong #ifdefs
138 -# * matlab, netica: not in portage
139 -# * oracle: can't install oracle-instantclient
140 -
141 -src_prepare() {
142 - # More than -O1 breaks alpha/ia64
143 - if use alpha || use ia64; then
144 - sed -i -e 's/-O2//g' src/makemake.in || die
145 - fi
146 - epatch "${FILESDIR}/${P}-bits_ipctypes_to_sys_ipc.patch"
147 -}
148 -
149 -src_configure() {
150 - # We need this to build on alpha/ia64
151 - if use alpha || use ia64; then
152 - replace-flags -O? -O1
153 - append-flags '-D NO_MULTIMAP_SHM -D NO_MULTIMAP_FILE -D NO_SINGLEMAP -D NO_TRIVIALMAP'
154 - fi
155 -
156 - # QA issue with lisp.run
157 - append-flags -Wa,--noexecstack
158 -
159 - # built-in features
160 - local myconf="--with-ffcall --without-dynamic-modules"
161 -# There's a problem with jit_allocai function
162 -# if use jit; then
163 -# myconf+=" --with-jitc=lightning"
164 -# fi
165 - if use threads; then
166 - myconf+=" --with-threads=POSIX_THREADS"
167 - fi
168 -
169 - # default modules
170 - enable_modules wildcard rawsock
171 - # optional modules
172 - use elibc_glibc && enable_modules bindings/glibc
173 - use X && enable_modules clx/new-clx
174 - if use postgres; then
175 - enable_modules postgresql
176 - append-cppflags -I$(pg_config --includedir)
177 - fi
178 - if use berkdb; then
179 - enable_modules berkeley-db
180 - append-cppflags -I/usr/include/db4.8
181 - fi
182 - use dbus && enable_modules dbus
183 - use fastcgi && enable_modules fastcgi
184 - use gdbm && enable_modules gdbm
185 - use gtk && enable_modules gtk2
186 - use pari && enable_modules pari
187 - use pcre && enable_modules pcre
188 - use svm && enable_modules libsvm
189 - use zlib && enable_modules zlib
190 -
191 - if use hyperspec; then
192 - CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/"
193 - else
194 - CLHSROOT="http://www.lispworks.com/reference/HyperSpec/"
195 - fi
196 -
197 - # configure chokes on --sysconfdir option
198 - local configure="./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
199 - $(use_with readline) $(use_with unicode) \
200 - ${myconf} --hyperspec=${CLHSROOT} ${BUILDDIR}"
201 - einfo "${configure}"
202 - ${configure} || die "./configure failed"
203 -
204 - IMPNOTES="file://${ROOT%/}/usr/share/doc/${PN}-${PVR}/html/impnotes.html"
205 - sed -i "s,http://clisp.cons.org/impnotes/,${IMPNOTES},g" \
206 - "${BUILDDIR}"/config.lisp || die "Cannot fix link to implementation notes"
207 -}
208 -
209 -src_compile() {
210 - export VARTEXFONTS="${T}"/fonts
211 - cd "${BUILDDIR}"
212 - # parallel build fails
213 - emake -j1 || die "emake failed"
214 -}
215 -
216 -src_install() {
217 - pushd "${BUILDDIR}"
218 - make DESTDIR="${D}" prefix=/usr install-bin || die "Installation failed"
219 - doman clisp.1 || die
220 - dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE || die
221 - # stripping them removes common symbols (defined but uninitialised variables)
222 - # which are then needed to build modules...
223 - export STRIP_MASK="*/usr/$(get_libdir)/clisp-${PV}/*/*"
224 - popd
225 - dohtml doc/impnotes.{css,html} doc/regexp.html doc/clisp.png || die
226 - dodoc doc/{CLOS-guide,LISP-tutorial}.txt || die
227 -}