diff options
author | Pavel Sanda <ps@twin.jikos.cz> | 2012-11-10 20:51:35 +0100 |
---|---|---|
committer | Pavel Sanda <ps@twin.jikos.cz> | 2012-11-10 20:51:35 +0100 |
commit | f3398ec03f37172d8d1ca9f8dce212828ad6c1bd (patch) | |
tree | eb1cfa7d09323d912c0ee3537b9761a9a236e67b /app-office | |
parent | Drop old lyx. (diff) | |
download | rebutia-f3398ec03f37172d8d1ca9f8dce212828ad6c1bd.tar.gz rebutia-f3398ec03f37172d8d1ca9f8dce212828ad6c1bd.tar.bz2 rebutia-f3398ec03f37172d8d1ca9f8dce212828ad6c1bd.zip |
bump lyx 2.0.5
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/lyx/Manifest | 2 | ||||
-rw-r--r-- | app-office/lyx/lyx-2.0.5.ebuild | 178 |
2 files changed, 180 insertions, 0 deletions
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index 465d63c..8d9863f 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -1,4 +1,6 @@ AUX 1.6.7-python.patch 906 SHA256 ad4ebb8d3837536eea869e15b3759840a1153d64d74b744e956ce9bdf5e5651d SHA512 60d66a25788102da05e25e69297ba572ff62a5532c36a3c666e7f1d24c023e27e7b9056888b74f6e9ba4581198dcb51cba12f549c374fc7f0a520c39360d2886 WHIRLPOOL d573cb6b4804a65616b8595a9dae7b1f76a807e04335a318e22a1d8cfc7419d7eb04c5fc7cec647bb64b5a3fd4c1c154e2b0d6f4e044ccba756bd18bbbb37791 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.0.5.tar.xz 10314440 SHA256 d39aada3390a0468b354ec1703f12734bdfe56b08baa7950373748745313fb02 SHA512 15490c9433997231baf841dc45c8697a80b40d1b190d2e5e2e84ab4f17377928458e8217a236653ec53c693bb6e1070e30e0dfcfbb3d1de9f3f3d9af3ae09a39 WHIRLPOOL 95762a73c6c730d27a81ac9291ce4b5ece35ae2c070c41c78800313836126f0763fe1494fb5525930ea90bfa035e3030756218d7da372b06c9e47c498a6c4291 +EBUILD lyx-2.0.5.ebuild 4503 SHA256 e429e19190452b24c577dbdc28baea5939c668518e641599b1b07cf814ccb070 SHA512 79bbba4415fb2c5952e50d51178ad248c1604dc1fb3d40af40a48fd3d54a1febf688432a8bd81044a62c7f4ab892cbb49fb6c17c338e6b9d0d3b231612da28dd WHIRLPOOL acd690a4f82fb5f76d5c0e971def712c79b9b843a86eb780591797451214c9c7299bd67dcbfdd8fb166ae3ca5f253784c3fb13c06a8a62847187f1b1b18f7693 EBUILD lyx-2.0.9999.ebuild 4391 SHA256 465a9a1ca33cd23570402abe766ad7f4b4d657a0a3cbdc7c1220f75ee4b574b3 SHA512 a63b2c5caf3eba2c8d8cfd7ef060100d8e0fd157c660481fb3f74e949d09dd09d5ffb35e3eab3e51e22b860dfc71ac3fe992c0d0c313c8287678e7625c22e3fd WHIRLPOOL 3cc47f7a3947e67a39d1b1b0d660a5bdbb85486ab7ad2665a2c359f80f77e2031c2a3b9d77312e5e7d130855f18a14bc8d7d2332b57dc25c73e6be07fc5daa94 diff --git a/app-office/lyx/lyx-2.0.5.ebuild b/app-office/lyx/lyx-2.0.5.ebuild new file mode 100644 index 0000000..60aeb40 --- /dev/null +++ b/app-office/lyx/lyx-2.0.5.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.0.4.ebuild,v 1.6 2012/10/10 15:23:33 ranger 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/stable/2.0.x/${P}.tar.xz http://frege.brown.edu/lyx/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x64-macos ~x86-macos" +IUSE="cups debug nls +latex xetex luatex 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="x11-libs/qt-gui:4 + x11-libs/qt-core:4 + dev-libs/boost" + +RDEPEND="${COMMONDEPEND} + dev-texlive/texlive-fontsextra + || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] ) + cups? ( net-print/cups ) + latex? ( + virtual/latex-base + 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 + ) + ) + xetex? ( dev-texlive/texlive-xetex ) + luatex? ( dev-texlive/texlive-luatex ) + 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} + sys-devel/bc + 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 + 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 +} |