media-gfx/cgal-ipelets: Add cgal-ipelets-5.2.2-r1
[shuber-gentoo-overlay.git] / media-gfx / ipe / ipe-7.2.21.ebuild
index ecac0eb46a420b1e49af6c6e5bd4124be2f897b8..f42af0051e5d8700b417529a121db4a86b576f30 100644 (file)
@@ -2,7 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils toolchain-funcs
+
+LUA_COMPAT=( lua5-3 )
+inherit lua-single eutils toolchain-funcs
 
 DESCRIPTION="Drawing editor for creating figures in PDF or PS formats"
 HOMEPAGE="http://ipe.otfried.org"
@@ -15,14 +17,23 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="highprec"
 
-RDEPEND="app-text/texlive-core
-       >=dev-lang/lua-5.3
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="
+       app-text/texlive-core
        media-libs/freetype:2
        x11-libs/cairo
        dev-qt/qtcore:5
-       dev-qt/qtwidgets:5"
+       dev-qt/qtwidgets:5
+       sci-libs/gsl
+       media-libs/libjpeg-turbo
+       media-libs/libpng
+       sys-libs/zlib
+       "
 DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+       ${LUA_DEPS}"
+
+BDEPEND="virtual/pkgconfig"
 
 S="${WORKDIR}/${P}/src"
 COMMONDIR=/usr/share/ipe/common
@@ -59,6 +70,7 @@ src_prepare() {
 }
 
 pkg_setup() {
+       lua-single_pkg_setup
        if search_urw_fonts; then
                einfo "URW fonts found in ${URWFONTDIR}"
        else
@@ -78,7 +90,8 @@ src_install() {
        emake install \
                IPEPREFIX="${EPREFIX}/usr" \
                IPEDOCDIR="${EPREFIX}/usr/share/doc/${PF}/html" \
-               INSTALL_ROOT="${ED}"
+               INSTALL_ROOT="${ED}" \
+               LUA_VERSION="$(lua_get_version)"
        dodoc ../{news,readme}.txt
        doicon ipe/icons/ipe.png
        make_desktop_entry ipe Ipe ipe