diff options
author | Pavel Sanda <ps@twin.jikos.cz> | 2013-11-12 08:58:57 -0800 |
---|---|---|
committer | Pavel Sanda <ps@twin.jikos.cz> | 2013-11-12 08:58:57 -0800 |
commit | 57d6eecff939a2e55a9ca453ac9283ac0a738563 (patch) | |
tree | ec45efb089101e7d9a22a8d6c847a074ea9eaa6a /app-office/lyx | |
parent | Drop ebuilds, old git class support dropped from portage. (diff) | |
download | rebutia-57d6eecff939a2e55a9ca453ac9283ac0a738563.tar.gz rebutia-57d6eecff939a2e55a9ca453ac9283ac0a738563.tar.bz2 rebutia-57d6eecff939a2e55a9ca453ac9283ac0a738563.zip |
add lyx 2.1 beta2
Diffstat (limited to 'app-office/lyx')
-rw-r--r-- | app-office/lyx/Manifest | 2 | ||||
-rw-r--r-- | app-office/lyx/lyx-2.1.0_beta2.ebuild | 178 |
2 files changed, 180 insertions, 0 deletions
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index e1fd62e..1aef118 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -3,5 +3,7 @@ AUX 2.0-python.patch 1036 SHA256 954f96dab553024fb128924c7ba3d70a91946f6909d203e 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 10314988 SHA256 5d38caa23e156669da6ebfff8fb80125db24704d9733648eb21be7a2b01f6203 SHA512 77191e569f91ff9b993eb3ce867f45e66924cc293565c9d3bb4d75ce2e98ca3de254528e6f183b7f5fa2bf34b0cd1ba9c3f2d8d4e5daa7b08967365a6b722b01 WHIRLPOOL 79ef55f9a28c0eb9934a14dcda329c456c7f31d505c43adf260fd77db9727f08160236d8104ca1df255cc343608a9f3a8255b27227a275749643f136fbde1a82 +DIST lyx-2.1.0beta2.tar.xz 10335516 SHA256 a5a8ee45b6e5c58848dd887fd2c9b6a04273ae4b8a79c7c301472bd0c0eab1b1 SHA512 1697505ea1f4112076b041a488d347a86e53b97e205c2c39afa02bc7bf533a31b944ff1270dc53e240beb815ea74c3460bfc0f2baf3bc396025fcc39e200e0a5 WHIRLPOOL ecea0c9371b41addefe702d77c5c2c49a8f230d0e284b52b0ae30b6b7fbdc6d27acb8b276f2c032a08453643392e20940ae9622f37c3bc089ab7c22e8d92bc20 EBUILD lyx-2.0.9999.ebuild 4385 SHA256 95b7b8253e553148055d20e18c723d3f6599045f95a5cdcb027f14dfab653aac SHA512 7d01fad672584bf94c282ed5ddc30546373013ed8c531269a47cdab1eeebde837fb5796e692e2bb2ffd7b3d711227e5193a27777b88352b7892966a92fe0d7d5 WHIRLPOOL 5cbc722f032dc4232ee02a84383513ea065880dd2fa024b8a95201fd910f757bd017d2b600781bce048ce11b55db065310ee975a3cd1ddd07dccc6ed142e37dc EBUILD lyx-2.1.0_beta1.ebuild 4471 SHA256 e2a993537b8223ba42f7aacc71abad5bb29feeeb35a3f01b77b832013f562b67 SHA512 d64c05af4f4a1da15e367894159a8b09ca6a9240faa8968c9829fef2ed7d603a012f7b760a2d79f5442662944f21ee06faa6a170cb5c8c9dafdecef087b340ef WHIRLPOOL f95ff85b3f2b00cc4cfab1f04a92c8f37cccb37ff6a2ec423c483c968b6125b7624a9b9b744f1c33354aeb6673ccc5851dcc2165cb80e0ceb7badbeecb32d622 +EBUILD lyx-2.1.0_beta2.ebuild 4471 SHA256 e2a993537b8223ba42f7aacc71abad5bb29feeeb35a3f01b77b832013f562b67 SHA512 d64c05af4f4a1da15e367894159a8b09ca6a9240faa8968c9829fef2ed7d603a012f7b760a2d79f5442662944f21ee06faa6a170cb5c8c9dafdecef087b340ef WHIRLPOOL f95ff85b3f2b00cc4cfab1f04a92c8f37cccb37ff6a2ec423c483c968b6125b7624a9b9b744f1c33354aeb6673ccc5851dcc2165cb80e0ceb7badbeecb32d622 diff --git a/app-office/lyx/lyx-2.1.0_beta2.ebuild b/app-office/lyx/lyx-2.1.0_beta2.ebuild new file mode 100644 index 0000000..e59134b --- /dev/null +++ b/app-office/lyx/lyx-2.1.0_beta2.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}/${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 +} |