Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 208522 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-lisp/cmucl/cmucl-19d_p2.ebuild (-2 / +30 lines)
Lines 15-24 Link Here
15
LICENSE="public-domain"
15
LICENSE="public-domain"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~x86"
17
KEYWORDS="~x86"
18
IUSE=""
18
IUSE="source"
19
19
20
DEPEND="virtual/motif
20
DEPEND="virtual/motif
21
	sys-devel/bc"
21
		sys-devel/bc
22
		dev-lisp/gentoo-init"
22
23
23
PROVIDE="virtual/commonlisp"
24
PROVIDE="virtual/commonlisp"
24
25
Lines 48-53 Link Here
48
	done
49
	done
49
	mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF}
50
	mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF}
50
	mv "${D}"/usr/man "${D}"/usr/share/
51
	mv "${D}"/usr/man "${D}"/usr/share/
52
53
	# Install site config file
54
	sed "s,@PF@,${PF},g ; s,@VERSION@,$(date +%F),g" \
55
		< "${FILESDIR}"/site-init.lisp.in \
56
		> "${D}"/usr/$(get_libdir)/cmucl/site-init.lisp
57
	rm -f "${D}"/etc/lisp-config.lisp
58
	dodir /etc/common-lisp/cmucl
59
	dosym /etc/common-lisp/cmucl/site-init.lisp /etc/lisp-config.lisp
60
	cat > "${D}"/etc/common-lisp/cmucl/site-init.lisp <<EOF
61
(in-package :common-lisp-user)
62
63
(if (probe-file "/etc/gentoo-init.lisp")
64
	(load "/etc/gentoo-init.lisp")
65
  (format t "~%;;; Warning: There is no /etc/gentoo-init.lisp file (which should be provided by dev-lisp/gentoo-init"))
66
EOF
67
68
	# Install sources
69
	if use source; then
70
		local basedir=/usr/share/common-lisp/source/cmucl
71
		cd src
72
		for f in $(find . -name \*.lisp -and -type f); do
73
			local dir=${basedir}/$(dirname ${f})
74
			dodir ${dir} ; insinto ${dir}
75
			doins ${f}
76
		done
77
	fi
78
51
	impl-save-timestamp-hack cmucl || die
79
	impl-save-timestamp-hack cmucl || die
52
}
80
}
53
81

Return to bug 208522