summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2014-07-16 13:44:26 +0000
committerYixun Lan <dlan@gentoo.org>2014-07-16 13:44:26 +0000
commitd19d24e945592e48d248e44a625dc8007ec2e138 (patch)
treede7211cb212c47a1227257773ec5a2fb4ead213a
parentFix handbook USE flag. (diff)
downloadhistorical-d19d24e945592e48d248e44a625dc8007ec2e138.tar.gz
historical-d19d24e945592e48d248e44a625dc8007ec2e138.tar.bz2
historical-d19d24e945592e48d248e44a625dc8007ec2e138.zip
version bump, proxy for @pavel sanda
Package-Manager: portage-2.2.8/cvs/Linux x86_64 Manifest-Sign-Key: 0xAABEFD55
-rw-r--r--app-office/lyx/ChangeLog9
-rw-r--r--app-office/lyx/Manifest32
-rw-r--r--app-office/lyx/lyx-2.0.8.1.ebuild180
-rw-r--r--app-office/lyx/lyx-2.1.1.ebuild180
4 files changed, 386 insertions, 15 deletions
diff --git a/app-office/lyx/ChangeLog b/app-office/lyx/ChangeLog
index 6b5ec463df35..54b472e526b6 100644
--- a/app-office/lyx/ChangeLog
+++ b/app-office/lyx/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-office/lyx
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.309 2014/06/14 10:17:53 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.310 2014/07/16 13:44:14 dlan Exp $
+
+*lyx-2.1.1 (16 Jul 2014)
+*lyx-2.0.8.1 (16 Jul 2014)
+
+ 16 Jul 2014; Yixun Lan <dlan@gentoo.org> +lyx-2.0.8.1.ebuild,
+ +lyx-2.1.1.ebuild:
+ version bump, proxy for @pavel sanda
14 Jun 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> lyx-2.0.7.1-r2.ebuild:
x86 stable wrt bug #505588
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest
index de299aa38217..82b0f1d537bd 100644
--- a/app-office/lyx/Manifest
+++ b/app-office/lyx/Manifest
@@ -9,29 +9,33 @@ AUX 2.1-python.patch 1019 SHA256 a8f93b41bf55f823caec23487aee432bad6e7b55187c6f1
DIST lyx-1.6.10.tar.bz2 12559454 SHA256 dcfb6fc0f6880e706d45ea16459ed2206265179f3882b4685e4955c18adaf569 SHA512 c6d3f18f555e45ef86e22f42f7c8727ad0e1ad2cc4cbf87557f3ef235d894d46c5a87fc5923e2c02a5d9ba342389bf213af156a12c17e3b5f2308b9602b182dc WHIRLPOOL 0543590df1cc353fee939fee83db55aa146418c36c9422faa07cf9a1723002b83deb92f7ff89d49abb4144fe62d0fcf917257c07aaeb0d6e016b39393a8ab542
DIST lyx-2.0.6.tar.xz 10390452 SHA256 a5cb2bedee6e154b50881acd2316cf9d79162d6754e3aa159a6d579f5a828ad2 SHA512 644b69ad591a244ca7ebf4107c2a8dfd58757f7acc942b11e3f9ce253a775f5a713f47f5e430612d3a9e91cb202ad6da17aafbca012d66bdf9bdbb875a26de35 WHIRLPOOL 2ac79a6ec7b9a460ffd84644e6ae3da014028677555678b23c8925b8faccf39166e62ee52907212ee0082dad03c358804290b10b4092a276a0dd7fe30509aaa0
DIST lyx-2.0.7.1.tar.xz 10449732 SHA256 ad77914a96692b4dbbf7bebaddd5f5cea0f1b729458b7475ce55965eb09e4777 SHA512 0314400c13d0a6b02d57521a9ceecfdd7aa0d8d89c527d8b48d36dcc807c6142fb225f4ba2c03ddd83a34b41ecf6ed185a8425b58e9e143973a639044e33f520 WHIRLPOOL dcdc98004120dfb37e68729027d2c8a21fcf9579e5254f1e56447afc43369e2efc8d7a1b769a4c6e9b9938e78e0fe4f1e66a761206c2f21f83cb4a76e6903bbf
+DIST lyx-2.0.8.1.tar.xz 10481988 SHA256 fa0a9c6070554e0d12d24e9b3c4a1e5fc2ee853b3fbe83e2a415635cdc973c59 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 WHIRLPOOL 6a9ef2df39861d373e1c6288f5443f910632a09ed4d84e409efe06459f2f39d3c30462b3a26aafe37c5216b765882e7ab5189e7d164b71def97f50877784754c
DIST lyx-2.0.8.tar.xz 10480012 SHA256 b4bd32cf5f2c374b1ff88b69b53db0a2ba840942df0c3886b295fb2020683b5e SHA512 4600d939c3b34a0b583df22e33bb616cc138c06a42dd7d3a2cfdc89dfe83d56eeef1027e032fa7ef0e31a802349747641fb1e9d1b4403862e978722d35bb33de WHIRLPOOL a8fbd88369cc7cf8e1f6f9e7222c26d153f1e0ddcd3497a1d11b232c15537869133a9b6683e31c7d4191a3eed4e7b38645bbe8a1916e03e49891c81d30c745e7
DIST lyx-2.1.0.tar.xz 10600316 SHA256 f1c9a4f2387e38efee43c0684b4f6fc0972f68d6cb2ad06a1b30c58a81f22d48 SHA512 f586ff6e802a73dc19f48e74dbfe50de1b0ef683fabca111ff46349ade0d39297dfc4413e66f7f8fb8142826a2e844d955eb0d5651bcd97d0138b51140a8ed7f WHIRLPOOL b9dd7ed0d73889b40039c3e76586a66b6b1e7f021d8c85121e566ef779e6aaf81c083fc93e4934b2fcdc5d589851407cdc2810694573fc197c98b539564f9e15
+DIST lyx-2.1.1.tar.xz 10638872 SHA256 ca5bf218bc86deadc9eca22030a96e911b0642b3fa0e359c14891dff7f0b39ba SHA512 72a8b6c4fc1435541aef659ded44fee2f42862c3b02ec168cc5d989e3caa94f277341ede859e37f523e09c36915405cb753d8d8b0cf82d4663473a427f82ba74 WHIRLPOOL adf65c269a062913f64da156796778768849ffa67f325fbb97fba5fedb2374f32fb535ba77e868e150d3dac92fdd1895f56904044d3526b40b97c5a2d712a158
EBUILD lyx-1.6.10.ebuild 4120 SHA256 445c2becd493409edac0a36d3d9d55a6e82cb2cd3a68fe426f19960cfe3ed94c SHA512 b644de0190a2c85dc139ed08bbd47da8428821eee2c4997741301b8a2380927d9eda01d998245b5598db4685c168d9083e45de0adf9f94a285b627035c84ce92 WHIRLPOOL 4c37840e9ba6d643c9271b0148f63f25d1aacf7fb3d5d76c4ca20aa9abb46f10cb6072306c51b213907732e864d5bcef6f74e91a96e344678bf0727b6755de90
EBUILD lyx-2.0.6.ebuild 4453 SHA256 bfff68cf081d1e2a7b47f6074cd30fe8fbd5b3c9d15b87c139e74f1cf50a8c60 SHA512 75d5c6886265dd6463186ca2a1a407c0e5994ea38cb6b7734c34d686f6cf41c26b109e308eaa0d4a16c3256546a259c8ee38fecd332bf377dff33a5d12cc2892 WHIRLPOOL c75712601b5d15c8a5e7be86247790de9a22d01eab68ecde8ff0c4e2ba7d2fc7b91fa69895b40d954676afd76a37bcfe8b4fac3e3455c7f38801c3a967a8fb7f
EBUILD lyx-2.0.7.1-r2.ebuild 4431 SHA256 50d3f51b9e7673c7adf5bf1fce6bfa6059b31622da5f6ff60d2320f61ab4cd0c SHA512 f00e6e915861ce20752b6adc2f11bd572882e5ffc71f7f169e684560927c1a3d9976fe6cce8a58237dff8791645a712d2c3d8155947ef520e09bd9bfc6284453 WHIRLPOOL 9464d1bec45abd7a46d6e5613ea914d3b7122afa91300748bb874b560d701b6ff2fce3259980bbb412102a0dd858a80aa6d012504c83730668686068fa7c3875
+EBUILD lyx-2.0.8.1.ebuild 4489 SHA256 5cd2cd9d932e2d363df7bc38dca0c229e6fb918e3a3db8ac4d0df77b02b00b7d SHA512 55af60e0380d29ab19ca0c0d1c0b24017a8b1cacbe093c52b50ef5dc84707aff5f507efe4145195fccc48170b876adb88806fdd7c4b5bc7152fe8116a77edb41 WHIRLPOOL cf213e5e8991f01de04ee6656da54b18c8e0bc3de7cd50df8f18fdfe5730a7c61cd08dbca72584cfb05fa06d678bdf52c332b7a620e59bf2fb65a2b8e5255d7e
EBUILD lyx-2.0.8.ebuild 4487 SHA256 a4ac6b4994118b599e82c82e7a07b730eff6c3b55288982f256dcebe3fc0468e SHA512 56217aaba37210887846d53ec3546ef38dedc1327ffa2d92b5992dfeba07e3f927eff14552259ed5e88efaf1c17b33ca4b28708268c132796b4fe37184d2ac8b WHIRLPOOL 8f41bf0520a03ca08feb262996d9ae225cb861d9abe34b801b49b779c2e615197819b1d47304b3979f5471dd3062b244f0aebe0780cd07c04de30baf0bb767a2
EBUILD lyx-2.1.0.ebuild 4480 SHA256 5c188ef00875cece50d39657cc1973f86fb20e941adbafaac15dbbb6c7f01afe SHA512 609cd83faea063cd4918ff5585e086c79f179ecb645650f30b653234ab5869be26c35daf75bd2f2faf6a483b77ec9485a3018cb3579e9301854d24707632d7a4 WHIRLPOOL fca42705b074636bc55abba541e14fb92cd43c52ff7c59c59e99c2125f25fd2122715ccc9929d3f89fd33072cefe6510eabe1beb5e966aeab56f869193859c70
-MISC ChangeLog 41646 SHA256 a53c0dc17a43249c7b950f827383160568f51b7d8c1447853eff253d3efc32fa SHA512 a85041bde2750dabe67eb91d0323e41d1d963ca3b62f0d1f9a75464e22d9e486132ca914d596f52e53cf5daa6c79dfaec2cc7a660cc71907aee42a64ee2ac49d WHIRLPOOL a832f39bfb4aef20b2bc1a4fd786763357f7f1a93829d2618bdd737e45ff565b7df6c1d2631db135d357c9965b3fd686897903021ffe862f14d59d48b0dbc474
+EBUILD lyx-2.1.1.ebuild 4480 SHA256 616dcbfe05bcaee3914a0dbf88dcd9ebe8964a6b73934e668b548f976ad75b2a SHA512 539214607a15d590530ce90aaa138dc6c2118476f5961422ad9947516a6c9ce1b34ec20cea12be991fcc0add58baccbcb7e17aba14030f0cd4c017176492acc0 WHIRLPOOL f1f88c87ccfea59508ab4a3fed5bbab1742982dbe305226d89177c1d64bbee453c406707788cbc352072f2ab3ed3fa401370e37d00979d5d8b6dba862f0c44e3
+MISC ChangeLog 41818 SHA256 74588e61dc90f4f196571935d65f739697e97f5241502f3b2e379071b8a738cb SHA512 e1400b5692ad496c1b5d7c6b879ed055dc1c041e35616d3b3b9c3e67a9738903efd2fb81faa947c58b2ba0947244434040c5fe2fab0fafb1dedce90e5eb7e303 WHIRLPOOL 1c334b5f54eb294cae454a310a1c7eedc5fb781c5d0ad3cb85c8da30575f9fad4fc712e61149d4eabcafe8db4d034975882ac84a724bd266ecb0db6b44835e25
MISC metadata.xml 1593 SHA256 3e74c09403c8d71ae2b00d906fda9b9a1006ffe046f1a8f4f7e19fe84334cc65 SHA512 17fbf8f40fce9fceff58ce79abe827effd4e0822d4df584eeec9b0ee1989122bc0762f09d93a9f09334cc926e1b553f765325361cddddf2f071e0a848e280ab8 WHIRLPOOL db6ecebaa791225e7d918b90cc4998b4585d148426f9565b63fdff5472f5e472c7afbb2c7c7e82763d3501711741b9782a8878461c238f35f092cd3050cc98af
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJTnCFSAAoJEE8aJVXqcZkdqggQAIDDppGCsb4Ul+5Ldz9ocKPW
-fNDFGHlWAmeYsyftc6graCPeX0ZFkGZQtuB/V71ZF4F+xGIVxt20LiHhPhZE+MJN
-ETN1OymUydawt0NV3HuCsX+JFGtf0ozOLK71PtgGzPvr33XuTp2SyexozMM+cTBE
-NQKyC4hUzzjfdA2NQw74aGTH7orRKc/tmzOpIjZIEy8QVEVJMB2vLYal2j0M63JI
-JFuW6GMwGQUGuHFz2OjLjy8osqypTIGpYaLWEJlqzHtH9yS75eoVjhVX3YKzOOAH
-uwsvUGL3McOnFckmE2U57BJSY5QDjTbO6/AX/0F/Zzoa7YHLIqJZ7LYqJe7j36KD
-YfXRLEAiXtELXi/Vjz/dcdaaWmigNaH0Yizemcxh8A5Yexk5iCpLZqGWOhKj+8Q6
-z0dytIsrEAsbuq5swDkJkO/T/CS0CtZ+F6Dyk2cTnVWWiMo/S6peZWs6x1Isoi+1
-jtjIgmTMBJfjRYE66t6d0bCRw3hoSTT8MNi7f5/pblKBopWnP+XnUnfFwOr4LSzB
-DexmzorkRo0swDnLhPFSC3eEz7Gcp8Qfcy33zLNGm8t88HdP0ElcB0U1ul75F3Re
-W24swg9fYIMzK+iMWkd3b/vLB1DaAlQ6puzaJMk6rnwIa5NcOVNGzCBaGqKhVcPl
-WEaFIzZshvFmO0zZR7r1
-=I+TE
+iQIcBAEBCAAGBQJTxoHMAAoJEJIMDbyqvv1VfgsP/0tru2Pv4PyKnxXL9sQqGp+l
+OFKyaqVeM3+de0VH5ML17JLBPJfa2rZAlZmZuJBSKmR8HiMnrZtYzTjIz0VCc3DQ
+WyTayUO8k53iCCx0hWwoKYzxeUH/ADHraRTHrdeWb+Xpr1aRHqdKRJxJ9rWi013l
+T3lyMSbZWXbwFpJzJ9dOwptvsQNu+Qv9de9l28vgZF9NJ4NvgpSLQ4/IB7M9396B
+sEEoquPzd/a+mLot0+3ATBoe4M1DrlQFW8Vil0syB7x+rTilkg7cpUOo5bQXAXRL
+sguNbMTems/gJwXbE/WAChTwnEugiKlztaiDreyW/khmx4mVFCGabm+LxlD8xJd2
+tPPe/v8vaLyeo/t8r620wGvUwFy98NkjMjC0/XTTjVYBSZjNcIFyGwpCH87Cm/HC
+FHVzgx+1CCa75kGf0X9gt+zFm7QeqcFQNbCatdj7EejKbfJAxrsd4qNDGUgtPDDK
+DbPriAKNVBWY3guFty3nmaBN8TYxM86v1hMZGwnBT7OnpPZSCvHPF3V/E5KxzVjE
+H/Pvx+O8vBfuchQUcQZ58aEn4npH0Z15Z+GEwu4ioM1XJyc8yqakX48PfAgw3N6B
+at9oDDc4HSZog7kpZ6/YpckMkiGVBkDNW/hPobYIFzh91kbemUSWyQfkbjioqiEi
+dJ1z2Kh1mQgBQfmdtG1n
+=R9gx
-----END PGP SIGNATURE-----
diff --git a/app-office/lyx/lyx-2.0.8.1.ebuild b/app-office/lyx/lyx-2.0.8.1.ebuild
new file mode 100644
index 000000000000..e74bcde306b9
--- /dev/null
+++ b/app-office/lyx/lyx-2.0.8.1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.0.8.1.ebuild,v 1.1 2014/07/16 13:44:14 dlan Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_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="http://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"
+
+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
+
+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
+ || ( 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[java]
+ )
+ )
+ 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-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 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-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 /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
+ 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 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
+ fdo-mime_desktop_database_update
+
+ if use latex ; then
+ texhash
+ fi
+}
diff --git a/app-office/lyx/lyx-2.1.1.ebuild b/app-office/lyx/lyx-2.1.1.ebuild
new file mode 100644
index 000000000000..e4ea83de2611
--- /dev/null
+++ b/app-office/lyx/lyx-2.1.1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.1.1.ebuild,v 1.1 2014/07/16 13:44:14 dlan Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_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="http://www.lyx.org/"
+SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/${MY_P}.tar.xz
+ ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/${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"
+
+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
+
+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
+ || ( 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[java]
+ )
+ )
+ 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 )
+ 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-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
+}
+
+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 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-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 /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
+ 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 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
+ fdo-mime_desktop_database_update
+
+ if use latex ; then
+ texhash
+ fi
+}