Diff org-mode-9.4.6 with a org-mode-9.5.5

/usr/portage/app-emacs/org-mode/org-mode-9.5.5.ebuild 2023-10-09 14:52:28.704368330 +0300
5 5

  
6 6
inherit elisp readme.gentoo-r1
7 7

  
8
MY_P="${PN}-release_${PV}"
8 9
DESCRIPTION="An Emacs mode for notes and project planning"
9 10
HOMEPAGE="https://www.orgmode.org/"
10
SRC_URI="https://orgmode.org/org-${PV}.tar.gz"
11
SRC_URI="https://git.savannah.gnu.org/cgit/emacs/${PN}.git/snapshot/${MY_P}.tar.gz"
12
S="${WORKDIR}"/${MY_P}
11 13

  
12
LICENSE="GPL-3+ FDL-1.3+ contrib? ( GPL-2+ MIT ) odt-schema? ( OASIS-Open )"
14
LICENSE="GPL-3+ FDL-1.3+ CC-BY-SA-3.0 odt-schema? ( OASIS-Open )"
13 15
SLOT="0"
14 16
KEYWORDS="amd64 ppc x86"
15
IUSE="contrib doc odt-schema"
17
IUSE="doc odt-schema"
16 18
RESTRICT="test"
17 19

  
18 20
BDEPEND="doc? ( virtual/texi2dvi )"
19 21

  
20
S="${WORKDIR}/org-${PV}"
21 22
SITEFILE="50${PN}-gentoo.el"
22 23

  
23 24
src_compile() {
24
	emake datadir="${EPREFIX}${SITEETC}/${PN}"
25
	emake \
26
		ORGVERSION=${PV} \
27
		datadir="${EPREFIX}${SITEETC}/${PN}"
25 28
	use doc && emake pdf card
26 29
}
27 30

  
28 31
src_install() {
29 32
	emake \
33
		ORGVERSION=${PV} \
30 34
		DESTDIR="${D}" \
31
		ETCDIRS="styles $(use odt-schema && echo schema)" \
35
		ETCDIRS="styles csl $(use odt-schema && echo schema)" \
32 36
		lispdir="${EPREFIX}${SITELISP}/${PN}" \
33 37
		datadir="${EPREFIX}${SITEETC}/${PN}" \
34 38
		infodir="${EPREFIX}/usr/share/info" \
35 39
		install
36 40

  
37
	cp "${FILESDIR}/${SITEFILE}" "${T}/${SITEFILE}" || die
38

  
39
	if use contrib; then
40
		elisp-install ${PN}/contrib contrib/lisp/{org,ob,ox}*.el
41
		( docinto contrib; dodoc -r contrib/README contrib/scripts )
42
		find "${ED}/usr/share/doc/${PF}/contrib" -type f -name '.*' \
43
			-exec rm -f '{}' '+'
44
		# add the contrib subdirectory to load-path
45
		sed -i -e 's:\(.*@SITELISP@\)\(.*\):&\n\1/contrib\2:' \
46
			"${T}/${SITEFILE}" || die
47
	fi
48

  
49
	elisp-site-file-install "${T}/${SITEFILE}"
50
	dodoc README etc/ORG-NEWS
41
	elisp-site-file-install "${FILESDIR}/${SITEFILE}"
42
	dodoc README CONTRIBUTE etc/ORG-NEWS
51 43
	use doc && dodoc doc/org.pdf doc/orgcard.pdf doc/orgguide.pdf
52 44

  
53
	DOC_CONTENTS="Org mode has a large variety of run-time dependencies,
45
	local DOC_CONTENTS="Org mode has a large variety of run-time dependencies,
54 46
		so you may have to install one or more additional packages.
55 47
		A non-exhaustive list of these dependencies may be found at
56 48
		<http://orgmode.org/worg/org-dependencies.html>."
Thank you!