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/picolisp/
Date: Mon, 29 Jan 2018 22:22:01
Message-Id: 1517264517.0ac7d79be6c3bf6beaffb94ed280939c9469b309.nimiux@gentoo
1 commit: 0ac7d79be6c3bf6beaffb94ed280939c9469b309
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 29 22:21:57 2018 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 29 22:21:57 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=0ac7d79b
7
8 dev-lisp/picolisp: Bumps version to 17.12
9
10 dev-lisp/picolisp/picolisp-16.6.ebuild | 120 ---------------------
11 ...{picolisp-17.6.ebuild => picolisp-17.12.ebuild} | 8 +-
12 2 files changed, 4 insertions(+), 124 deletions(-)
13
14 diff --git a/dev-lisp/picolisp/picolisp-16.6.ebuild b/dev-lisp/picolisp/picolisp-16.6.ebuild
15 deleted file mode 100644
16 index 1564f82d..00000000
17 --- a/dev-lisp/picolisp/picolisp-16.6.ebuild
18 +++ /dev/null
19 @@ -1,120 +0,0 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 -# Distributed under the terms of the GNU General Public License v2
22 -
23 -EAPI=5
24 -
25 -inherit eutils bash-completion-r1 toolchain-funcs
26 -
27 -URI_FILENAME="picoLisp"
28 -URI_DOMAIN="http://software-lab.de/"
29 -URI_PREFIX="${URI_DOMAIN}${URI_FILENAME}"
30 -URI_SUFFIX=".tgz"
31 -
32 -if [[ ${PV} != 9999 ]] ; then
33 - SRC_URI="${URI_PREFIX}-${PV}${URI_SUFFIX}"
34 - KEYWORDS="~amd64 ~x86"
35 -fi
36 -
37 -DESCRIPTION="A fast and lightweight Lisp interpreter"
38 -HOMEPAGE="http://picolisp.com/"
39 -
40 -LICENSE="MIT"
41 -SLOT="0"
42 -IUSE="bash-completion doc examples src"
43 -
44 -QA_PREBUILT="*"
45 -
46 -S="${WORKDIR}/picoLisp"
47 -
48 -livefetch() {
49 - FILENAME="${1##*/}"
50 - einfo "Fetching ${FILENAME}"
51 - wget "${1}" || die
52 - tar xf "${FILENAME}" || die
53 -}
54 -
55 -pre_src_unpack() {
56 - [[ ${PV} == 9999 ]] && livefetch "${URI_PREFIX}${URI_SUFFIX}"
57 - use amd64 && livefetch "${URI_DOMAIN}x86-64.linux${URI_SUFFIX}"
58 -}
59 -
60 -src_prepare() {
61 - find . -type f -executable -exec sed -i "s#!bin/picolisp lib.l#!/usr/bin/picolisp /usr/lib/picolisp/lib.l#" {} \;
62 - sed -i "s# test -x /usr/bin/picolisp# false#" src64/mkAsm || die
63 - epatch_user
64 -}
65 -
66 -src_compile() {
67 - if use amd64; then
68 - cd src64 || die
69 - mv ../../src64/*.s . || die
70 - einfo "Phase 1: building ${PN} with prebuild *.s files"
71 - emake CC="$(tc-getCC)" AS="$(tc-getAS)"
72 - einfo 'Phase 2: building ${PN} using ${PN}'
73 - emake clean
74 - emake CC="$(tc-getCC)" AS="$(tc-getAS)"
75 - else
76 - cd src || die
77 - emake CC="$(tc-getCC)" AS="$(tc-getAS)"
78 - fi
79 -}
80 -
81 -src_install() {
82 - DLIB=/usr/$(get_libdir)/${PN}
83 -
84 - #FIXME add vimsyntax support
85 - rm -rf lib/vim
86 -
87 - for FILE in picolisp pil; do
88 - dobin "bin/${FILE}"
89 - rm "bin/${FILE}" || die
90 - done
91 - exeinto $DLIB/bin
92 - doexe bin/*
93 -
94 - insinto $DLIB
95 - use bash-completion && newbashcomp lib/bash_completion "${PN}"
96 - rm -rf lib/bash_completion lib/el
97 - doins -r *.l *.css lib loc
98 - if use amd64 && use src; then
99 - DSRC=${DLIB}/src64
100 - insinto $DSRC
101 - doins -r src64/*.l src64/lib
102 - insinto $DSRC/arch
103 - doins -r src64/arch/x86-64.l
104 - insinto $DSRC/sys
105 - doins -r src64/sys/x86-64.linux.*
106 - fi
107 - doman man/*/*
108 - DSHARE=/usr/share/${PN}
109 - insinto $DSHARE
110 - doins -r img
111 - dosym $DSHARE/img $DLIB/img
112 - dodoc CHANGES CREDITS INSTALL README
113 - if use doc; then
114 - DDOC=/usr/share/doc/${PF}
115 - insinto $DDOC
116 - doins doc/quine doc/db doc/travel doc/utf8 doc/vim-tsm
117 - dohtml doc/*
118 - insinto $DDOC/html
119 - doins doc/family.l doc/shape.l doc/fun.l doc/hello.l
120 - if use amd64; then
121 - doins doc/family64.tgz
122 - insinto $DDOC
123 - doins -r doc64
124 - else
125 - doins doc/family.tgz
126 - insinto $DDOC
127 - doins doc/structures
128 - fi
129 - dosym $DDOC/html $DLIB/doc
130 - fi
131 - if use examples; then
132 - insinto $DSHARE
133 - doins -r app games misc opt
134 - exeinto $DSHARE/misc
135 - doexe misc/bigtest misc/calc misc/chat misc/mailing
136 - exeinto $DSHARE/games
137 - doexe games/xchess
138 - fi
139 -}
140
141 diff --git a/dev-lisp/picolisp/picolisp-17.6.ebuild b/dev-lisp/picolisp/picolisp-17.12.ebuild
142 similarity index 97%
143 rename from dev-lisp/picolisp/picolisp-17.6.ebuild
144 rename to dev-lisp/picolisp/picolisp-17.12.ebuild
145 index 5c52085b..f7cfbace 100644
146 --- a/dev-lisp/picolisp/picolisp-17.6.ebuild
147 +++ b/dev-lisp/picolisp/picolisp-17.12.ebuild
148 @@ -1,7 +1,7 @@
149 -# Copyright 1999-2017 Gentoo Foundation
150 +# Copyright 1999-2018 Gentoo Foundation
151 # Distributed under the terms of the GNU General Public License v2
152
153 -EAPI=5
154 +EAPI=6
155
156 inherit eutils bash-completion-r1 toolchain-funcs
157
158 @@ -41,7 +41,7 @@ pre_src_unpack() {
159 src_prepare() {
160 find . -type f -executable -exec sed -i "s#!bin/picolisp lib.l#!/usr/bin/picolisp /usr/lib/picolisp/lib.l#" {} \;
161 sed -i "s# test -x /usr/bin/picolisp# false#" src64/mkAsm || die
162 - epatch_user
163 + eapply_user
164 }
165
166 src_compile() {
167 @@ -95,7 +95,7 @@ src_install() {
168 DDOC=/usr/share/doc/${PF}
169 insinto $DDOC
170 doins doc/quine doc/travel doc/vim-tsm
171 - dohtml doc/*
172 + dodoc -r doc/*
173 insinto $DDOC/html
174 doins doc/family.l doc/shape.l doc/fun.l doc/hello.l
175 if use amd64; then