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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 14 03:04:10 2013 UTC (23 months ago) by radhermit
Branch: MAIN
Changes since 1.1: +11 -13 lines
Version bumps. Migrate to python-single-r1 and respect LINGUAS.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20