Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/nxml-svg-schemas/
Date: Sun, 18 Aug 2019 06:17:58
Message-Id: 1566109036.982cb91a69441c74f7f7da02de9738d83bb5d44a.ulm@gentoo
1 commit: 982cb91a69441c74f7f7da02de9738d83bb5d44a
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 18 06:16:09 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 06:17:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=982cb91a
7
8 app-emacs/nxml-svg-schemas: Bump EAPI to 7.
9
10 Add missing dependency on unzip.
11
12 Package-Manager: Portage-2.3.71, Repoman-2.3.17
13 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
14
15 .../nxml-svg-schemas-1.1.20081123-r1.ebuild | 43 ++++++++++++++++++++++
16 1 file changed, 43 insertions(+)
17
18 diff --git a/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123-r1.ebuild b/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123-r1.ebuild
19 new file mode 100644
20 index 00000000000..30fe6dd0034
21 --- /dev/null
22 +++ b/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123-r1.ebuild
23 @@ -0,0 +1,43 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit elisp
30 +
31 +DESCRIPTION="Extension for nxml-mode with SVG 1.1 schemas"
32 +HOMEPAGE="http://www.w3.org/TR/SVG11/"
33 +# original SRC_URI is http://www.w3.org/Graphics/SVG/1.1/rng/rng.zip
34 +# but since it's unversioned, I versioned it and got it locally.
35 +SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/w3c-svg-rng-${PV}.zip"
36 +
37 +LICENSE="HPND"
38 +# In a future we might have 1.2 schemas too, but for now we can only
39 +# install this one anyway because the schemas.xml syntax is not
40 +# sophisticated enough.
41 +SLOT="1.1"
42 +KEYWORDS="~amd64 ~x86"
43 +
44 +# Yes this requires Java, but I'd rather not repackage this, if you
45 +# know something better in C, I'll be glad to use that.
46 +BDEPEND="app-arch/unzip
47 + app-text/trang"
48 +
49 +S="${WORKDIR}"
50 +SITEFILE="60${PN}-gentoo.el"
51 +
52 +src_prepare() {
53 + elisp_src_prepare
54 + # we don't need the doctype for our work
55 + sed -i -e '/DOCTYPE grammar/d' *.rng || die "sed failed"
56 +}
57 +
58 +src_compile() {
59 + emake -f "${FILESDIR}/Makefile-trang"
60 +}
61 +
62 +src_install() {
63 + insinto "${SITEETC}/${PN}"
64 + doins "${FILESDIR}/schemas.xml" *.rnc
65 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
66 +}