1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
5 |
|
PYTHON_COMPAT=( python3_{9..10} )
|
|
4 |
EAPI=8
|
|
5 |
|
|
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
6 |
7 |
|
7 |
8 |
inherit elisp-common autotools python-single-r1 toolchain-funcs xdg-utils
|
8 |
9 |
|
9 |
|
if [[ "${PV}" = "9999" ]]; then
|
|
10 |
if [[ ${PV} == *9999* ]]; then
|
10 |
11 |
inherit git-r3
|
11 |
12 |
EGIT_REPO_URI="https://git.savannah.gnu.org/git/lilypond.git"
|
12 |
13 |
else
|
13 |
14 |
MAIN_VER=$(ver_cut 1-2)
|
14 |
15 |
SRC_URI="http://lilypond.org/download/sources/v${MAIN_VER}/${P}.tar.gz"
|
15 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~riscv ~x86"
|
|
16 |
KEYWORDS="amd64 ~arm arm64 ~hppa ~riscv x86"
|
16 |
17 |
fi
|
17 |
18 |
|
18 |
19 |
DESCRIPTION="GNU Music Typesetter"
|
... | ... | |
21 |
22 |
LICENSE="GPL-3 FDL-1.3"
|
22 |
23 |
SLOT="0"
|
23 |
24 |
LANG_USE="l10n_ca l10n_cs l10n_de l10n_en l10n_fr l10n_hu l10n_it l10n_ja l10n_nl l10n_pt l10n_zh"
|
24 |
|
IUSE="debug doc emacs profile vim-syntax ${LANG_USE}"
|
|
25 |
IUSE="debug doc emacs profile ${LANG_USE}"
|
25 |
26 |
unset LANG_USE
|
26 |
27 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
27 |
28 |
|
... | ... | |
62 |
63 |
"${FILESDIR}"/${PN}-2.22.1-free_font.patch
|
63 |
64 |
)
|
64 |
65 |
|
65 |
|
DOCS=( DEDICATION HACKING README.md ROADMAP )
|
|
66 |
DOCS=( DEDICATION README.md ROADMAP )
|
66 |
67 |
|
67 |
68 |
src_prepare() {
|
68 |
69 |
default
|
69 |
70 |
|
70 |
|
if ! use vim-syntax ; then
|
71 |
|
sed -i 's/vim//' GNUmakefile.in || die
|
72 |
|
fi
|
73 |
|
|
74 |
71 |
# respect CFLAGS
|
75 |
72 |
sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die
|
76 |
73 |
|
77 |
|
# remove bundled texinfo file (fixes bug #448560)
|
78 |
|
rm tex/texinfo.tex || die
|
79 |
|
|
80 |
74 |
eautoreconf
|
81 |
75 |
|
82 |
76 |
xdg_environment_reset #586592
|
... | ... | |
87 |
81 |
sed -i "s/AR=ar/AR=$(tc-getAR)/g" flower/GNUmakefile || die "Failed to fix ar command"
|
88 |
82 |
|
89 |
83 |
local myeconfargs=(
|
90 |
|
--with-texgyre-dir=/usr/share/fonts/tex-gyre
|
91 |
84 |
--disable-optimising
|
92 |
85 |
--disable-pipe
|
93 |
86 |
$(use_enable debug debugging)
|