diff options
author | 2013-07-13 15:56:27 -0700 | |
---|---|---|
committer | 2013-07-13 15:56:27 -0700 | |
commit | c494323374c911a35a321d013523d194bd8b3753 (patch) | |
tree | bba366ae34fd0069aee3539db6b66f412616b968 | |
parent | Other dev-qt updates (diff) | |
download | rebutia-c494323374c911a35a321d013523d194bd8b3753.tar.gz rebutia-c494323374c911a35a321d013523d194bd8b3753.tar.bz2 rebutia-c494323374c911a35a321d013523d194bd8b3753.zip |
Add LyX 2.1.0 beta1
-rw-r--r-- | app-office/lyx/Manifest | 3 | ||||
-rw-r--r-- | app-office/lyx/files/2.0-python.patch | 26 | ||||
-rw-r--r-- | app-office/lyx/lyx-2.1.0_beta1.ebuild | 178 |
3 files changed, 207 insertions, 0 deletions
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index 232db4f..f5b50fc 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -1,4 +1,7 @@ AUX 1.6.7-python.patch 906 SHA256 ad4ebb8d3837536eea869e15b3759840a1153d64d74b744e956ce9bdf5e5651d SHA512 60d66a25788102da05e25e69297ba572ff62a5532c36a3c666e7f1d24c023e27e7b9056888b74f6e9ba4581198dcb51cba12f549c374fc7f0a520c39360d2886 WHIRLPOOL d573cb6b4804a65616b8595a9dae7b1f76a807e04335a318e22a1d8cfc7419d7eb04c5fc7cec647bb64b5a3fd4c1c154e2b0d6f4e044ccba756bd18bbbb37791 +AUX 2.0-python.patch 1036 SHA256 954f96dab553024fb128924c7ba3d70a91946f6909d203ee0902d6ec8740ded8 SHA512 81bf78b837d9a4621a230d3d1d4e45c306598b4047227b88e83054268571a496a71babdfe5152b47370a3dbf91767aed366984555225c3900bf6d55dc0e43d31 WHIRLPOOL e47a40db707b68c923bce136c72742242a974fe17c8a167fa0ca6f428bf2937feba3122737417e0902f320c0a8df1d4da72702eea4e4d4fe699b5176bbe5ed19 AUX 2.0.3-python.patch 1036 SHA256 954f96dab553024fb128924c7ba3d70a91946f6909d203ee0902d6ec8740ded8 SHA512 81bf78b837d9a4621a230d3d1d4e45c306598b4047227b88e83054268571a496a71babdfe5152b47370a3dbf91767aed366984555225c3900bf6d55dc0e43d31 WHIRLPOOL e47a40db707b68c923bce136c72742242a974fe17c8a167fa0ca6f428bf2937feba3122737417e0902f320c0a8df1d4da72702eea4e4d4fe699b5176bbe5ed19 AUX 2.0.patches 9724 SHA256 9bf26943ce4f27b4cdbfa924f3097aa1bfba6e23a10d8db494148066e9bf8a39 SHA512 99bdb8204d2f2d40adbb6280e8273b6d974ad6db5575388bedb6ed913a2afa17f693c6f35d600cc7d35d637f3426dcc485237be3548f47055588a5c199fb66db WHIRLPOOL b5c1555147329388d4bb1911712a38256c518a4d17cadba3911d125313a607e9eabd5b2f81c4831b6b9b8ae38c05ce0d9c37305b31286a0773fa3288e7c37a08 +DIST lyx-2.1.0beta1.tar.xz 10318976 SHA256 a512208da1c0884858170c77e36db499c0119e0cfff5616a1524a4c5b5e63c69 SHA512 d19c5aca1fc7718adce14eebd770a9bbb63a9920fc330abc57820189c66b1bc1ed2cd40fd406bca20560fd3b348e5d47e3100e005be2028b29f65b8188ad154c WHIRLPOOL 25c703cea20f8754dde4d032c62655ff27f2fd36437e6a1b624174d422e1925b0bbefddb29c320ca29fd278788c5e1d5a87cd17eb1e472d3086cf3b2c3c803ab EBUILD lyx-2.0.9999.ebuild 4385 SHA256 95b7b8253e553148055d20e18c723d3f6599045f95a5cdcb027f14dfab653aac SHA512 7d01fad672584bf94c282ed5ddc30546373013ed8c531269a47cdab1eeebde837fb5796e692e2bb2ffd7b3d711227e5193a27777b88352b7892966a92fe0d7d5 WHIRLPOOL 5cbc722f032dc4232ee02a84383513ea065880dd2fa024b8a95201fd910f757bd017d2b600781bce048ce11b55db065310ee975a3cd1ddd07dccc6ed142e37dc +EBUILD lyx-2.1.0_beta1.ebuild 4463 SHA256 239aeb2b83af7e2e9fc0168676e525caaec82b827c5f7d07eb7144e08c7058e9 SHA512 f5b7031ae2018d817f98d663f64c7fbb2319ee200be7ab857ec8ee90db7ce13399b8a44ee7cad42825ec539fedf75a96b2d6e3cd2f93adee18e88ee61eeee3c1 WHIRLPOOL d095f796a25c8260f21d87b766a39bcb17bc4b2d42d259c066bd9d61f1564fbb6fd05d9e7fe4be4b9a9a49edad0513a950d17e4b69be4b326aa27c9de5d417a4 diff --git a/app-office/lyx/files/2.0-python.patch b/app-office/lyx/files/2.0-python.patch new file mode 100644 index 0000000..e12f66a --- /dev/null +++ b/app-office/lyx/files/2.0-python.patch @@ -0,0 +1,26 @@ +diff --git a/src/graphics/GraphicsConverter.cpp b/src/graphics/GraphicsConverter.cpp +index 97c4f68..8f05e62 100644 +--- a/src/graphics/GraphicsConverter.cpp ++++ b/src/graphics/GraphicsConverter.cpp +@@ -262,7 +262,7 @@ static void build_script(FileName const & from_file, + LYXERR(Debug::GRAPHICS, "build_script ... "); + typedef Graph::EdgePath EdgePath; + +- script << "#!/usr/bin/env python\n" ++ script << "#!/usr/bin/env python2\n" + "# -*- coding: utf-8 -*-\n" + "import os, shutil, sys\n\n" + "def unlinkNoThrow(file):\n" +diff --git a/src/support/os.cpp b/src/support/os.cpp +index f36331c..02f5a93 100644 +--- a/src/support/os.cpp ++++ b/src/support/os.cpp +@@ -57,7 +57,7 @@ static string const python2(string const & binary, bool verbose = false) + string const python() + { + // Check whether the first python in PATH is the right one. +- static string command = python2("python -tt"); ++ static string command = python2("python2 -tt"); + + if (command.empty()) { + // It was not, so check whether we can find it elsewhere in diff --git a/app-office/lyx/lyx-2.1.0_beta1.ebuild b/app-office/lyx/lyx-2.1.0_beta1.ebuild new file mode 100644 index 0000000..396e7ba --- /dev/null +++ b/app-office/lyx/lyx-2.1.0_beta1.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.0.6.ebuild,v 1.10 2013/06/29 16:21:16 ago Exp $ + +EAPI=3 + +PYTHON_DEPEND="2" + +inherit gnome2-utils qt4-r2 eutils flag-o-matic font python toolchain-funcs + +MY_P="${P/_}" + +S="${WORKDIR}/${MY_P}" +FONT_S="${S}/lib/fonts" +FONT_SUFFIX="ttf" +DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." +HOMEPAGE="http://www.lyx.org/" +#SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${P}.tar.xz" +SRC_URI="ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/${MY_P}.tar.xz" +RESTRICT="test" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" +IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant" + +LANGS="ar ca cs de da el en es eu fi fr gl he hu ia id it ja nb nn pl pt ro ru sk sr sv tr uk zh_CN zh_TW" + +for X in ${LANGS}; do + IUSE="${IUSE} linguas_${X}" +done + +COMMONDEPEND="dev-qt/qtgui:4 + dev-qt/qtcore:4 + >=dev-libs/boost-1.34" + +RDEPEND="${COMMONDEPEND} + dev-texlive/texlive-fontsextra + || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] ) + cups? ( net-print/cups ) + latex? ( + app-text/texlive + app-text/ghostscript-gpl + app-text/noweb + app-text/dvipng + dev-tex/dvipost + dev-tex/chktex + app-text/ps2eps + dev-texlive/texlive-latexextra + dev-texlive/texlive-pictures + dev-texlive/texlive-science + dev-texlive/texlive-genericextra + dev-texlive/texlive-fontsrecommended + || ( + dev-tex/latex2html + dev-tex/tth + dev-tex/hevea + dev-tex/tex4ht + ) + ) + html? ( dev-tex/html2latex ) + rtf? ( + dev-tex/latex2rtf + app-text/unrtf + dev-tex/html2latex + ) + linguas_he? ( dev-tex/culmus-latex ) + docbook? ( app-text/sgmltools-lite ) + dot? ( media-gfx/graphviz ) + dia? ( app-office/dia ) + subversion? ( <dev-vcs/subversion-1.7.0 ) + rcs? ( dev-vcs/rcs ) + svg? ( || ( media-gfx/imagemagick[svg] media-gfx/graphicsmagick[svg] ) + || ( gnome-base/librsvg media-gfx/inkscape ) + ) + gnumeric? ( app-office/gnumeric ) + hunspell? ( app-text/hunspell ) + aspell? ( app-text/aspell ) + enchant? ( app-text/enchant )" + +DEPEND="${COMMONDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + python_set_active_version 2 + font_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/2.0-python.patch + echo "#!/bin/sh" > config/py-compile + sed "s:python -tt:$(PYTHON) -tt:g" -i lib/configure.py || die +} + +src_configure() { + tc-export CXX + #bug 221921 + export VARTEXFONTS=${T}/fonts + + econf \ + $(use_enable nls) \ + $(use_enable debug) \ + $(use_enable monolithic-build) \ + $(use_with hunspell) \ + $(use_with aspell) \ + $(use_with enchant) \ + --without-included-boost \ + --disable-stdlib-debug \ + --with-packaging=posix +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc ANNOUNCE NEWS README RELEASE-NOTES UPGRADING "${FONT_S}"/*.txt || die + + if use linguas_he ; then + echo "\bind_file cua" > "${T}"/hebrew.bind + echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind + + insinto /usr/share/lyx/bind + doins "${T}"/hebrew.bind || die + fi + + newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png + doicon -s 48 "${S}/lib/images/lyx.png" + doicon -s scalable "${S}/lib/images/lyx.svg" + make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;" + + # fix for bug 91108 + if use latex ; then + dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx || die + fi + + # fonts needed for proper math display, see also bug #15629 + font_src_install + + python_convert_shebangs -r 2 "${ED}"/usr/share/${PN} + + if use hunspell ; then + dosym /usr/share/myspell /usr/share/lyx/dicts + dosym /usr/share/myspell /usr/share/lyx/thes + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + font_pkg_postinst + gnome2_icon_cache_update + + # fix for bug 91108 + if use latex ; then + texhash + fi + + # instructions for RTL support. See also bug 168331. + if use linguas_he || use linguas_ar; then + elog + elog "Enabling RTL support in LyX:" + elog "If you intend to use a RTL language (such as Hebrew or Arabic)" + elog "You must enable RTL support in LyX. To do so start LyX and go to" + elog "Tools->Preferences->Language settings->Language" + elog "and make sure the \"Right-to-left language support\" is checked" + elog + fi +} + +pkg_postrm() { + gnome2_icon_cache_update + + if use latex ; then + texhash + fi +} |