diff options
Diffstat (limited to 'media-sound/lilypond')
-rw-r--r-- | media-sound/lilypond/Manifest | 17 | ||||
-rw-r--r-- | media-sound/lilypond/files/50lilypond-gentoo.el | 7 | ||||
-rw-r--r-- | media-sound/lilypond/files/lilypond-2.17.2-tex-docs.patch | 20 | ||||
-rw-r--r-- | media-sound/lilypond/files/lilypond-2.18.2-fontforge.patch | 29 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.18.2-r3.ebuild | 140 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.19.54.ebuild | 147 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.19.61.ebuild | 147 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.19.63.ebuild | 147 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-2.19.64.ebuild | 147 | ||||
-rw-r--r-- | media-sound/lilypond/lilypond-9999.ebuild | 147 | ||||
-rw-r--r-- | media-sound/lilypond/metadata.xml | 26 |
11 files changed, 974 insertions, 0 deletions
diff --git a/media-sound/lilypond/Manifest b/media-sound/lilypond/Manifest new file mode 100644 index 000000000000..33dc25656e42 --- /dev/null +++ b/media-sound/lilypond/Manifest @@ -0,0 +1,17 @@ +AUX 50lilypond-gentoo.el 258 SHA256 4d8d78c7f08103d0708b0f00638a66496db4b8d2e7d1243794a28ed38dd9b5a7 SHA512 6cffb5df0776b0d03725c534d8fd1acc09b222d964bf6480e0220c02612d7d1348e3c27da908cdc8de929549dc52678d582d620c00cf35f82aaa2203e7b4d69e WHIRLPOOL 36b72e9a24815b2108f258ca31533c900201333b66a66e4cc3897a60aeb02719a90c710e94c7f99f8d98375125eb86641c88f2ecded1598a43c4a2f14394bb1f +AUX lilypond-2.17.2-tex-docs.patch 608 SHA256 ca43b5633f3ee85748d5f0f43814b144ec4e0779961a9a802d45b551694d75e0 SHA512 fe22e649e12ba1aacf05dab14b1820d636d58dce252832331577935db2c0e565b3ec6073c6bec11a05a4c1254ddd1495252e6b3e41623e290363eb124e7fa6c1 WHIRLPOOL bdf4d95c108966e144946abb31dd5acd57102db08a410b51b562e250a0676466d8208090c880f6018bed45ac3b332acd3f66e7337cd036e5b66ee72f939c9779 +AUX lilypond-2.18.2-fontforge.patch 924 SHA256 4b8facab1fcd5f3ae866e831936904c6973430a373b6a9849053f1fd8cea496b SHA512 f4a45a1ed601c114df24e9e20aa083cd30d5b77955e19cac309508af2f59c808a629bc82bc181e5325d0534d29d3fe4de53029d2db317ed447e306e11150ef7f WHIRLPOOL 974c31043042d420e8f3e0843cadd0d92ec88813483222028e301e64402a0449e61b306a0407468755b1a27d29be1da5678065660b0ebb1ad039e2aee7af022f +DIST lilypond-2.18.2.tar.gz 16027977 SHA256 329d733765b0ba7be1878ae3f457dbbb875cc2840d2b75af4afc48c9454fba07 SHA512 0692f6eb41733076ba7f610cd1e65762f4dfd67307e2ab9e222b140d58ae3a1bb1c6b3be3bcff778d57f161868cf6d57e99bf43bf20f2663d042a07493942ec6 WHIRLPOOL 95db264992a1e425fd1ee53d980941eef554c1784a1adfc105750d82d11664f61207c2b1897b6e99448790131c0715f08401f45b663c420553925596c6fd4b1c +DIST lilypond-2.19.54.tar.gz 17068093 SHA256 0ee709f1e58caf13cf5abea9bb74179ba5c7a4f2dc470ec48d9aefb553e68a58 SHA512 bcf682595017e5ad9125c3c8e89c00faa3ab7f84ac92dce06ac6ea1d93f358d779f83b2391e36219ea8f76fa569c9f3c17120024cca4cf43a0facb2b24127c8b WHIRLPOOL 7ce1cc7e89c5907515f8505a1e1efe1aadf8df48c24d70a2fe39924cf9301b6c676121e6c6ceac75b76a085e5d940c6c3bb6c31e87d314dda72c68f0af1307c8 +DIST lilypond-2.19.61.tar.gz 17154903 SHA256 fc42103824cbd9e5d230ded0f73c8ecffae14998b2ad2e136914f7eab1eecb0a SHA512 870d747f6d29644824e965f4a0ff37555afbf8d8013f01965f64d4b95ca6487d15468aee27fa44036ed2d35b00f8e9bc69c22a670ad97f04ae39a16d57ea83b9 WHIRLPOOL bc690e42b2b52a5b39dea956f83558e3adb72f8027a1acb2441cd104fd5d85f2860f2a9f0c76ec882a9404ed6cbfcecd3ee4aa60d3148e79405ca9487e4de26f +DIST lilypond-2.19.63.tar.gz 17172960 SHA256 803f3bbf87d68fbde4ea364fc62394e5907e73cecd6188bb8f12fa4f433d9b43 SHA512 58f8922e2965bb37a08472f49d88e650d2c530a29e4672b858c0d8d91dbd8a94db78668c37424ab59084cc03c7cd07e931b138374d351ecd580f23986035f106 WHIRLPOOL 926916f23237c6ea10aaae4081b00c04aa10706cf81be51d99afba2e1eb8c8638039def026a16b6cca2e0d57120e737f0f2d4809c1e12118e78a987467162749 +DIST lilypond-2.19.64.tar.gz 17174255 SHA256 9b660fe99914c54cf30b391976d6e30f7dc7683928b3bf9b3454250c86990137 SHA512 f0728496b0271c55e29871f23df53ea1be7036029c85a5ba4b88cd7c6005ff0ec880ab0992e9d99c36c7e82e83023a809f783e69f10982de3ccdd161f38ecec9 WHIRLPOOL b13d8d9fc72392653d090175ec4cba7858ed7015607e4c249454a42a4d3027f5c1799f527aab86b57eac38b36510ce5b08b7b79f3f536386c14b7f3f285ed15c +EBUILD lilypond-2.18.2-r3.ebuild 3229 SHA256 74c52c533beb928d792f0de62147d796c777a4997bbac6f22b38ddd8f5343246 SHA512 d388d75f4694be743d1a6127984f2fc60dde1333dd23704bc2b84263a24d0a73c8875f237d1e9b887ea524fbdd9d1c22ad2bf466b00fddce0c25a66f557d7107 WHIRLPOOL afa175837e8d6a4f3a227512dc260d8a880ea6f5d289a7fe30b78559fa5a879288a9162fc625b52a0b96a1729261ec34aa1384432c3545f0875f63dad59f8b5d +EBUILD lilypond-2.19.54.ebuild 3416 SHA256 8a80d370a94300a214d9c685d4f1ddd68c91b0b5a2a820dc0c96ef74a46f3edb SHA512 7a36abc1dc63e2d0d2a3c7a5befab55786211ec55e7c35caf5cc3a6eb456b1bd1db9fe4b66f29c2aa7f9bee15c685a08c70feccb3d06de6e19a7b3fab39b1a20 WHIRLPOOL 214fa0e3976e62d2ca3a30d6ee4146db3ecaad3033361b29408f6b1e7baf26dfa6b9b10bc21616d7e7284a3926b6ee3da5e2ff5860cd5450675c012a47f860c7 +EBUILD lilypond-2.19.61.ebuild 3423 SHA256 9efaf151a71d559e2be82de1b56251503ba310addb33f70065bb00e57f3a5197 SHA512 72295001f330d68d7a3aed4f33dcbfcdc49fae897c862da764a943ba254469935707f03d18680566aea1249771070ae6ae921e658ad3bbae3161bfa2632b8242 WHIRLPOOL 55ac626ed13d4d10a69afeb5d5029247eae65b13ac16189b6de79d8e69a39b218564e6d4dda367c90f8aa8200236777dfe116807630b561fd1bb016e7a0ccadb +EBUILD lilypond-2.19.63.ebuild 3423 SHA256 9efaf151a71d559e2be82de1b56251503ba310addb33f70065bb00e57f3a5197 SHA512 72295001f330d68d7a3aed4f33dcbfcdc49fae897c862da764a943ba254469935707f03d18680566aea1249771070ae6ae921e658ad3bbae3161bfa2632b8242 WHIRLPOOL 55ac626ed13d4d10a69afeb5d5029247eae65b13ac16189b6de79d8e69a39b218564e6d4dda367c90f8aa8200236777dfe116807630b561fd1bb016e7a0ccadb +EBUILD lilypond-2.19.64.ebuild 3423 SHA256 9efaf151a71d559e2be82de1b56251503ba310addb33f70065bb00e57f3a5197 SHA512 72295001f330d68d7a3aed4f33dcbfcdc49fae897c862da764a943ba254469935707f03d18680566aea1249771070ae6ae921e658ad3bbae3161bfa2632b8242 WHIRLPOOL 55ac626ed13d4d10a69afeb5d5029247eae65b13ac16189b6de79d8e69a39b218564e6d4dda367c90f8aa8200236777dfe116807630b561fd1bb016e7a0ccadb +EBUILD lilypond-9999.ebuild 3423 SHA256 9efaf151a71d559e2be82de1b56251503ba310addb33f70065bb00e57f3a5197 SHA512 72295001f330d68d7a3aed4f33dcbfcdc49fae897c862da764a943ba254469935707f03d18680566aea1249771070ae6ae921e658ad3bbae3161bfa2632b8242 WHIRLPOOL 55ac626ed13d4d10a69afeb5d5029247eae65b13ac16189b6de79d8e69a39b218564e6d4dda367c90f8aa8200236777dfe116807630b561fd1bb016e7a0ccadb +MISC ChangeLog 7438 SHA256 18f52e1e97192af2a6a7d3730f5e08730cccd7583f74c700ec2a852b73dad1ba SHA512 c937e2ab7f2abd1a345b252525ed22a357ffd384013481d75762be836ebb195cd574f7dd9bab4712e9a06cdea2d4c53e14dd12b999b484c3381315ab445b56cf WHIRLPOOL 069d44a032d68a5582fb7e1cb838d0702e8879f4c813bdc431617ee95204c1fca6d6dc85d706a6eda965e370204358fab50ea851babd348dab79593e5858ea20 +MISC ChangeLog-2015 30467 SHA256 5a98ac16f60f1e583472b20b8c6bf810c358d12d22df0096c5804acae8cba9a9 SHA512 feaf4ef34b76dfcd992e9fa268c32d1496f489b9005bca62484ffb9cbebd4c36c2e001e06af2234b7d727fdbbf0110a688e4f0885fe9a8cea66199b9f93a842f WHIRLPOOL 16eae14b6705c8aa022d65318bd282246a801169aee882c4772b1889968505bfb40fbc0ed9c70ca437572e83b2cc4feae5d023de9499471f489c3e9efc5bc023 +MISC metadata.xml 861 SHA256 c34dc2445ae61e1b8baba2a8cd7e74aec0646a2d16a0c145f65fadef614147e4 SHA512 d20e7dc27a7836585c7ca28cb78c073c3767a1749d16bca3989bb552d4920e949b3caf36f2227862655e61be0914602aa3af41f17a0f61246b3f305228c9b70c WHIRLPOOL 2950d874f56182ae4a17c11f4da7620f33c4d2e96a2f3c4564d106760e2de59d68c713bbc58e10232df36a9b265deb07d5ecff90766a163d200c91036cab8b53 diff --git a/media-sound/lilypond/files/50lilypond-gentoo.el b/media-sound/lilypond/files/50lilypond-gentoo.el new file mode 100644 index 000000000000..50f62c44d28d --- /dev/null +++ b/media-sound/lilypond/files/50lilypond-gentoo.el @@ -0,0 +1,7 @@ + +;;; lilypond site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t) +(add-to-list 'auto-mode-alist '("\\.i?ly\\'" . LilyPond-mode)) +(add-hook 'LilyPond-mode-hook 'turn-on-font-lock) diff --git a/media-sound/lilypond/files/lilypond-2.17.2-tex-docs.patch b/media-sound/lilypond/files/lilypond-2.17.2-tex-docs.patch new file mode 100644 index 000000000000..9e0d7082c0d8 --- /dev/null +++ b/media-sound/lilypond/files/lilypond-2.17.2-tex-docs.patch @@ -0,0 +1,20 @@ +--- lilypond-2.17.2/GNUmakefile.in ++++ lilypond-2.17.2/GNUmakefile.in +@@ -5,7 +5,7 @@ + SUBDIRS = python scripts \ + flower lily \ + mf ly \ +- tex ps scm \ ++ ps scm \ + po \ + elisp vim \ + input \ +@@ -14,7 +14,7 @@ + + ## this convoluted construction is necessary, since we don't know the + ## value of DOCUMENTATION here. +-documentation-dir=$(if $(findstring no,$(DOCUMENTATION)),,Documentation) ++documentation-dir=$(if $(findstring no,$(DOCUMENTATION)),,Documentation tex) + + SCRIPTS = configure autogen.sh smart-autogen.sh smart-configure.sh + README_FILES = COPYING COPYING.FDL DEDICATION ROADMAP HACKING \ diff --git a/media-sound/lilypond/files/lilypond-2.18.2-fontforge.patch b/media-sound/lilypond/files/lilypond-2.18.2-fontforge.patch new file mode 100644 index 000000000000..cfd3295b3948 --- /dev/null +++ b/media-sound/lilypond/files/lilypond-2.18.2-fontforge.patch @@ -0,0 +1,29 @@ +From a832764e7300d48468a6812077b899a4beed271b Mon Sep 17 00:00:00 2001 +From: Masamichi Hosoda <trueroad@trueroad.jp> +Date: Sat, 22 Aug 2015 21:20:17 +0900 +Subject: [PATCH] Fix fontforge version detection + +Newer fontforge shows git hash in `fontforge --version`. +In that case, configure script +might recognize it as date (version). +--- + aclocal.m4 | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/aclocal.m4 b/aclocal.m4 +index 48d0b77..0037c58 100644 +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -42,7 +42,8 @@ AC_DEFUN(STEPMAKE_GET_VERSION, [ + + if test -z "$_ver"; then + ## If empty, try date [fontforge] +- eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\{6,8\}' \ ++ eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 \ ++ | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \ + | head -n 1 \ + | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\" + fi +-- +2.6.2 + diff --git a/media-sound/lilypond/lilypond-2.18.2-r3.ebuild b/media-sound/lilypond/lilypond-2.18.2-r3.ebuild new file mode 100644 index 000000000000..4afc18c6e1d6 --- /dev/null +++ b/media-sound/lilypond/lilypond-2.18.2-r3.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit elisp-common autotools python-single-r1 xdg-utils + +DESCRIPTION="GNU Music Typesetter" +SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa x86" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + media-fonts/urw-fonts + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-2.17.2-tex-docs.patch + "${FILESDIR}"/${P}-fontforge.patch +) + +DOCS=( AUTHORS.txt NEWS.txt README.txt ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + eapply "${PATCHES[@]}" + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eapply_user + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + econf \ + --with-ncsb-dir=/usr/share/fonts/urw-fonts \ + --disable-documentation \ + --disable-optimising \ + --disable-pipe \ + $(use_enable debug debugging) \ + $(use_enable profile profiling) +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/lilypond-2.19.54.ebuild b/media-sound/lilypond/lilypond-2.19.54.ebuild new file mode 100644 index 000000000000..c0d01a0d9e2b --- /dev/null +++ b/media-sound/lilypond/lilypond-2.19.54.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +[[ "${PV}" = "9999" ]] && inherit git-r3 +inherit elisp-common autotools python-single-r1 xdg-utils + +if [[ "${PV}" = "9999" ]]; then + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git" +else + SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" + KEYWORDS="alpha ~amd64 ~arm ~hppa ~x86" +fi + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs guile2 profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + media-fonts/tex-gyre + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + guile2? ( >=dev-scheme/guile-2:12 ) + !guile2? ( + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +DOCS=( DEDICATION HACKING README.txt ROADMAP ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + local myeconfargs+=( + --with-texgyre-dir=/usr/share/fonts/tex-gyre + --disable-documentation + --disable-optimising + --disable-pipe + $(use_enable debug debugging) + $(use_enable guile2) + $(use_enable profile profiling) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/lilypond-2.19.61.ebuild b/media-sound/lilypond/lilypond-2.19.61.ebuild new file mode 100644 index 000000000000..5dd683dc4186 --- /dev/null +++ b/media-sound/lilypond/lilypond-2.19.61.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +[[ "${PV}" = "9999" ]] && inherit git-r3 +inherit elisp-common autotools python-single-r1 xdg-utils + +if [[ "${PV}" = "9999" ]]; then + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git" +else + SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86" +fi + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs guile2 profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + media-fonts/tex-gyre + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + guile2? ( >=dev-scheme/guile-2:12 ) + !guile2? ( + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +DOCS=( DEDICATION HACKING README.txt ROADMAP ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + local myeconfargs=( + --with-texgyre-dir=/usr/share/fonts/tex-gyre + --disable-documentation + --disable-optimising + --disable-pipe + $(use_enable debug debugging) + $(use_enable guile2) + $(use_enable profile profiling) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/lilypond-2.19.63.ebuild b/media-sound/lilypond/lilypond-2.19.63.ebuild new file mode 100644 index 000000000000..5dd683dc4186 --- /dev/null +++ b/media-sound/lilypond/lilypond-2.19.63.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +[[ "${PV}" = "9999" ]] && inherit git-r3 +inherit elisp-common autotools python-single-r1 xdg-utils + +if [[ "${PV}" = "9999" ]]; then + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git" +else + SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86" +fi + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs guile2 profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + media-fonts/tex-gyre + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + guile2? ( >=dev-scheme/guile-2:12 ) + !guile2? ( + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +DOCS=( DEDICATION HACKING README.txt ROADMAP ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + local myeconfargs=( + --with-texgyre-dir=/usr/share/fonts/tex-gyre + --disable-documentation + --disable-optimising + --disable-pipe + $(use_enable debug debugging) + $(use_enable guile2) + $(use_enable profile profiling) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/lilypond-2.19.64.ebuild b/media-sound/lilypond/lilypond-2.19.64.ebuild new file mode 100644 index 000000000000..5dd683dc4186 --- /dev/null +++ b/media-sound/lilypond/lilypond-2.19.64.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +[[ "${PV}" = "9999" ]] && inherit git-r3 +inherit elisp-common autotools python-single-r1 xdg-utils + +if [[ "${PV}" = "9999" ]]; then + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git" +else + SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86" +fi + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs guile2 profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + media-fonts/tex-gyre + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + guile2? ( >=dev-scheme/guile-2:12 ) + !guile2? ( + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +DOCS=( DEDICATION HACKING README.txt ROADMAP ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + local myeconfargs=( + --with-texgyre-dir=/usr/share/fonts/tex-gyre + --disable-documentation + --disable-optimising + --disable-pipe + $(use_enable debug debugging) + $(use_enable guile2) + $(use_enable profile profiling) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/lilypond-9999.ebuild b/media-sound/lilypond/lilypond-9999.ebuild new file mode 100644 index 000000000000..5dd683dc4186 --- /dev/null +++ b/media-sound/lilypond/lilypond-9999.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +[[ "${PV}" = "9999" ]] && inherit git-r3 +inherit elisp-common autotools python-single-r1 xdg-utils + +if [[ "${PV}" = "9999" ]]; then + EGIT_REPO_URI="git://git.sv.gnu.org/lilypond.git" +else + SRC_URI="http://download.linuxaudio.org/lilypond/sources/v${PV:0:4}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~x86" +fi + +DESCRIPTION="GNU Music Typesetter" +HOMEPAGE="http://lilypond.org/" + +LICENSE="GPL-3 FDL-1.3" +SLOT="0" +LANGS=" ca cs da de el eo es fi fr it ja nl ru sv tr uk vi zh_TW" +IUSE="debug emacs guile2 profile vim-syntax ${LANGS// / linguas_}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=app-text/ghostscript-gpl-8.15 + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + media-fonts/tex-gyre + media-libs/fontconfig + media-libs/freetype:2 + >=x11-libs/pango-1.12.3 + emacs? ( virtual/emacs ) + guile2? ( >=dev-scheme/guile-2:12 ) + !guile2? ( + >=dev-scheme/guile-1.8.2:12[deprecated,regex] + <dev-scheme/guile-2.0:12 + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/t1utils + dev-lang/perl + dev-libs/kpathsea + >=dev-texlive/texlive-metapost-2013 + || ( + >=app-text/texlive-core-2013 + >=dev-tex/metapost-1.803 + ) + virtual/pkgconfig + media-gfx/fontforge[png] + >=sys-apps/texinfo-4.11 + >=sys-devel/bison-2.0 + sys-devel/flex + sys-devel/gettext + sys-devel/make" + +# Correct output data for tests isn't bundled with releases +RESTRICT="test" + +DOCS=( DEDICATION HACKING README.txt ROADMAP ) + +pkg_setup() { + # make sure >=metapost-1.803 is selected if it's installed, bug 498704 + if [[ ${MERGE_TYPE} != binary ]] && has_version ">=dev-tex/metapost-1.803" ; then + if [[ $(readlink "${EROOT}"/usr/bin/mpost) =~ mpost-texlive-* ]] ; then + einfo "Updating metapost symlink" + eselect mpost update || die + fi + fi + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + if ! use vim-syntax ; then + sed -i 's/vim//' GNUmakefile.in || die + fi + + # respect CFLAGS + sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die + + for lang in ${LANGS}; do + use linguas_${lang} || rm po/${lang}.po || die + done + + # respect AR + sed -i "s/^AR=ar/AR=$(tc-getAR)/" stepmake/stepmake/library-vars.make || die + + # remove bundled texinfo file (fixes bug #448560) + rm tex/texinfo.tex || die + + eautoreconf + + xdg_environment_reset #586592 +} + +src_configure() { + # documentation generation currently not supported since it requires a newer + # version of texi2html than is currently in the tree + + local myeconfargs=( + --with-texgyre-dir=/usr/share/fonts/tex-gyre + --disable-documentation + --disable-optimising + --disable-pipe + $(use_enable debug debugging) + $(use_enable guile2) + $(use_enable profile profiling) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + if use emacs ; then + elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \ + || die "elisp-compile failed" + fi +} + +src_install () { + emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install + + # remove elisp files since they are in the wrong directory + rm -r "${ED}"/usr/share/emacs || die + + if use emacs ; then + elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el + fi + + python_fix_shebang "${ED}" + + einstalldocs +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/media-sound/lilypond/metadata.xml b/media-sound/lilypond/metadata.xml new file mode 100644 index 000000000000..38d04ad7a91a --- /dev/null +++ b/media-sound/lilypond/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <maintainer type="person"> + <email>karl.j.linden@gmail.com</email> + <name>Karl Linden</name> + </maintainer> + <maintainer type="project"> + <email>scheme@gentoo.org</email> + <name>Gentoo Scheme Project</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> +LilyPond is an automated engraving system. It formats music beautifully and automatically, and has a friendly syntax for its input files. + </longdescription> + <use> + <flag name="guile2">Enable experimental support for Guile 2</flag> + </use> +</pkgmetadata> |