summaryrefslogtreecommitdiff
path: root/app-office/lyx
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-02-15 16:58:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-02-15 16:58:00 +0000
commit434d713861b70f6c6563d6ee50a8e64f14c970d9 (patch)
treeb72c523c72e764420f835ba9d63d43ffef687dcf /app-office/lyx
parentf78108598211053d41752a83e0345441bb9014ae (diff)
gentoo resync : 15.02.2018
Diffstat (limited to 'app-office/lyx')
-rw-r--r--app-office/lyx/Manifest6
-rw-r--r--app-office/lyx/files/2.0.8-python.patch29
-rw-r--r--app-office/lyx/lyx-2.0.8.1-r1.ebuild170
-rw-r--r--app-office/lyx/lyx-2.2.2-r1.ebuild183
-rw-r--r--app-office/lyx/lyx-2.2.3.ebuild183
5 files changed, 0 insertions, 571 deletions
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest
index 6d2c688c8f2d..c09b2524c246 100644
--- a/app-office/lyx/Manifest
+++ b/app-office/lyx/Manifest
@@ -1,13 +1,7 @@
-AUX 2.0.8-python.patch 1019 BLAKE2B 1ca2692b77850998f49e93f43dc371d05e33438f867c352bdbf085a86a280e11fa5d00d738661875ede0041907683ced98407ce75676d638f35ae0a92cfd0f54 SHA512 039d3521bc1d646669fcccb43d04354dfe7ed32477a338c27a576c77e5ffcf15fcf0419c14df43aa37d727431cce6ab0327aa04199d09ce1749051ab12686df8
AUX 2.1-python.patch 1019 BLAKE2B 1ca2692b77850998f49e93f43dc371d05e33438f867c352bdbf085a86a280e11fa5d00d738661875ede0041907683ced98407ce75676d638f35ae0a92cfd0f54 SHA512 039d3521bc1d646669fcccb43d04354dfe7ed32477a338c27a576c77e5ffcf15fcf0419c14df43aa37d727431cce6ab0327aa04199d09ce1749051ab12686df8
-DIST lyx-2.0.8.1.tar.xz 10481988 BLAKE2B 121a2f5a86f9b2f92fc211c052a26dfeb0c89c3f3ebb6d9e9eab397af7aec1f696806f79d7fc75c03649bbefa06295ad03d7207135308cb14560596b0c0f4790 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901
DIST lyx-2.1.5.tar.xz 10361112 BLAKE2B ddc6e10974f495bb465fced0bfe95e0530831e924c12323267feec59e49900efefda154abac927f3129ab0820706a870fb463e749cff2b5c4b47368d954c9d20 SHA512 6f8c62ff96458d0c8c8057ae1e587be4c63bd3bdf2d4f095c24d447017034eda8c6b645efbd258f0956a9bbfe5fde2f90df36515be7b8a94cb63674bc3a58672
-DIST lyx-2.2.2.tar.xz 15490148 BLAKE2B 16d9b1448da76dd0b02ee4cdec38831a0c3aa7a0798b4f99bb6c93717223dfd3c62145afa76324177ed162d4c45ab341a963831855c9607d8544574ae88766da SHA512 5057a06f0c37cb2beadb92414eec495ba0619f6c8a9fb5372a9feb90fe0d8bf850de5c94bbf618c8e27bd64404ae6687c48ee24aa6e1bd35580eb3b77d71d45e
DIST lyx-2.2.3.tar.xz 15501856 BLAKE2B 08606f0c18d9cb5891bd7d612361597e3efc7e7855f7607c2620f10ddb22b7078d5085f725911496198d2d8a47ece54cbfe67cfbf4ec8eb15450271cd133b095 SHA512 b5a4a16b22680022651a0f3911c2c24bcd3541a573e672e541cb0af6572089e4b0e0ec1cafb40850e75c377e7da5b286d0314886e0c57d55f57645d8e4a07708
-EBUILD lyx-2.0.8.1-r1.ebuild 4194 BLAKE2B ccf3ba79b10a2e4ff8a7617e2383b6b306aa54b8bfe1ccb7be8e372043f6db5dde54f94e0ed8c6daed24319f7bda01b63d7deadedef8ff3c55f26075f4b78527 SHA512 a87a0a8e36eba81fba7f854c24da04b4403ba711aeeece27dd73d56e2db4e72219e2be50994c1c70bfc6f0c4cb7b3b9eb8913cb22cac3b900498c84b526329f0
EBUILD lyx-2.1.5-r1.ebuild 4110 BLAKE2B b2e1a28dc3a86d58e44e8b6a2ed00123c2047c21eb7703a3b35d476b6fa40dc10d28f98240ba4a4943cab15c57a66327d93cf613ddff381156f47b32fc5684ea SHA512 e75260bbde4c3de28071e3d1fd15c49435cc9edc2fd0e48cf4ecee09b783fb698dae23e5489ee0dbc8de53501e1fb4624e7359a948b110342855a6c5c48fa8b2
-EBUILD lyx-2.2.2-r1.ebuild 4498 BLAKE2B 950059aebdda269d057fcbd40f502d9651d651e65699146af5ac451c0488ff62d3c422af7480aeb25518ea5895d8dff25698d6a33ead5e1a81a81cd319d0adef SHA512 fb0d4b84ad1ad1b82b0f84ae6ca8480e2dc8a2e3b6e47cc4b901ab14d797ffa38b849fc40e471038c12519c42dd40862a208ef8347769a09b3228c9d37f4ef42
EBUILD lyx-2.2.3-r1.ebuild 4399 BLAKE2B 754fed823766e2927b7dabec8f8488974a17a2b7141e9b3d15f05128ede7f32a720ff35f09741607833d5bfe48bb5a10647c2150edab8c4f21d9e2d3b8d93592 SHA512 8ab5677b4759e000dc913e869234abcb3c3de155f069f007c19be932722c5a9a23cf8d646a921b82d2e063518de312d30adcd564d73f13a81dd3e04ade9f82d2
EBUILD lyx-2.2.3-r2.ebuild 4369 BLAKE2B a1d9af492e94b1471f8755756cebfb057eebf98f4cfe4c1b16d8b3e520aaee384fe8175cd44ee7e58ecf25b0ce566a1713250e340287d673c2b8fe4c6ba35d01 SHA512 23f0ff39ee3efc573663e6769ecad71b215d2893428170abf346c606e9506667ad0657a4673300da736abefa920cc21b31a8868729d0d9dbf67ddeea7eb13093
-EBUILD lyx-2.2.3.ebuild 4498 BLAKE2B 950059aebdda269d057fcbd40f502d9651d651e65699146af5ac451c0488ff62d3c422af7480aeb25518ea5895d8dff25698d6a33ead5e1a81a81cd319d0adef SHA512 fb0d4b84ad1ad1b82b0f84ae6ca8480e2dc8a2e3b6e47cc4b901ab14d797ffa38b849fc40e471038c12519c42dd40862a208ef8347769a09b3228c9d37f4ef42
MISC metadata.xml 1760 BLAKE2B 8a223f94b48a92104942b9ae94c2746da8628c260fc597a836ae3b468bbe277b6383af960883fcd731f2ad288cc34d2ed6a58c118e1bfbdd3c2b766e99514328 SHA512 416c99a6d19a9e736a546c4f939cc5238de5027f1151d49d1bed800a5b2a026868d4197198e86c250b77be568f45f94ace125d83700316a5b001e21ed48b91b4
diff --git a/app-office/lyx/files/2.0.8-python.patch b/app-office/lyx/files/2.0.8-python.patch
deleted file mode 100644
index 5fb21655a695..000000000000
--- a/app-office/lyx/files/2.0.8-python.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-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 8f60c68..2f1cb91 100644
---- a/src/support/os.cpp
-+++ b/src/support/os.cpp
-@@ -63,9 +63,9 @@ int timeout_min()
- string const python(bool reset)
- {
- // Check whether the first python in PATH is the right one.
-- static string command = python2("python -tt");
-+ static string command = python2("python2 -tt");
- if (reset) {
-- command = python2("python -tt");
-+ command = python2("python2 -tt");
- }
-
- if (command.empty()) {
diff --git a/app-office/lyx/lyx-2.0.8.1-r1.ebuild b/app-office/lyx/lyx-2.0.8.1-r1.ebuild
deleted file mode 100644
index 3e87c826bd1c..000000000000
--- a/app-office/lyx/lyx-2.0.8.1-r1.ebuild
+++ /dev/null
@@ -1,170 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 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="https://www.lyx.org/"
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${MY_P}.tar.xz
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/${PV}/${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 monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant l10n_he"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
-
-COMMONDEPEND="dev-qt/qtgui:4
- dev-qt/qtcore:4
- >=dev-libs/boost-1.34
- ${PYTHON_DEPS}"
-
-RDEPEND="${COMMONDEPEND}
- dev-texlive/texlive-fontsextra
- virtual/imagemagick-tools[png,svg?]
- 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-mathscience dev-texlive/texlive-science )
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra )
- dev-texlive/texlive-fontsrecommended
- || (
- dev-tex/latex2html
- dev-tex/tth
- dev-tex/hevea
- dev-tex/tex4ht[java]
- )
- )
- html? ( dev-tex/html2latex )
- rtf? (
- dev-tex/latex2rtf
- app-text/unrtf
- dev-tex/html2latex
- )
- l10n_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? ( || ( 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-single-r1_pkg_setup
- font_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/2.0.8-python.patch
- sed "s:python -tt:${EPYTHON} -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() {
- default
-
- if use l10n_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-site/tex/latex/lyx || die
- fi
-
- # fonts needed for proper math display, see also bug #15629
- font_src_install
-
- python_fix_shebang "${ED}"/usr/share/${PN}
-
- if use hunspell ; then
- dosym ../myspell /usr/share/lyx/dicts
- dosym ../myspell /usr/share/lyx/thes
- fi
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- font_pkg_postinst
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-
- # fix for bug 91108
- if use latex ; then
- texhash
- fi
-
- # instructions for RTL support. See also bug 168331.
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; 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
- fdo-mime_desktop_database_update
-
- if use latex ; then
- texhash
- fi
-}
diff --git a/app-office/lyx/lyx-2.2.2-r1.ebuild b/app-office/lyx/lyx-2.2.2-r1.ebuild
deleted file mode 100644
index 8463d9662259..000000000000
--- a/app-office/lyx/lyx-2.2.2-r1.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 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="https://www.lyx.org/"
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${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 monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant +qt4 qt5 l10n_he"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}
- qt4? ( !qt5 )
- qt5? ( !qt4 )"
-
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
-
-COMMONDEPEND=">=dev-libs/boost-1.34:=
- ${PYTHON_DEPS}
- qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 dev-qt/qtsvg:4 )
- qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtsvg:5 dev-qt/qtconcurrent:5 )"
-
-RDEPEND="${COMMONDEPEND}
- dev-texlive/texlive-fontsextra
- virtual/imagemagick-tools[png,svg?]
- 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-mathscience dev-texlive/texlive-science )
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra )
- dev-texlive/texlive-fontsrecommended
- || (
- dev-tex/latex2html
- dev-tex/tth
- dev-tex/hevea
- dev-tex/tex4ht[java]
- )
- )
- html? ( dev-tex/html2latex )
- rtf? (
- dev-tex/latex2rtf
- app-text/unrtf
- dev-tex/html2latex
- )
- l10n_he? ( dev-tex/culmus-latex )
- docbook? ( app-text/sgmltools-lite )
- dot? ( media-gfx/graphviz )
- dia? ( app-office/dia )
- subversion? ( dev-vcs/subversion )
- rcs? ( dev-vcs/rcs )
- 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-single-r1_pkg_setup
- font_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/2.1-python.patch
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
- if use qt4; then
- export QT_SELECT=qt4
- elif use qt5; then
- export QT_SELECT=qt5
- fi
-}
-
-src_configure() {
- tc-export CXX
- #bug 221921
- export VARTEXFONTS=${T}/fonts
- local qt_flag=""
- if use qt4; then
- qt_flag=""
- elif use qt5; then
- qt_flag="--enable-qt5"
- fi
-
- econf \
- $(use_enable nls) \
- $(use_enable debug) \
- $(use_enable monolithic-build) \
- $(use_with hunspell) \
- $(use_with aspell) \
- $(use_with enchant) \
- ${qt_flag} \
- --without-included-boost \
- --disable-stdlib-debug \
- --with-packaging=posix
-}
-
-src_install() {
- default
-
- if use l10n_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"
-
- # fix for bug 91108
- if use latex ; then
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die
- fi
-
- # fonts needed for proper math display, see also bug #15629
- font_src_install
-
- python_fix_shebang "${ED}"/usr/share/${PN}
-
- if use hunspell ; then
- dosym ../myspell /usr/share/lyx/dicts
- dosym ../myspell /usr/share/lyx/thes
- fi
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- font_pkg_postinst
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-
- # fix for bug 91108
- if use latex ; then
- texhash
- fi
-
- # instructions for RTL support. See also bug 168331.
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; 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
- fdo-mime_desktop_database_update
-
- if use latex ; then
- texhash
- fi
-}
diff --git a/app-office/lyx/lyx-2.2.3.ebuild b/app-office/lyx/lyx-2.2.3.ebuild
deleted file mode 100644
index 8463d9662259..000000000000
--- a/app-office/lyx/lyx-2.2.3.ebuild
+++ /dev/null
@@ -1,183 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 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="https://www.lyx.org/"
-SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz
- ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${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 monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant +qt4 qt5 l10n_he"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}
- qt4? ( !qt5 )
- qt5? ( !qt4 )"
-
-DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
-
-COMMONDEPEND=">=dev-libs/boost-1.34:=
- ${PYTHON_DEPS}
- qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 dev-qt/qtsvg:4 )
- qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtsvg:5 dev-qt/qtconcurrent:5 )"
-
-RDEPEND="${COMMONDEPEND}
- dev-texlive/texlive-fontsextra
- virtual/imagemagick-tools[png,svg?]
- 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-mathscience dev-texlive/texlive-science )
- || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra )
- dev-texlive/texlive-fontsrecommended
- || (
- dev-tex/latex2html
- dev-tex/tth
- dev-tex/hevea
- dev-tex/tex4ht[java]
- )
- )
- html? ( dev-tex/html2latex )
- rtf? (
- dev-tex/latex2rtf
- app-text/unrtf
- dev-tex/html2latex
- )
- l10n_he? ( dev-tex/culmus-latex )
- docbook? ( app-text/sgmltools-lite )
- dot? ( media-gfx/graphviz )
- dia? ( app-office/dia )
- subversion? ( dev-vcs/subversion )
- rcs? ( dev-vcs/rcs )
- 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-single-r1_pkg_setup
- font_pkg_setup
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/2.1-python.patch
- sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
- if use qt4; then
- export QT_SELECT=qt4
- elif use qt5; then
- export QT_SELECT=qt5
- fi
-}
-
-src_configure() {
- tc-export CXX
- #bug 221921
- export VARTEXFONTS=${T}/fonts
- local qt_flag=""
- if use qt4; then
- qt_flag=""
- elif use qt5; then
- qt_flag="--enable-qt5"
- fi
-
- econf \
- $(use_enable nls) \
- $(use_enable debug) \
- $(use_enable monolithic-build) \
- $(use_with hunspell) \
- $(use_with aspell) \
- $(use_with enchant) \
- ${qt_flag} \
- --without-included-boost \
- --disable-stdlib-debug \
- --with-packaging=posix
-}
-
-src_install() {
- default
-
- if use l10n_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"
-
- # fix for bug 91108
- if use latex ; then
- dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die
- fi
-
- # fonts needed for proper math display, see also bug #15629
- font_src_install
-
- python_fix_shebang "${ED}"/usr/share/${PN}
-
- if use hunspell ; then
- dosym ../myspell /usr/share/lyx/dicts
- dosym ../myspell /usr/share/lyx/thes
- fi
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- font_pkg_postinst
- gnome2_icon_cache_update
- fdo-mime_desktop_database_update
-
- # fix for bug 91108
- if use latex ; then
- texhash
- fi
-
- # instructions for RTL support. See also bug 168331.
- if use l10n_he || has he ${LINGUAS} || has ar ${LINGUAS} ; 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
- fdo-mime_desktop_database_update
-
- if use latex ; then
- texhash
- fi
-}