View | Details | Raw Unified
Collapse All | Expand All

(-) lyx-1.4.1-r1.ebuild (-25 / +22 lines)
 Lines 56-83    Link Here 
	dev-lang/python
	dev-lang/python
	>=sys-devel/autoconf-2.58
	>=sys-devel/autoconf-2.58
	cjk? ( =x11-libs/qt-3* )
	cjk? ( =x11-libs/qt-3* )
	!cjk? (
	!cjk? ( qt3? ( =x11-libs/qt-3* )
		qt3? ( =x11-libs/qt-3* )
		!qt3? (
		!qt3? ( =x11-libs/xforms-1* )
			gtk? ( >=dev-cpp/gtkmm-2.4
	)
				>=dev-cpp/libglademm-2.4 )
	gtk? (
			!gtk? ( =x11-libs/xforms-1* ) ) )"
		>=dev-cpp/gtkmm-2.4
		>=dev-cpp/libglademm-2.4
	)"
src_unpack() {
src_unpack() {
	unpack ${P}.tar.bz2 || die "unpacking lyx failed"
	unpack ${P}.tar.bz2 || die "unpacking lyx failed"
	unpack latex-xft-fonts-0.1.tar.gz || die "unpacking xft-fonts failed"
	unpack latex-xft-fonts-0.1.tar.gz || die "unpacking xft-fonts failed"
	cd ${S}
	cd "${S}"
	epatch ${FILESDIR}/${P}-gentoo.patch || die
	epatch "${FILESDIR}"/${P}-gentoo.patch || die
	# bug #125309
	# bug #125309
	epatch ${FILESDIR}/${P}-dvips-R0.patch || die
	epatch "${FILESDIR}"/${P}-dvips-R0.patch || die
	if use cjk ; then
	if use cjk ; then
		einfo
		einfo
		einfo "CJK-LyX now only supports the qt frontend"
		einfo "CJK-LyX now only supports the qt frontend"
		einfo "the xforms frontend has been removed."
		einfo "the xforms frontend has been removed."
		einfo
		einfo
		epatch ${DISTDIR}/CJK-LyX-qt-${PV}-2.patch || die
		epatch "${DISTDIR}"/CJK-LyX-qt-${PV}-2.patch || die
	fi
	fi
	elibtoolize || die "elibtoolize failed "
	elibtoolize || die "elibtoolize failed "
}
}
 Lines 94-100    Link Here 
		ewarn "GTK support for lyx is currently not feature complete."
		ewarn "GTK support for lyx is currently not feature complete."
		ewarn "Don't report any bugs about missing or faulty features to gentoo,"
		ewarn "Don't report any bugs about missing or faulty features to gentoo,"
		ewarn "instead you have the option of turning GTK support off by removing"
		ewarn "instead you have the option of turning GTK support off by removing"
		ewarn "the gtk use flag or enable the gt use flag"
		ewarn "the gtk use flag or enable the qt3 use flag"
		ewarn "(or help implement the missing features at lyx.org)"
		ewarn "(or help implement the missing features at lyx.org)"
		ewarn
		ewarn
		myconf="$myconf --with-frontend=gtk"
		myconf="$myconf --with-frontend=gtk"
 Lines 105-111    Link Here 
	export WANT_AUTOCONF=2.5
	export WANT_AUTOCONF=2.5
	append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)"
	append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)"
	filter-flags "-Os"
	replace-flags "-Os" "-O2"
	econf \
	econf \
		$(use_enable nls) \
		$(use_enable nls) \
		$(use_enable debug) \
		$(use_enable debug) \
 Lines 123-154    Link Here 
	dodoc README* UPGRADING ChangeLog NEWS ANNOUNCE ABOUT-NLS ${DISTDIR}/preferences
	dodoc README* UPGRADING ChangeLog NEWS ANNOUNCE ABOUT-NLS ${DISTDIR}/preferences
	insinto /usr/share/lyx/bind
	insinto /usr/share/lyx/bind
	doins ${DISTDIR}/hebrew.bind
	doins "${DISTDIR}"/hebrew.bind
	domenu ${FILESDIR}/lyx.desktop
	domenu "${FILESDIR}"/lyx.desktop
	# install the latex-xft fonts, which should fix
	# install the latex-xft fonts, which should fix
	# the problems outlined in bug #15629
	# the problems outlined in bug #15629
	# <obz@gentoo.org>
	# <obz@gentoo.org>
	cd ${WORKDIR}/latex-xft-fonts-0.1
	cd "${WORKDIR}"/latex-xft-fonts-0.1
	make DESTDIR=${D} install || die "Font installation failed"
	make DESTDIR="${D}" install || die "Font installation failed"
	mkfontscale ${D}/usr/share/fonts/latex-xft-fonts
	mkfontscale "${D}"/usr/share/fonts/latex-xft-fonts
	mkfontdir -e /usr/share/fonts/encodings \
	mkfontdir -e /usr/share/fonts/encodings \
		-e /usr/share/fonts/encodings/large \
		-e /usr/share/fonts/encodings/large \
		-e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \
		-e /usr/$(get_libdir)/X11/fonts/encodings \
		${D}/usr/share/fonts/latex-xft-fonts
		"${D}"/usr/share/fonts/latex-xft-fonts
	HOME=/root fc-cache -f ${D}/usr/share/fonts/latex-xft-fonts
	HOME=/root fc-cache -f "${D}"/usr/share/fonts/latex-xft-fonts
	# bug #102310
	# bug #102310
	if use gnome ; then
	if use gnome ; then
		insinto /usr/share/icons/gnome/48x48/mimetypes
		insinto /usr/share/icons/gnome/48x48/mimetypes
		doins ${FILESDIR}/gnome-mime-application-x-lyx.png
		doins "${FILESDIR}"/gnome-mime-application-x-lyx.png
	fi
	fi
	# fix for bug 91108
	# fix for bug 91108
	dodir /usr/share/texmf/tex/latex
	dodir /usr/share/texmf/tex/latex
	cd ${D}/usr/share/texmf/tex/latex
	cd "${D}"/usr/share/texmf/tex/latex
	ln -s ../../../lyx/tex lyx
	ln -s ../../../lyx/tex lyx
}
}
 Lines 170-176    Link Here 
	einfo "3. use lyx's qt interface (compile with USE=qt3) for maximum effect."
	einfo "3. use lyx's qt interface (compile with USE=qt3) for maximum effect."
	einfo ""
	einfo ""
	if ! useq qt3 ; then
	if ! use qt3 ; then
		einfo ""
		einfo ""
		einfo "If you have a multi-head setup not using xinerama you can only use lyx"
		einfo "If you have a multi-head setup not using xinerama you can only use lyx"
		einfo "on the 2nd head if not using qt (maybe due to a xforms bug). See bug #40392."
		einfo "on the 2nd head if not using qt (maybe due to a xforms bug). See bug #40392."