commit: cc18dea6a79a1a9263609e41017f5439e3177b1b Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Wed Dec 9 17:29:29 2020 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Wed Dec 9 17:30:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc18dea6
dev-libs/libpeas: migrate to lua-single.eclass Simple enough, was even able to re-use the Lua-related patch used by the unmigrated version. Supports lua5-1 and luajit as per upstream specs for Lua plug-ins, builds fine against both. Closes: https://bugs.gentoo.org/752918 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> dev-libs/libpeas/libpeas-1.26.0-r100.ebuild | 83 +++++++++++++++++++++++++++++ profiles/package.mask | 1 + 2 files changed, 84 insertions(+) diff --git a/dev-libs/libpeas/libpeas-1.26.0-r100.ebuild b/dev-libs/libpeas/libpeas-1.26.0-r100.ebuild new file mode 100644 index 00000000000..259ac24182c --- /dev/null +++ b/dev-libs/libpeas/libpeas-1.26.0-r100.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 luajit ) +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit gnome.org lua-single meson python-single-r1 vala virtualx xdg + +DESCRIPTION="A GObject plugins library" +HOMEPAGE="https://developer.gnome.org/libpeas/stable/" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +IUSE="glade +gtk gtk-doc lua +python vala" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=dev-libs/gobject-introspection-1.39:= + gtk? ( >=x11-libs/gtk+-3.0.0:3[introspection] ) + glade? ( >=dev-util/glade-3.9.1:3.10 ) + lua? ( + ${LUA_DEPS} + $(lua_gen_cond_dep ' + >=dev-lua/lgi-0.9.0[${LUA_USEDEP}] + ') + ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + >=dev-python/pygobject-3.2:3[${PYTHON_MULTI_USEDEP}] + ') + ) +" +DEPEND="${RDEPEND} + dev-util/glib-utils + gtk-doc? ( >=dev-util/gtk-doc-1.11 + app-text/docbook-xml-dtd:4.3 ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + # Gentoo-specific lua tweak hack + "${FILESDIR}"/${PV}-lua.patch +) + +pkg_setup() { + use lua && lua-single_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_prepare() { + xdg_src_prepare + use vala && vala_src_prepare +} + +src_configure() { + local emesonargs=( + $(meson_feature $(usex lua '!lua_single_target_luajit' 'lua') lua51) + $(meson_feature $(usex lua 'lua_single_target_luajit' 'lua') luajit) + -Dpython2=false + $(meson_use python python3) + # introspection was always enabled in autotools; would need readiness by consumers + # to USE flag it, but most need it for python plugins anyways + -Dintrospection=true + $(meson_use vala vapi) + $(meson_use gtk widgetry) + $(meson_use glade glade_catalog) + -Ddemos=false + $(meson_use gtk-doc gtk_doc) + ) + meson_src_configure +} + +src_test() { + virtx meson_src_test +} diff --git a/profiles/package.mask b/profiles/package.mask index a5a72e1341a..4d755fe655f 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -505,6 +505,7 @@ gnome-base/orbit >=dev-games/cegui-0.8.7-r100 =dev-games/openscenegraph-openmw-3.4_p20200425-r100 =dev-libs/efl-1.25.1-r10 +>=dev-libs/libpeas-1.26.0-r100 =dev-libs/libprelude-5.2.0-r10 >=dev-libs/libucl-0.8.1-r100 >=dev-lua/busted-2.0.0-r100