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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Aug 26 19:42:29 2012 UTC (23 months, 3 weeks ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/lilypond/lilypond-2.15.95.ebuild,v 1.1 2012/08/13 19:13:45 radhermit Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="2"
7
8 inherit elisp-common python autotools
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 if ! use vim-syntax ; then
48 sed -i -e "s/vim//" GNUmakefile.in || die
49 fi
50
51 sed -i -e "s/OPTIMIZE -g/OPTIMIZE/" aclocal.m4 || die
52
53 eautoreconf
54 }
55
56 src_configure() {
57 # documentation generation currently not supported since it requires a newer
58 # version of texi2html than is currently in the tree
59
60 econf \
61 --with-ncsb-dir=/usr/share/fonts/urw-fonts \
62 --disable-documentation \
63 --disable-optimising \
64 --disable-pipe \
65 $(use_enable debug debugging) \
66 $(use_enable profile profiling)
67 }
68
69 src_compile() {
70 default
71
72 if use emacs ; then
73 elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \
74 || die "elisp-compile failed"
75 fi
76 }
77
78 src_install () {
79 emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install
80
81 # remove elisp files since they are in the wrong directory
82 rm -r "${D}"/usr/share/emacs || die
83
84 if use emacs ; then
85 elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \
86 || die "elisp-install failed"
87 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
88 fi
89
90 python_convert_shebangs -r 2 "${D}"
91
92 dodoc AUTHORS.txt HACKING NEWS.txt README.txt THANKS
93 }
94
95 pkg_postinst() {
96 use emacs && elisp-site-regen
97 }
98
99 pkg_postrm() {
100 use emacs && elisp-site-regen
101 }

  ViewVC Help
Powered by ViewVC 1.1.20