Gentoo Archives: gentoo-commits

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