Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lilypond/
Date: Mon, 28 Oct 2019 10:54:17
Message-Id: 1572260041.386cee9b23c47fc5e9c558e51ad91929eed05096.fordfrog@gentoo
1 commit: 386cee9b23c47fc5e9c558e51ad91929eed05096
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 28 10:53:29 2019 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 28 10:54:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=386cee9b
7
8 media-sound/lilypond-2.19.83: bump
9
10 Closes: https://bugs.gentoo.org/673660
11 Package-Manager: Portage-2.3.78, Repoman-2.3.17
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 media-sound/lilypond/Manifest | 1 +
15 media-sound/lilypond/lilypond-2.19.83.ebuild | 148 +++++++++++++++++++++++++++
16 2 files changed, 149 insertions(+)
17
18 diff --git a/media-sound/lilypond/Manifest b/media-sound/lilypond/Manifest
19 index 2cb6b35b56f..1133e497bbc 100644
20 --- a/media-sound/lilypond/Manifest
21 +++ b/media-sound/lilypond/Manifest
22 @@ -1,2 +1,3 @@
23 DIST lilypond-2.18.2.tar.gz 16027977 BLAKE2B b19b608891e22403efe8e18dd9e86c8d0c85ba516f34242f2a8bcb53c8849a3aa0fe83726036d168f26ee1a7d868a24cc54bd86016b016d634218956e8faf0d4 SHA512 0692f6eb41733076ba7f610cd1e65762f4dfd67307e2ab9e222b140d58ae3a1bb1c6b3be3bcff778d57f161868cf6d57e99bf43bf20f2663d042a07493942ec6
24 DIST lilypond-2.19.80.tar.gz 17244725 BLAKE2B f0883d59b1a14634d5d32e6a6f02c0a224643d6d28a3da623d5163396b74ebd15c3307c33c4d96778254fb6486a74c3324d26e3015d51fa163e3765f2c3767aa SHA512 13a7f258bac8ff77ad6d3879f128e86dd5bf45c7780c9738e6976915574d2dfc5404e6f49ca61dcaf8bb15eb266e65fedec4131a50ded7ab305d1856bbd7a3d6
25 +DIST lilypond-2.19.83.tar.gz 17996428 BLAKE2B d6048bfa0dbfbb08c25c5c11287f971936e82d30d88d80deb7fca8fe8d7c8d3d517c37a24b1d52e592c15e166e04eb79d99b4c64ddd4b7f392ec69bff0259d89 SHA512 c8a6acbff055196aba015ecd4786bed25934f04f3718ae9dd9a0dc49d2954f348806874cfe350903cd8bb2b25a0d05700ef5947cac180b20a8a355033ff98604
26
27 diff --git a/media-sound/lilypond/lilypond-2.19.83.ebuild b/media-sound/lilypond/lilypond-2.19.83.ebuild
28 new file mode 100644
29 index 00000000000..b86d49030a1
30 --- /dev/null
31 +++ b/media-sound/lilypond/lilypond-2.19.83.ebuild
32 @@ -0,0 +1,148 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +[[ "${PV}" = "9999" ]] && inherit git-r3
40 +inherit elisp-common autotools python-single-r1 xdg-utils
41 +
42 +if [[ "${PV}" = "9999" ]]; then
43 + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git"
44 +else
45 + MAIN_VER=$(ver_cut 1-2)
46 + SRC_URI="http://lilypond.org/download/sources/v${MAIN_VER}/${P}.tar.gz"
47 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
48 +fi
49 +
50 +DESCRIPTION="GNU Music Typesetter"
51 +HOMEPAGE="http://lilypond.org/"
52 +
53 +LICENSE="GPL-3 FDL-1.3"
54 +SLOT="0"
55 +IUSE="debug emacs guile2 profile vim-syntax"
56 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
57 +
58 +RDEPEND=">=app-text/ghostscript-gpl-8.15
59 + >=dev-scheme/guile-1.8.2:12=[deprecated,regex]
60 + media-fonts/tex-gyre
61 + media-libs/fontconfig
62 + media-libs/freetype:2
63 + >=x11-libs/pango-1.12.3
64 + emacs? ( virtual/emacs )
65 + guile2? ( >=dev-scheme/guile-2:12 )
66 + !guile2? (
67 + >=dev-scheme/guile-1.8.2:12=[deprecated,regex]
68 + <dev-scheme/guile-2.0:12
69 + )
70 + ${PYTHON_DEPS}"
71 +DEPEND="${RDEPEND}
72 + app-text/t1utils
73 + dev-lang/perl
74 + dev-libs/kpathsea
75 + >=dev-texlive/texlive-metapost-2013
76 + || (
77 + >=app-text/texlive-core-2013
78 + >=dev-tex/metapost-1.803
79 + )
80 + virtual/pkgconfig
81 + media-gfx/fontforge[png]
82 + >=sys-apps/texinfo-4.11
83 + >=sys-devel/bison-2.0
84 + sys-devel/flex
85 + sys-devel/gettext
86 + sys-devel/make"
87 +
88 +# Correct output data for tests isn't bundled with releases
89 +RESTRICT="test"
90 +
91 +PATCHES=(
92 + "${FILESDIR}"/${PN}-2.19.80-remove-ly-protect.patch
93 + "${FILESDIR}"/${PN}-2.19.80-fontforge-version.patch
94 +)
95 +
96 +DOCS=( DEDICATION HACKING README.txt ROADMAP )
97 +
98 +pkg_setup() {
99 + # make sure >=metapost-1.803 is selected if it's installed, bug 498704
100 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then
101 + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then
102 + einfo "Updating metapost symlink"
103 + eselect mpost update || die
104 + fi
105 + fi
106 +
107 + python-single-r1_pkg_setup
108 +}
109 +
110 +src_prepare() {
111 + default
112 +
113 + if ! use vim-syntax ; then
114 + sed -i 's/vim//' GNUmakefile.in || die
115 + fi
116 +
117 + # respect CFLAGS
118 + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die
119 +
120 + # respect AR
121 + sed -i "s:^AR=ar:AR=$(tc-getAR):" stepmake/stepmake/library-vars.make || die
122 +
123 + # remove bundled texinfo file (fixes bug #448560)
124 + rm tex/texinfo.tex || die
125 +
126 + eautoreconf
127 +
128 + xdg_environment_reset #586592
129 +}
130 +
131 +src_configure() {
132 + # documentation generation currently not supported since it requires a newer
133 + # version of texi2html than is currently in the tree
134 +
135 + local myeconfargs=(
136 + --with-texgyre-dir=/usr/share/fonts/tex-gyre
137 + --disable-documentation
138 + --disable-optimising
139 + --disable-pipe
140 + $(use_enable debug debugging)
141 + $(use_enable guile2)
142 + $(use_enable profile profiling)
143 + )
144 +
145 + econf "${myeconfargs[@]}"
146 +}
147 +
148 +src_compile() {
149 + default
150 +
151 + if use emacs ; then
152 + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \
153 + || die "elisp-compile failed"
154 + fi
155 +}
156 +
157 +src_install () {
158 + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install
159 +
160 + # remove elisp files since they are in the wrong directory
161 + rm -r "${ED}"/usr/share/emacs || die
162 +
163 + if use emacs ; then
164 + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \
165 + || die "elisp-install failed"
166 + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
167 + fi
168 +
169 + python_fix_shebang "${ED}"
170 +
171 + einstalldocs
172 +}
173 +
174 +pkg_postinst() {
175 + use emacs && elisp-site-regen
176 +}
177 +
178 +pkg_postrm() {
179 + use emacs && elisp-site-regen
180 +}