diff options
author | 2023-07-27 09:11:40 +0200 | |
---|---|---|
committer | 2023-07-27 09:36:44 +0200 | |
commit | e7c7e30c410940a06bfdcbed35bf65c9c0239b72 (patch) | |
tree | 0c899bc3448d7a15205b68cdb7579261ad6ed849 /dev-lisp/asdf/asdf-3.3.5-r1.ebuild | |
parent | net-analyzer/tcpdump: build with LFS (diff) | |
download | gentoo-e7c7e30c410940a06bfdcbed35bf65c9c0239b72.tar.gz gentoo-e7c7e30c410940a06bfdcbed35bf65c9c0239b72.tar.bz2 gentoo-e7c7e30c410940a06bfdcbed35bf65c9c0239b72.zip |
dev-lisp/asdf: Revert texinfo dependency and other small fixes
- virtual/texi2dvi was correct; it is needed for texi2pdf.
- Use constant install location for the HTML documentation.
- Drop old blockers, these packages have been removed in 2012.
- Move test dependency to BDEPEND.
- Update HOMEPAGE and SRC_URI.
Bug: https://bugs.gentoo.org/883439
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-lisp/asdf/asdf-3.3.5-r1.ebuild')
-rw-r--r-- | dev-lisp/asdf/asdf-3.3.5-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-lisp/asdf/asdf-3.3.5-r1.ebuild b/dev-lisp/asdf/asdf-3.3.5-r1.ebuild new file mode 100644 index 000000000000..5cf771e6dcca --- /dev/null +++ b/dev-lisp/asdf/asdf-3.3.5-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit prefix common-lisp-3 + +DESCRIPTION="ASDF is Another System Definition Facility for Common Lisp" +HOMEPAGE="https://asdf.common-lisp.dev/" +SRC_URI="https://asdf.common-lisp.dev/archives/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PVR}" +KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc test" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( virtual/texi2dvi ) + test? ( virtual/commonlisp )" +PDEPEND="virtual/commonlisp + ~dev-lisp/uiop-${PV}" + +PATCHES=( + # bug 841335, drop on next version bump + "${FILESDIR}"/${PN}-3.3.5-test-utilities.patch +) + +install_docs() { + ( + cd doc || die + dodoc *.{html,css,ico,png} ${PN}.pdf + doinfo ${PN}.info + + # texinfo-7 renamed the dir from asdf to asdf_html #883439 + if [[ -d asdf_html ]]; then + dodoc -r asdf_html + else + docinto asdf_html + dodoc -r asdf/. + fi + ) +} + +src_compile() { + emake + + use doc && emake -C doc +} + +src_test() { + common-lisp-export-impl-args "$(common-lisp-find-lisp-impl)" + + rm test/test-program.script || die + + # sbcl in common-lisp.eclass has --non-interactive in the binary name + # which seems to break this? + test/run-tests.sh ${CL_BINARY/--non-interactive/} || die +} + +src_install() { + insinto "${CLSOURCEROOT}/${PN}" + doins -r build version.lisp-expr + + dodoc README.md TODO + use doc && install_docs + + insinto /etc/common-lisp + cd "${T}" || die + cp "${FILESDIR}"/gentoo-init.lisp "${FILESDIR}"/source-registry.conf . || die + eprefixify gentoo-init.lisp source-registry.conf + doins gentoo-init.lisp source-registry.conf +} |