diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-02-15 20:45:01 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-02-15 20:45:01 +0000 |
commit | 2e739c59eb7ec508e209d128490b8f9eadee78dc (patch) | |
tree | 635f010eceea8e774cec8a9588e2117f56cf6326 /app-office/lyx | |
parent | Don't show elog messages always (#457596) (diff) | |
download | historical-2e739c59eb7ec508e209d128490b8f9eadee78dc.tar.gz historical-2e739c59eb7ec508e209d128490b8f9eadee78dc.tar.bz2 historical-2e739c59eb7ec508e209d128490b8f9eadee78dc.zip |
Depend on app-text/texlive so that the linguas and useflag logic can be reused from this ebuild. Thanks Pavel. Bug #451982
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'app-office/lyx')
-rw-r--r-- | app-office/lyx/ChangeLog | 8 | ||||
-rw-r--r-- | app-office/lyx/Manifest | 9 | ||||
-rw-r--r-- | app-office/lyx/lyx-2.0.5.1-r1.ebuild | 176 |
3 files changed, 188 insertions, 5 deletions
diff --git a/app-office/lyx/ChangeLog b/app-office/lyx/ChangeLog index fe4d37491fd5..7e995a9387ac 100644 --- a/app-office/lyx/ChangeLog +++ b/app-office/lyx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-office/lyx # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.279 2013/01/13 19:20:07 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.280 2013/02/15 20:44:53 aballier Exp $ + +*lyx-2.0.5.1-r1 (15 Feb 2013) + + 15 Feb 2013; Alexis Ballier <aballier@gentoo.org> +lyx-2.0.5.1-r1.ebuild: + Depend on app-text/texlive so that the linguas and useflag logic can be + reused from this ebuild. Thanks Pavel. Bug #451982 *lyx-2.0.5.1 (13 Jan 2013) diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index e15c4ad8b0e6..b0fea6eb4157 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -12,14 +12,15 @@ DIST lyx-2.0.5.tar.xz 10314440 SHA256 d39aada3390a0468b354ec1703f12734bdfe56b08b EBUILD lyx-1.6.10.ebuild 4124 SHA256 98df1f9c29d7caca1604ba633a1284dd48d74d554cbf1c6380b4ec41bac3da5a SHA512 837ef83ae72ba8a6f4550a02320cf7019643af8321d3962103f028ac1c70f651ae0e0e8dc8fb4aadf261cd2a03eac1682b60896f9a755397eeb568799f226883 WHIRLPOOL fe49c93f3f78e847f0be92ca0d4c4833ec5e6df57632762fccc20772d6ad35e81620fd3c379d85d095267b629b2369c4a3a7f05d55ccc0fdd5fa6f90bfd5538c EBUILD lyx-2.0.1.ebuild 4678 SHA256 1435fd3f2146e525a80919a600a698dbcdc6122364b48a00c6fb07c701daec28 SHA512 c6c4b92f21619a7d361a8039fd8c1fdf1c700ebe8c9d5300034e724e55af81646117f4816d48c42040d11ffe2ddcc2fbdcfa28820d02e7b90e48c923d05311b0 WHIRLPOOL 9b7fbcb53be20d49dfad03852a30d9ba49930bd360ed6a742310589baafd3e4259128251bb9a757b87114d79e5dccad04b842f486f95accac508c739f3f1b336 EBUILD lyx-2.0.4.ebuild 4536 SHA256 abd49f88684d1f3d815c286b3ed4396f859abe0e86b9289fd8c0d6e28526493e SHA512 aa67d90fadb2bfd7ff944a72d133e657b8ee386bb52a285d67508e408bdcd5e76f2160bc3f29105d234a29277b3f9ad733c55d348d37d0c7b0a59c4d68888f05 WHIRLPOOL 2d6013583e6bfb846f90ba021db8ee5b48f9511c35c1f5a13d5049a76bfa977107195d44805a3e2fe57cfeb2ec72b0edaf9c89ce185c66b1f0ac70d28738b39c +EBUILD lyx-2.0.5.1-r1.ebuild 4392 SHA256 0957a61002974bd893a85456c26e13ff8616dc90e29adbf136f09a766b445c4f SHA512 721849e049dad70047930776a5b1ea3405fc9c4f1bb95c63bfd365121a9a1e74ae9932713848fbd671c223b0f1cd3dfb81f499b89d1cacd3479d3697c1eaa90c WHIRLPOOL 144eff0591335811cc04b2e9854d543eba95442280c941f18bb3a6da88934b0037b95081094a6b8645d260c307656e52ac8549d4f2ac74a6571042c753295962 EBUILD lyx-2.0.5.1.ebuild 4489 SHA256 6f60b179c99ab21874692dbc88a8ee1620077e451dc877d5b31bc8b37f745c74 SHA512 7fc742ae554dd2a95301f0039f7ce37afb3318f5be4db9dd4b9d2651f51d215c3adb4d45dd6fd20765c514e3bd8fadd3af208894f70e822fab107f5076ff96cb WHIRLPOOL 67c8bbc9d3b586e99b1b466cd2b9648a45fa40a7fbc45c53c22b53aa9001bb0245d52c633c450893d25b931eb1351e37dad6afa5f8d9c621a46430dfafbdb535 EBUILD lyx-2.0.5.ebuild 4487 SHA256 a26a10a9e0b96b839b69c96e61b490d8d166594a61690df039d66f2b7930003d SHA512 92f6d5d60be62812807e17cd109b70e331c3769827763a6ffa2034d112004b04763f8f4e26b026b74279202f3c1d3d18824fda90519e1967e45489cb4f942dfa WHIRLPOOL 91e1c3b881ac4ec4a964065ba8484a3051c1eb1fe83b2e353f1c2068b83770f995c175a0701c19a43c547ea4901879d7925151b65833f766e48818a8f7e502b6 -MISC ChangeLog 37683 SHA256 096eff46291a18217c1b4475e662c443f44a7dd29ecf9ee54cda4fc9278e4630 SHA512 0523ddcb72b076a5ed5ed45cba919b0df400ef89532245adc228f4a5f65c66e6feb1b5d089cb456c860fd7257612ea008326b54d7150ae3a0d413d6962af1577 WHIRLPOOL 5077fd15a956b1c6def64e1ae9e7d6b3a620f474daf2814aae64fda6d2a868512f9d69d79ea55c500000baabad75184ea3903a38ac7610a73f79743183be2010 +MISC ChangeLog 37918 SHA256 28799586b509e3c48ebd43e7b398e403045c9d39c854ed8db739e8cae4d2a38c SHA512 ec6416dbb1f8fe60121be3410b28c916df7934060e4b6ebce5ca8a2ac33af063193fb0abbd66466054b2adad3233d177ea4e75143ef6c97449a9a3074875d893 WHIRLPOOL daf955daf3399a921c668b085b91e33d0d3b248698551c5ec0fc36ee036e2bfec3e0f5dc189c26cbd151a4d39b87db09af5b3e0671fba66ab3777ac25ddf67ba MISC metadata.xml 1572 SHA256 330d0d86b06c6ce15cea6cfdd3bd070bddc82309346902481883575fd211ec14 SHA512 2098b388d76dc4a4f7110a44a99e6d928602fa73f902ef4dc2eeca5c25195db49fd0bd81bd4946209984027814d9aa451a2e0b7109998605fa73a3c4021bc49c WHIRLPOOL 7b1b245a443b71764601f6bf62aa040f00d403dcb877435ca5ff7d9e02116024403f01d2158615546d9fa6fe630cb4ad8e219c39e495c76df87283d4d6618096 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlDzCOkACgkQvFcC4BYPU0rpXgCggThErAIIA5cSHmu0243fbAvQ -GsEAoIsBQ+HnsMUGkw0DneTZyIbY27Wj -=1O3O +iEYEAREIAAYFAlEenkcACgkQvFcC4BYPU0p43QCgodAL/v2M0c1oMYZfZTCfloi8 +D/MAmwfzF2AS2VI6gUmfUEyQIyMoObxs +=v05R -----END PGP SIGNATURE----- diff --git a/app-office/lyx/lyx-2.0.5.1-r1.ebuild b/app-office/lyx/lyx-2.0.5.1-r1.ebuild new file mode 100644 index 000000000000..919ce19db54d --- /dev/null +++ b/app-office/lyx/lyx-2.0.5.1-r1.ebuild @@ -0,0 +1,176 @@ +# 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.5.1-r1.ebuild,v 1.1 2013/02/15 20:44:53 aballier 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.0/rc3/${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 + +COMMONDEPEND="x11-libs/qt-gui:4 + x11-libs/qt-core: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} + 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 +} |