Diff lfe-2.0.1 with a lfe-2.1.2

/usr/portage/dev-lang/lfe/lfe-2.1.2.ebuild 2023-10-09 14:52:29.464368349 +0300
5 5

  
6 6
inherit elisp-common toolchain-funcs
7 7

  
8
DESCRIPTION="Lisp-flavoured Erlang"
9
HOMEPAGE="http://lfe.github.io/"
8
DESCRIPTION="Lisp-flavoured Erlang, a lisp syntax front-end to the Erlang compiler"
9
HOMEPAGE="http://lfe.github.io/
10
	https://github.com/rvirding/lfe/"
10 11

  
11
if [[ "${PV}" == *9999* ]]; then
12
if [[ ${PV} == *9999* ]] ; then
12 13
	inherit git-r3
13 14
	EGIT_BRANCH="develop"
14 15
	EGIT_REPO_URI="https://github.com/rvirding/${PN}.git"
15 16
else
16
	SRC_URI="https://github.com/rvirding/${PN}/archive/refs/tags/${PV}.tar.gz
17
	SRC_URI="https://github.com/rvirding/${PN}/archive/${PV}.tar.gz
17 18
		-> ${P}.tar.gz"
18 19
	KEYWORDS="~amd64 ~x86"
19 20
fi
20 21

  
21
RESTRICT="mirror test"
22 22
LICENSE="Apache-2.0"
23 23
SLOT="0"
24
IUSE="doc emacs"
24
IUSE="emacs"
25 25

  
26 26
RDEPEND="
27 27
	dev-lang/erlang
28
	emacs? ( >=app-editors/emacs-23.1:* )
28 29
"
29
DEPEND="
30
BDEPEND="
30 31
	${RDEPEND}
31
	doc? ( virtual/pandoc )
32 32
"
33 33

  
34 34
SITEFILE="70${PN}-gentoo.el"
35 35

  
36
src_prepare() {
37
	default
38

  
39
	sed -i "s|cc |$(tc-getCC) ${CFLAGS} |g" ./Makefile \
40
		|| die "Failed to fix the makefile"
41
}
42

  
43 36
src_compile() {
44
	emake compile
37
	emake HOSTCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" compile
45 38

  
46
	use doc && emake docs
47 39
	use emacs && emake emacs
48 40
}
49 41

  
50 42
src_install() {
51
	dodir "/usr/$(get_libdir)/erlang/lib/lfe/ebin/"
52
	cp -R ./ebin "${D}/usr/$(get_libdir)/erlang/lib/lfe/"
53
	dobin ./bin/*
54

  
55
	if use doc; then
56
		dodoc ./doc/*.txt
57
		doman ./doc/man/*
58
	fi
43
	insinto /usr/$(get_libdir)/erlang/lib/lfe/
44
	doins -r ebin
45
	exeinto /usr/bin
46
	doexe ./bin/*
47

  
48
	dodoc doc/*.txt
49
	doman doc/man/*
59 50

  
60
	if use emacs; then
61
		elisp-install lfe emacs/* \
62
			|| die "elisp-install failed"
51
	if use emacs ; then
52
		elisp-install lfe emacs/*
63 53
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
64 54
	fi
65 55
}
Thank you!