Lines 1-10
Link Here
|
1 |
# Copyright 1999-2017 Gentoo Foundation |
1 |
# Copyright 1999-2017 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=5 |
4 |
EAPI=6 |
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python2_7 ) |
6 |
PYTHON_COMPAT=( python2_7 ) |
7 |
inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs |
7 |
inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 qmake-utils toolchain-funcs |
8 |
|
8 |
|
9 |
MY_P="${P/_}" |
9 |
MY_P="${P/_}" |
10 |
|
10 |
|
Lines 12-25
Link Here
|
12 |
FONT_S="${S}/lib/fonts" |
12 |
FONT_S="${S}/lib/fonts" |
13 |
FONT_SUFFIX="ttf" |
13 |
FONT_SUFFIX="ttf" |
14 |
DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
14 |
DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc." |
15 |
HOMEPAGE="http://www.lyx.org/" |
15 |
HOMEPAGE="https://www.lyx.org/" |
16 |
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz |
16 |
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/${MY_P}.tar.xz |
17 |
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${MY_P}.tar.xz" |
17 |
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.2/${MY_P}/${MY_P}.tar.xz" |
18 |
|
18 |
|
19 |
LICENSE="GPL-2" |
19 |
LICENSE="GPL-2" |
20 |
SLOT="0" |
20 |
SLOT="0" |
21 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" |
21 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" |
22 |
IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant +qt4 qt5" |
22 |
IUSE="aspell cups debug docbook dia dot enchant gnumeric html +hunspell +latex monolithic-build nls +qt5 rcs rtf subversion svg" |
23 |
|
23 |
|
24 |
LANGS="ar ca cs da de el en es eu fi fr gl he hu ia id it ja nb nn pl pt_BR pt_PT ro ru sk sr sv tr uk zh_CN zh_TW" |
24 |
LANGS="ar ca cs da de el en es eu fi fr gl he hu ia id it ja nb nn pl pt_BR pt_PT ro ru sk sr sv tr uk zh_CN zh_TW" |
25 |
|
25 |
|
Lines 27-88
Link Here
|
27 |
IUSE="${IUSE} linguas_${X}" |
27 |
IUSE="${IUSE} linguas_${X}" |
28 |
done |
28 |
done |
29 |
|
29 |
|
30 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} |
30 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
31 |
qt4? ( !qt5 ) |
|
|
32 |
qt5? ( !qt4 )" |
33 |
|
31 |
|
34 |
DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
32 |
RDEPEND="${PYTHON_DEPS} |
35 |
|
33 |
dev-libs/boost:= |
36 |
COMMONDEPEND=">=dev-libs/boost-1.34:= |
|
|
37 |
${PYTHON_DEPS} |
38 |
qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 dev-qt/qtsvg:4 ) |
39 |
qt5? ( dev-qt/qtgui:5 dev-qt/qtcore:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtsvg:5 dev-qt/qtconcurrent:5 )" |
40 |
|
41 |
RDEPEND="${COMMONDEPEND} |
42 |
dev-texlive/texlive-fontsextra |
34 |
dev-texlive/texlive-fontsextra |
|
|
35 |
sys-apps/file |
36 |
sys-libs/zlib |
43 |
virtual/imagemagick-tools[png,svg?] |
37 |
virtual/imagemagick-tools[png,svg?] |
|
|
38 |
aspell? ( app-text/aspell ) |
44 |
cups? ( net-print/cups ) |
39 |
cups? ( net-print/cups ) |
|
|
40 |
dia? ( app-office/dia ) |
41 |
docbook? ( app-text/sgmltools-lite ) |
42 |
dot? ( media-gfx/graphviz ) |
43 |
enchant? ( app-text/enchant ) |
44 |
gnumeric? ( app-office/gnumeric ) |
45 |
html? ( dev-tex/html2latex ) |
46 |
hunspell? ( app-text/hunspell ) |
45 |
latex? ( |
47 |
latex? ( |
46 |
app-text/texlive |
48 |
app-text/dvipng |
47 |
app-text/ghostscript-gpl |
49 |
app-text/ghostscript-gpl |
48 |
app-text/noweb |
50 |
app-text/noweb |
49 |
app-text/dvipng |
|
|
50 |
dev-tex/dvipost |
51 |
dev-tex/chktex |
52 |
app-text/ps2eps |
51 |
app-text/ps2eps |
|
|
52 |
app-text/texlive |
53 |
dev-tex/chktex |
54 |
dev-tex/dvipost |
55 |
dev-texlive/texlive-fontsrecommended |
53 |
dev-texlive/texlive-latexextra |
56 |
dev-texlive/texlive-latexextra |
54 |
dev-texlive/texlive-pictures |
57 |
dev-texlive/texlive-pictures |
55 |
|| ( dev-texlive/texlive-mathscience dev-texlive/texlive-science ) |
58 |
|| ( dev-texlive/texlive-mathscience dev-texlive/texlive-science ) |
56 |
|| ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra ) |
59 |
|| ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericextra ) |
57 |
dev-texlive/texlive-fontsrecommended |
|
|
58 |
|| ( |
60 |
|| ( |
59 |
dev-tex/latex2html |
|
|
60 |
dev-tex/tth |
61 |
dev-tex/hevea |
61 |
dev-tex/hevea |
|
|
62 |
dev-tex/latex2html |
62 |
dev-tex/tex4ht[java] |
63 |
dev-tex/tex4ht[java] |
|
|
64 |
dev-tex/tth |
63 |
) |
65 |
) |
64 |
) |
66 |
) |
65 |
html? ( dev-tex/html2latex ) |
|
|
66 |
rtf? ( |
67 |
dev-tex/latex2rtf |
68 |
app-text/unrtf |
69 |
dev-tex/html2latex |
70 |
) |
71 |
linguas_he? ( dev-tex/culmus-latex ) |
67 |
linguas_he? ( dev-tex/culmus-latex ) |
72 |
docbook? ( app-text/sgmltools-lite ) |
68 |
!qt5? ( |
73 |
dot? ( media-gfx/graphviz ) |
69 |
dev-qt/qtcore:4 |
74 |
dia? ( app-office/dia ) |
70 |
dev-qt/qtgui:4 |
75 |
subversion? ( dev-vcs/subversion ) |
71 |
) |
|
|
72 |
qt5? ( |
73 |
dev-qt/qtcore:5 |
74 |
dev-qt/qtgui:5 |
75 |
dev-qt/qtsvg:5 |
76 |
dev-qt/qtwidgets:5 |
77 |
) |
76 |
rcs? ( dev-vcs/rcs ) |
78 |
rcs? ( dev-vcs/rcs ) |
|
|
79 |
rtf? ( |
80 |
app-text/unrtf |
81 |
dev-tex/html2latex |
82 |
dev-tex/latex2rtf |
83 |
) |
84 |
subversion? ( dev-vcs/subversion ) |
77 |
svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) ) |
85 |
svg? ( || ( gnome-base/librsvg media-gfx/inkscape ) ) |
78 |
gnumeric? ( app-office/gnumeric ) |
86 |
" |
79 |
hunspell? ( app-text/hunspell ) |
87 |
DEPEND="${RDEPEND} |
80 |
aspell? ( app-text/aspell ) |
|
|
81 |
enchant? ( app-text/enchant )" |
82 |
|
83 |
DEPEND="${COMMONDEPEND} |
84 |
virtual/pkgconfig |
88 |
virtual/pkgconfig |
85 |
nls? ( sys-devel/gettext )" |
89 |
nls? ( sys-devel/gettext ) |
|
|
90 |
!qt5? ( dev-qt/qtsvg:4 ) |
91 |
qt5? ( |
92 |
dev-qt/qtconcurrent:5 |
93 |
dev-qt/qtx11extras:5 |
94 |
) |
95 |
" |
96 |
|
97 |
DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING ) |
98 |
|
99 |
PATCHES=( "${FILESDIR}"/2.1-python.patch ) |
86 |
|
100 |
|
87 |
pkg_setup() { |
101 |
pkg_setup() { |
88 |
python-single-r1_pkg_setup |
102 |
python-single-r1_pkg_setup |
Lines 90-125
Link Here
|
90 |
} |
104 |
} |
91 |
|
105 |
|
92 |
src_prepare() { |
106 |
src_prepare() { |
93 |
epatch "${FILESDIR}"/2.1-python.patch |
107 |
default |
94 |
sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
108 |
sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die |
95 |
if use qt4; then |
|
|
96 |
export QT_SELECT=qt4 |
97 |
elif use qt5; then |
98 |
export QT_SELECT=qt5 |
99 |
fi |
100 |
} |
109 |
} |
101 |
|
110 |
|
102 |
src_configure() { |
111 |
src_configure() { |
103 |
tc-export CXX |
112 |
tc-export CXX |
104 |
#bug 221921 |
113 |
#bug 221921 |
105 |
export VARTEXFONTS=${T}/fonts |
114 |
export VARTEXFONTS=${T}/fonts |
106 |
local qt_flag="" |
|
|
107 |
if use qt4; then |
108 |
qt_flag="" |
109 |
elif use qt5; then |
110 |
qt_flag="--enable-qt5" |
111 |
fi |
112 |
|
115 |
|
113 |
econf \ |
116 |
econf \ |
114 |
$(use_enable nls) \ |
|
|
115 |
$(use_enable debug) \ |
116 |
$(use_enable monolithic-build) \ |
117 |
$(use_with hunspell) \ |
118 |
$(use_with aspell) \ |
117 |
$(use_with aspell) \ |
|
|
118 |
$(use_enable debug) \ |
119 |
$(use_with enchant) \ |
119 |
$(use_with enchant) \ |
120 |
${qt_flag} \ |
120 |
$(use_with hunspell) \ |
121 |
--without-included-boost \ |
121 |
$(use_enable monolithic-build) \ |
|
|
122 |
$(use_enable nls) \ |
123 |
$(use_enable qt5) \ |
124 |
--with-qt-dir=$(usex qt5 $(qt5_get_libdir)/qt5 $(qt4_get_libdir)) \ |
122 |
--disable-stdlib-debug \ |
125 |
--disable-stdlib-debug \ |
|
|
126 |
--without-included-boost \ |
123 |
--with-packaging=posix |
127 |
--with-packaging=posix |
124 |
} |
128 |
} |
125 |
|
129 |
|