Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 142336
Collapse All | Expand All

(-)lyx-1.4.1-r1.ebuild (-25 / +22 lines)
Lines 56-83 Link Here
56
	dev-lang/python
56
	dev-lang/python
57
	>=sys-devel/autoconf-2.58
57
	>=sys-devel/autoconf-2.58
58
	cjk? ( =x11-libs/qt-3* )
58
	cjk? ( =x11-libs/qt-3* )
59
	!cjk? (
59
	!cjk? ( qt3? ( =x11-libs/qt-3* )
60
		qt3? ( =x11-libs/qt-3* )
60
		!qt3? (
61
		!qt3? ( =x11-libs/xforms-1* )
61
			gtk? ( >=dev-cpp/gtkmm-2.4
62
	)
62
				>=dev-cpp/libglademm-2.4 )
63
	gtk? (
63
			!gtk? ( =x11-libs/xforms-1* ) ) )"
64
		>=dev-cpp/gtkmm-2.4
65
		>=dev-cpp/libglademm-2.4
66
	)"
67
64
68
src_unpack() {
65
src_unpack() {
69
	unpack ${P}.tar.bz2 || die "unpacking lyx failed"
66
	unpack ${P}.tar.bz2 || die "unpacking lyx failed"
70
	unpack latex-xft-fonts-0.1.tar.gz || die "unpacking xft-fonts failed"
67
	unpack latex-xft-fonts-0.1.tar.gz || die "unpacking xft-fonts failed"
71
	cd ${S}
68
	cd "${S}"
72
	epatch ${FILESDIR}/${P}-gentoo.patch || die
69
	epatch "${FILESDIR}"/${P}-gentoo.patch || die
73
	# bug #125309
70
	# bug #125309
74
	epatch ${FILESDIR}/${P}-dvips-R0.patch || die
71
	epatch "${FILESDIR}"/${P}-dvips-R0.patch || die
75
	if use cjk ; then
72
	if use cjk ; then
76
		einfo
73
		einfo
77
		einfo "CJK-LyX now only supports the qt frontend"
74
		einfo "CJK-LyX now only supports the qt frontend"
78
		einfo "the xforms frontend has been removed."
75
		einfo "the xforms frontend has been removed."
79
		einfo
76
		einfo
80
		epatch ${DISTDIR}/CJK-LyX-qt-${PV}-2.patch || die
77
		epatch "${DISTDIR}"/CJK-LyX-qt-${PV}-2.patch || die
81
	fi
78
	fi
82
	elibtoolize || die "elibtoolize failed "
79
	elibtoolize || die "elibtoolize failed "
83
}
80
}
Lines 94-100 Link Here
94
		ewarn "GTK support for lyx is currently not feature complete."
91
		ewarn "GTK support for lyx is currently not feature complete."
95
		ewarn "Don't report any bugs about missing or faulty features to gentoo,"
92
		ewarn "Don't report any bugs about missing or faulty features to gentoo,"
96
		ewarn "instead you have the option of turning GTK support off by removing"
93
		ewarn "instead you have the option of turning GTK support off by removing"
97
		ewarn "the gtk use flag or enable the gt use flag"
94
		ewarn "the gtk use flag or enable the qt3 use flag"
98
		ewarn "(or help implement the missing features at lyx.org)"
95
		ewarn "(or help implement the missing features at lyx.org)"
99
		ewarn
96
		ewarn
100
		myconf="$myconf --with-frontend=gtk"
97
		myconf="$myconf --with-frontend=gtk"
Lines 105-111 Link Here
105
	export WANT_AUTOCONF=2.5
102
	export WANT_AUTOCONF=2.5
106
103
107
	append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)"
104
	append-flags "$(test-flags -fno-stack-protector -fno-stack-protector-all)"
108
	filter-flags "-Os"
105
	replace-flags "-Os" "-O2"
109
	econf \
106
	econf \
110
		$(use_enable nls) \
107
		$(use_enable nls) \
