From fc321e2b9e0fa2c81362b2ed98451d5a5ebe864a Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Mon, 5 May 2008 22:37:15 +0200 Subject: [PATCH] app-office/lyx: add -9999 ebuild, make it even works ;o --- app-office/lyx/Manifest | 1 + app-office/lyx/lyx-9999.ebuild | 152 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 app-office/lyx/lyx-9999.ebuild diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index 8606d34..7e387e6 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -5,3 +5,4 @@ DIST latex-xft-fonts-0.1.tar.gz 91730 RMD160 0a516eeba71ddc474e97f315e45e41028ef DIST lyx-1.5.4.tar.bz2 9045016 RMD160 fca3cb9c9c9437e879c8abea820fbd28a5d1d72d SHA1 75c2be653b64eedeb443caf2b0401fb74a15e908 SHA256 6c8b9aafc287ee683b68ebb08166e660e27af9942a30291f14c18de39aca8f2b DIST preferences 1669 RMD160 26986d7bcc48c4ecf60f84d95490148a5e171785 SHA1 3567ad4d4a2a041c295e40fef76ca53de6cb260d SHA256 41867ac67bc729d1057253bf305aced1ff666ee4d648dfefc99fd0c3c0501d43 EBUILD lyx-1.5.4.ebuild 3242 RMD160 405c1f9b3c4e0ca64d590ddfc902f5ce37b54926 SHA1 e12df5e3db578b4c32c8a11e2fdfb28ccc8eb37d SHA256 9d969574de467af78efd093ba4595a498081eab5e5280d92e0617b186e8e1a41 +EBUILD lyx-9999.ebuild 3343 RMD160 9faba9993a2f6f0bf293ea7b4ebbffd9f1ce0b52 SHA1 1d0c55611ec56b1db7fc124b5fc205708d58396f SHA256 b906c81a5df52747dd80e2a400c799e5496f20a631be437a8285b2dcd6390954 diff --git a/app-office/lyx/lyx-9999.ebuild b/app-office/lyx/lyx-9999.ebuild new file mode 100644 index 0000000..3806b5d --- /dev/null +++ b/app-office/lyx/lyx-9999.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" + +inherit subversion eutils flag-o-matic font toolchain-funcs + +FONT_P="latex-xft-fonts-0.1" + +DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." +HOMEPAGE="http://www.lyx.org/" +ESVN_REPO_URI="svn://svn.lyx.org/lyx/lyx-devel/trunk" +SRC_URI="ftp://ftp.lyx.org/pub/lyx/contrib/${FONT_P}.tar.gz + linguas_he? ( + http://cs.haifa.ac.il/~dekelts/lyx/files/hebrew.bind + http://cs.haifa.ac.il/~dekelts/lyx/files/preferences + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" +IUSE="cups debug nls pch linguas_he latex" +RESTRICT="test" + +RDEPEND="|| ( + ( + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + ) + =x11-libs/qt-4.3* + ) + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXrender + x11-libs/libXfixes + x11-libs/libXext + x11-libs/libSM + x11-libs/libICE + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + media-gfx/imagemagick + media-libs/libpng + media-libs/fontconfig + media-libs/freetype + dev-libs/libxml2 + dev-libs/boost + app-text/aiksaurus + app-text/sgmltools-lite + virtual/aspell-dict + virtual/python + cups? ( virtual/lpr ) + latex? ( + virtual/latex-base + virtual/ghostscript + app-text/noweb + dev-tex/dvipost + dev-tex/chktex + || ( + dev-tex/latex2html + dev-tex/tth + dev-tex/hevea + dev-tex/tex4ht + ) + ) + linguas_he? ( dev-tex/ivritex )" + +DEPEND="${RDEPEND} + x11-proto/xproto + nls? ( sys-devel/gettext )" + +S="${WORKDIR}"/${P} + +src_unpack() { + subversion_fetch || die "Fetch with SVN failed kthnx." + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.5.0-gentoo.patch || die +} + +src_compile() { + append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)" + replace-flags "-Os" "-O2" + tc-export CXX + + unset LINGUAS + + econf \ + $(use_enable nls) \ + $(use_enable debug) \ + $(use_enable pch) \ + --with-aspell --without-included-boost || die "econf failed" + emake || die "emake failed" +} + +src_install() { + local mylinguas="${LINGUAS}" + + unset LINGUAS + emake DESTDIR="${D}" install || die "emake install failed" + + LINGUAS="${mylinguas}" + + dodoc ANNOUNCE ChangeLog NEWS README RELEASE-NOTES UPGRADING + + if use linguas_he ; then + insinto /usr/share/lyx/bind + doins "${DISTDIR}"/hebrew.bind + dodoc "${DISTDIR}"/preferences + fi + + domenu "${FILESDIR}"/lyx.desktop + + cd "${WORKDIR}"/${FONT_P} + emake DESTDIR="${D}" install || die "Font installation failed" + + font_src_install + + if use latex ; then + dosym ../../../lyx/tex /usr/share/texmf/tex/latex/lyx + fi +} + +pkg_postinst() { + font_pkg_postinst + + if use latex ; then + texhash + fi + + if use linguas_he ; then + elog + elog "How to use Hebrew in LyX:" + elog "bunzip2 /usr/share/doc/${PF}/preferences.bz2 into ~/.lyx/preferences" + elog "or, read http://cs.haifa.ac.il/~dekelts/lyx/instructions2.html" + elog "for instructions on using lyx's own preferences dialog to equal effect." + elog + fi + + elog + elog "There are known issues in the case of 1.4->1.5 config files transition." + elog "In case your File->Export list is incomplete try reconfiguring or even" + elog "remove the old configuration files in ~/.lyx ." + elog +} + +pkg_postrm() { + if use latex ; then + texhash + fi +} -- 2.11.4.GIT