1 |
commit: 501d09bb084c260740272eec3283fe1a5bbdb91a |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 22 21:29:22 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 22 21:29:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=501d09bb |
7 |
|
8 |
common-lisp-2.eclass: Remove obsolete eclass |
9 |
|
10 |
eclass/common-lisp-2.eclass | 138 -------------------------------------------- |
11 |
1 file changed, 138 deletions(-) |
12 |
|
13 |
diff --git a/eclass/common-lisp-2.eclass b/eclass/common-lisp-2.eclass |
14 |
deleted file mode 100644 |
15 |
index 7c2869a1..00000000 |
16 |
--- a/eclass/common-lisp-2.eclass |
17 |
+++ /dev/null |
18 |
@@ -1,138 +0,0 @@ |
19 |
-# Copyright 1999-2010 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
-# $Header: $ |
22 |
-# |
23 |
-# Maintained by the Gentoo Common Lisp project |
24 |
-# irc: #gentoo-lisp, herd: <common-lisp@g.o>, list: <gentoo-lisp@g.o> |
25 |
-# |
26 |
-# This eclass supports the installation of Common Lisp libraries |
27 |
-# |
28 |
-# Public functions: |
29 |
-# |
30 |
-# common-lisp-install path [<other_paths>...] |
31 |
-# recursively install sources |
32 |
-# |
33 |
-# common-lisp-symlink-asdf [<paths>...] |
34 |
-# create symlinks in $CLSYSTEMROOT to asdf files |
35 |
-# |
36 |
-# common-lisp-export-impl-args lisp-implementation |
37 |
-# export a few variables containing the switches necessary |
38 |
-# to make the CL implementation perform basic functions: |
39 |
-# * CL_NORC: don't load initfiles |
40 |
-# * CL_LOAD: load a certain file |
41 |
-# * CL_EVAL: eval a certain expression at startup |
42 |
-# |
43 |
- |
44 |
-inherit eutils |
45 |
- |
46 |
-# CL packages in the overlay don't have their tarballs on the mirrors |
47 |
-# so it's useless to mirror them |
48 |
-RESTRICT="mirror" |
49 |
- |
50 |
-CLSOURCEROOT="${ROOT%/}"/usr/share/common-lisp/source |
51 |
-CLSYSTEMROOT="${ROOT%/}"/usr/share/common-lisp/systems |
52 |
- |
53 |
-# Sources will be installed into ${CLSOURCEROOT}/${CLPACKAGE}/ |
54 |
-# Any asdf files will be symlinked in ${CLSYSTEMROOT}/${CLSYSTEM} as they may be |
55 |
-# in an arbitrarily deeply nested directory under ${CLSOURCEROOT}/${CLPACKAGE}/ |
56 |
- |
57 |
-# To override, set these after inheriting this eclass |
58 |
-CLPACKAGE="${PN}" |
59 |
-CLSYSTEMS="${PN}" |
60 |
- |
61 |
-RDEPEND="virtual/commonlisp" |
62 |
- |
63 |
-EXPORT_FUNCTIONS src_install |
64 |
- |
65 |
-absolute-path-p() { |
66 |
- [[ $# = 1 ]] || die "${FUNCNAME[0]} must receive one argument" |
67 |
- [[ ${1} = /* ]] |
68 |
-} |
69 |
- |
70 |
-common-lisp-install-source() { |
71 |
- [[ $# = 2 ]] || die "${FUNCNAME[0]} must receive exactly two arguments" |
72 |
- |
73 |
- local source="${1}" |
74 |
- local target="${CLSOURCEROOT}/${CLPACKAGE}/${2}" |
75 |
- insinto "${target}" |
76 |
- doins -r "${source}" || die "Failed to install ${source} into $(dirname "${target}")" |
77 |
-} |
78 |
- |
79 |
-common-lisp-install() { |
80 |
- [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument" |
81 |
- for path in "$@"; do |
82 |
- if absolute-path-p "${path}" ; then |
83 |
- die "Cannot install files with absolute path: ${path}" |
84 |
- fi |
85 |
- common-lisp-install-source "${path}" "$(dirname "${path}")" |
86 |
- done |
87 |
-} |
88 |
- |
89 |
-common-lisp-install-single-system() { |
90 |
- [[ $# != 1 ]] && die "${FUNCNAME[0]} must receive exactly one argument" |
91 |
- |
92 |
- local file="${CLSOURCEROOT%/}/${CLPACKAGE}/${1}.asd" |
93 |
- [[ -f "${D}"/${file} ]] || die "${D}/${file} does not exist" |
94 |
- dosym "${file}" "${CLSYSTEMROOT%/}/$(basename ${file})" |
95 |
-} |
96 |
- |
97 |
-# Symlink asdf files |
98 |
-# if no arguments received, default to the contents of ${CLSYSTEMS} |
99 |
-common-lisp-symlink-asdf() { |
100 |
- dodir "${CLSYSTEMROOT}" |
101 |
- |
102 |
- [[ $# = 0 ]] && set - ${CLSYSTEMS} |
103 |
- for package in "$@" ; do |
104 |
- common-lisp-install-single-system "${package}" |
105 |
- done |
106 |
-} |
107 |
- |
108 |
-common-lisp-system-symlink() { |
109 |
- die "common-lisp-system-symlink() has been renamed to common-lisp-symlink-asdf()" |
110 |
-} |
111 |
- |
112 |
-common-lisp-2_src_install() { |
113 |
- common-lisp-install *.{lisp,asd} |
114 |
- common-lisp-symlink-asdf |
115 |
- for i in README HEADER TODO CHANGELOG ChangeLog CHANGES BUGS CONTRIBUTORS *NEWS ; do |
116 |
- [[ -f ${i} ]] && dodoc ${i} |
117 |
- done |
118 |
-} |
119 |
- |
120 |
-common-lisp-export-impl-args() { |
121 |
- if [[ $# != 1 ]]; then |
122 |
- eerror "Usage: ${0} lisp-implementation" |
123 |
- die "${0}: wrong number of arguments: $#" |
124 |
- fi |
125 |
- case ${1} in |
126 |
- clisp) |
127 |
- CL_NORC="-norc" |
128 |
- CL_LOAD="-i" |
129 |
- CL_EVAL="-x" |
130 |
- ;; |
131 |
- clozure|ccl|openmcl) |
132 |
- CL_NORC="--no-init" |
133 |
- CL_LOAD="--load" |
134 |
- CL_EVAL="--eval" |
135 |
- ;; |
136 |
- cmucl) |
137 |
- CL_NORC="-nositeinit -noinit" |
138 |
- CL_LOAD="-load" |
139 |
- CL_EVAL="-eval" |
140 |
- ;; |
141 |
- ecl) |
142 |
- CL_NORC="-norc" |
143 |
- CL_LOAD="-load" |
144 |
- CL_EVAL="-eval" |
145 |
- ;; |
146 |
- sbcl) |
147 |
- CL_NORC="--sysinit /dev/null --userinit /dev/null" |
148 |
- CL_LOAD="--load" |
149 |
- CL_EVAL="--eval" |
150 |
- ;; |
151 |
- *) |
152 |
- die ${1} is not supported by ${0} |
153 |
- ;; |
154 |
- esac |
155 |
- export CL_NORC CL_LOAD CL_EVAL |
156 |
-} |