111
		$(use_enable debug) \
108
		$(use_enable debug) \
Lines 123-154 Link Here
123
	dodoc README* UPGRADING ChangeLog NEWS ANNOUNCE ABOUT-NLS ${DISTDIR}/preferences
120
	dodoc README* UPGRADING ChangeLog NEWS ANNOUNCE ABOUT-NLS ${DISTDIR}/preferences
124
121
125
	insinto /usr/share/lyx/bind
122
	insinto /usr/share/lyx/bind
126
	doins ${DISTDIR}/hebrew.bind
123
	doins "${DISTDIR}"/hebrew.bind
127
124
128
	domenu ${FILESDIR}/lyx.desktop
125
	domenu "${FILESDIR}"/lyx.desktop
129
126
130
	# install the latex-xft fonts, which should fix
127
	# install the latex-xft fonts, which should fix
131
	# the problems outlined in bug #15629
128
	# the problems outlined in bug #15629
132
	# <obz@gentoo.org>
129
	# <obz@gentoo.org>
133
	cd ${WORKDIR}/latex-xft-fonts-0.1
130
	cd "${WORKDIR}"/latex-xft-fonts-0.1
134
	make DESTDIR=${D} install || die "Font installation failed"
131
	make DESTDIR="${D}" install || die "Font installation failed"
135
132
136
	mkfontscale ${D}/usr/share/fonts/latex-xft-fonts
133
	mkfontscale "${D}"/usr/share/fonts/latex-xft-fonts
137
	mkfontdir -e /usr/share/fonts/encodings \
134
	mkfontdir -e /usr/share/fonts/encodings \
138
		-e /usr/share/fonts/encodings/large \
135
		-e /usr/share/fonts/encodings/large \
139
		-e /usr/X11R6/$(get_libdir)/X11/fonts/encodings \
136
		-e /usr/$(get_libdir)/X11/fonts/encodings \
140
		${D}/usr/share/fonts/latex-xft-fonts
137
		"${D}"/usr/share/fonts/latex-xft-fonts
141
	HOME=/root fc-cache -f ${D}/usr/share/fonts/latex-xft-fonts
138
	HOME=/root fc-cache -f "${D}"/usr/share/fonts/latex-xft-fonts
142
139
143
	# bug #102310
140
	# bug #102310
144
	if use gnome ; then
141
	if use gnome ; then
145
		insinto /usr/share/icons/gnome/48x48/mimetypes
142
		insinto /usr/share/icons/gnome/48x48/mimetypes
146
		doins ${FILESDIR}/gnome-mime-application-x-lyx.png
143
		doins "${FILESDIR}"/gnome-mime-application-x-lyx.png
147
	fi
144
	fi
148
145
149
	# fix for bug 91108
146
	# fix for bug 91108
150
	dodir /usr/share/texmf/tex/latex
147
	dodir /usr/share/texmf/tex/latex
151
	cd ${D}/usr/share/texmf/tex/latex
148
	cd "${D}"/usr/share/texmf/tex/latex
152
	ln -s ../../../lyx/tex lyx
149
	ln -s ../../../lyx/tex lyx
153
}
150
}
154
151
Lines 170-176 Link Here
170
	einfo "3. use lyx's qt interface (compile with USE=qt3) for maximum effect."
167
	einfo "3. use lyx's qt interface (compile with USE=qt3) for maximum effect."
171
	einfo ""
168
	einfo ""
172
169
173
	if ! useq qt3 ; then
170
	if ! use qt3 ; then
174
		einfo ""
171
		einfo ""
175
		einfo "If you have a multi-head setup not using xinerama you can only use lyx"
172
		einfo "If you have a multi-head setup not using xinerama you can only use lyx"
176
		einfo "on the 2nd head if not using qt (maybe due to a xforms bug). See bug #40392."
173
		einfo "on the 2nd head if not using qt (maybe due to a xforms bug). See bug #40392."

Return to bug 142336