|
Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2021 Gentoo Authors |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
| 4 |
EAPI=6 |
| 5 |
|
| 6 |
inherit prefix common-lisp-3 |
| 7 |
|
| 8 |
DESCRIPTION="ASDF is Another System Definition Facility for Common Lisp" |
| 9 |
HOMEPAGE="http://common-lisp.net/project/asdf/" |
| 10 |
SRC_URI="http://common-lisp.net/project/${PN}/archives/${P}.tar.gz" |
| 11 |
|
| 12 |
LICENSE="MIT" |
| 13 |
SLOT="0/${PVR}" |
| 14 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" |
| 15 |
IUSE="doc test" |
| 16 |
RESTRICT="!test? ( test )" |
| 17 |
|
| 18 |
DEPEND="!dev-lisp/cl-${PN} |
| 19 |
!<dev-lisp/asdf-2.33-r3 |
| 20 |
doc? ( virtual/texi2dvi ) |
| 21 |
test? ( virtual/commonlisp )" |
| 22 |
PDEPEND="virtual/commonlisp |
| 23 |
~dev-lisp/uiop-${PV}" |
| 24 |
|
| 25 |
install_docs() { |
| 26 |
(cd doc ; dodoc *.{html,css,ico,png} "${PN}.pdf" ; dodoc -r asdf ) |
| 27 |
if has_version ">=dev-lisp/sbcl-1.4.0" ; then |
| 28 |
(cd doc ; doinfo "${PN}.info" ) |
| 29 |
fi |
| 30 |
} |
| 31 |
|
| 32 |
src_compile() { |
| 33 |
emake |
| 34 |
use doc && emake -C doc |
| 35 |
} |
| 36 |
|
| 37 |
src_test() { |
| 38 |
common-lisp-export-impl-args "$(common-lisp-find-lisp-impl)" |
| 39 |
test/run-tests.sh ${CL_BINARY} |
| 40 |
} |
| 41 |
|
| 42 |
src_install() { |
| 43 |
insinto "${CLSOURCEROOT}/${PN}" |
| 44 |
doins -r build version.lisp-expr |
| 45 |
dodoc README.md TODO |
| 46 |
use doc && install_docs |
| 47 |
insinto /etc/common-lisp |
| 48 |
cd "${T}" || die |
| 49 |
cp "${FILESDIR}/gentoo-init.lisp" "${FILESDIR}/source-registry.conf" . || die |
| 50 |
eprefixify gentoo-init.lisp source-registry.conf |
| 51 |
doins gentoo-init.lisp source-registry.conf |
| 52 |
} |