/[gentoo-x86]/media-sound/lilypond/lilypond-2.16.1.ebuild
Gentoo

Contents of /media-sound/lilypond/lilypond-2.16.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 12 04:57:14 2012 UTC (23 months, 1 week ago) by radhermit
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="5"
6 PYTHON_DEPEND="2"
7
8 inherit elisp-common python autotools eutils
9
10 DESCRIPTION="GNU Music Typesetter"
11 SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz"
12 HOMEPAGE="http://lilypond.org/"
13
14 SLOT="0"
15 LICENSE="GPL-3 FDL-1.3"
16 KEYWORDS="~amd64 ~hppa ~x86"
17 IUSE="debug emacs profile vim-syntax"
18
19 RDEPEND=">=app-text/ghostscript-gpl-8.15
20 >=dev-scheme/guile-1.8.2[deprecated,regex]
21 media-fonts/urw-fonts
22 media-libs/fontconfig
23 media-libs/freetype:2
24 >=x11-libs/pango-1.12.3
25 emacs? ( virtual/emacs )"
26 DEPEND="${RDEPEND}
27 app-text/t1utils
28 dev-lang/perl
29 dev-texlive/texlive-metapost
30 virtual/pkgconfig
31 media-gfx/fontforge
32 >=sys-apps/texinfo-4.11
33 >=sys-devel/bison-2.0
34 sys-devel/flex
35 sys-devel/gettext
36 sys-devel/make"
37
38 # Correct output data for tests isn't bundled with releases
39 RESTRICT="test"
40
41 pkg_setup() {
42 python_set_active_version 2
43 python_pkg_setup
44 }
45
46 src_prepare() {
47 epatch "${FILESDIR}"/${PN}-2.16.0-tex-docs.patch
48 if ! use vim-syntax ; then
49 sed -i -e "s/vim//" GNUmakefile.in || die
50 fi
51
52 sed -i -e "s/OPTIMIZE -g/OPTIMIZE/" aclocal.m4 || die
53
54 eautoreconf
55 }
56
57 src_configure() {
58 # documentation generation currently not supported since it requires a newer
59 # version of texi2html than is currently in the tree
60
61 econf \
62 --with-ncsb-dir=/usr/share/fonts/urw-fonts \
63 --disable-documentation \
64 --disable-optimising \
65 --disable-pipe \
66 $(use_enable debug debugging) \
67 $(use_enable profile profiling)
68 }
69
70 src_compile() {
71 default
72
73 if use emacs ; then
74 elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \
75 || die "elisp-compile failed"
76 fi
77 }
78
79 src_install () {
80 emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install
81
82 # remove elisp files since they are in the wrong directory
83 rm -r "${D}"/usr/share/emacs || die
84
85 if use emacs ; then
86 elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \
87 || die "elisp-install failed"
88 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
89 fi
90
91 python_convert_shebangs -r 2 "${D}"
92
93 dodoc AUTHORS.txt HACKING NEWS.txt README.txt THANKS
94 }
95
96 pkg_postinst() {
97 use emacs && elisp-site-regen
98 }
99
100 pkg_postrm() {
101 use emacs && elisp-site-regen
102 }

  ViewVC Help
Powered by ViewVC 1.1.20