summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi@gentoo.org>2020-01-16 00:10:24 +0100
committerRémi Cardona <remi@gentoo.org>2020-01-16 00:10:54 +0100
commit4507381ccaf4296f4acee179b841fa1e83006993 (patch)
treeb8f2e2adfd35a16c8a2fbd935409a2f7e322838c /dev-libs/gom/gom-0.3.3.ebuild
parentdev-qt/qtwebengine: 5.12.3: Use pulseaudio-13 patch from 5.12.5 (diff)
downloadgentoo-4507381ccaf4296f4acee179b841fa1e83006993.tar.gz
gentoo-4507381ccaf4296f4acee179b841fa1e83006993.tar.bz2
gentoo-4507381ccaf4296f4acee179b841fa1e83006993.zip
dev-libs/gom: bump to 0.3.3
Brought over from the gnome overlay with the following changes: - port to EAPI=7 - simplify meson/python-r1 interactions - remove broken DESTDIR argument when calling meson_src_install - properly generate .pyc files (QA warning) Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Rémi Cardona <remi@gentoo.org>
Diffstat (limited to 'dev-libs/gom/gom-0.3.3.ebuild')
-rw-r--r--dev-libs/gom/gom-0.3.3.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/gom/gom-0.3.3.ebuild b/dev-libs/gom/gom-0.3.3.ebuild
new file mode 100644
index 000000000000..9a9ca3dfec62
--- /dev/null
+++ b/dev-libs/gom/gom-0.3.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+GCONF_DEBUG="yes"
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit gnome.org gnome2-utils meson python-r1
+
+DESCRIPTION="GObject to SQLite object mapper library"
+HOMEPAGE="https://wiki.gnome.org/Projects/Gom"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc +introspection test"
+
+RDEPEND="
+ >=dev-db/sqlite-3.7:3
+ >=dev-libs/glib-2.36:2
+ introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ >=dev-util/intltool-0.40.0
+ sys-devel/gettext
+ virtual/pkgconfig
+ test? ( x11-libs/gdk-pixbuf:2 )
+"
+# TODO: make gdk-pixbuf properly optional with USE=test
+
+pkg_setup() {
+ python_setup
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use introspection enable-introspection)
+ $(meson_use doc enable-gtk-doc)
+ )
+
+ python_foreach_impl meson_src_configure
+}
+
+src_compile() {
+ python_foreach_impl meson_src_compile
+}
+
+src_install() {
+ docinto examples
+ dodoc examples/*.py
+
+ installing() {
+ meson_src_install
+ python_optimize
+ }
+ python_foreach_impl installing
+}
+
+src_test() {
+ # tests may take a long time
+ python_foreach_impl meson_src_test
+}