diff options
Diffstat (limited to 'dev-libs/libpeas')
-rw-r--r-- | dev-libs/libpeas/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch | 18 | ||||
-rw-r--r-- | dev-libs/libpeas/libpeas-1.20.0-r1.ebuild | 84 | ||||
-rw-r--r-- | dev-libs/libpeas/libpeas-1.20.0.ebuild | 97 | ||||
-rw-r--r-- | dev-libs/libpeas/metadata.xml | 13 |
5 files changed, 219 insertions, 0 deletions
diff --git a/dev-libs/libpeas/Manifest b/dev-libs/libpeas/Manifest new file mode 100644 index 000000000000..c773464343b4 --- /dev/null +++ b/dev-libs/libpeas/Manifest @@ -0,0 +1,7 @@ +AUX libpeas-1.14.0-lua.pc.patch 553 SHA256 5ce7d73d6c1d5e00893a52055a6a839212562d95b9a1213774a0fc34f906c505 SHA512 ead06352498ff82a4520d4a7ed7b5d03e2d0adcdf2025413851b8385bfdd691c938b456b555d2214ec2dc7b95708f306149d6f1cfa7c5b03ad28a1c90c873349 WHIRLPOOL b830d8cf2163d5bd79f25c9bb681e7d3cd64d9acd8574443aa896366442a43113481811553bf6f11a3f977b3e8114c240dc2f30388b93ff94a181fec1831500b +DIST libpeas-1.20.0.tar.xz 557872 SHA256 f392fffe2dc00072a51bb2a1b274224a06bdc5f9c3b3c0ac4816909e9933d354 SHA512 b3ddebf65e1a76493b5cd5150f60c13597c90398eea16c002e51d25449a595f7591bd0ccd1214ca3a8cbce724eb10f38a316e8c95092442034c048bc95cfdbf4 WHIRLPOOL 94e4bd69a13d07a0dbe3b959c7feed3bbe705767351fd9053f266c1120d5356f15b745fb57d357d5a56303afd40deec37033f575c047c28ffb748050f1a983e0 +EBUILD libpeas-1.20.0-r1.ebuild 2171 SHA256 90c1f63982f6321fde0a9cb3d8b564dbcf69a511e8a003c2c5e6d6547adf3d34 SHA512 335d16625421587381ffdf54dc33f52cfacef4d6eb1f1fecc4d54cec1e961ad42263554a8c7da3a3ee0273e279c3682c46734c9328aedcd04d20efb6abad6e70 WHIRLPOOL 629c7a97856af67e1e94d9dc6fdc18c51667e2966f982964c45433a98bcb9007ed069deb04c24e193af3b919c5f2ad6b6fffa36004fd08dd11227715621d370d +EBUILD libpeas-1.20.0.ebuild 2503 SHA256 6a7847a3bb8fe4687db72ccce3177aa8755924211ddb594ab2c6ec6c288da337 SHA512 6fa6f7dde97c922445dd9aa355a0c6f50b05ab859ab08460ed26e7bae31a98031f7a314c023e7ccef943e9541a93fd5d2c6cd3e5c32d9b8f6715fd4fc6eb9a2e WHIRLPOOL e129b5f0ea1baa7c0f58e8b4b1a501d10ab3d3db9841562b7a72562525d4bcbc1ec81c381e85e1acb6e2f8da24b50a59e0d790f47a82d32d0e56849b1540cab6 +MISC ChangeLog 5374 SHA256 b192ab3d402dd154c32021d5fe435e350af00caf0fcf1b37950b04cfea5a2567 SHA512 4b256281897943388c84daf0faa5432f40436baf36ae44234c5146b46f91ccc06bcdaf3ca91e0799266fea684cd5ff354231932f408d185c9fba6cad82ecbc86 WHIRLPOOL c88923b491c06eebb7bc043c83ec7df5450ed3aa19a1578bb135e52d17fbc8660da3664efc58e0226de7682e7121047bf68f1de041a91f519029af7f37b2c37d +MISC ChangeLog-2015 7152 SHA256 5ec3cf7e07334e3c17e694bb7188af503da761254e8590a280d00a43ee07d85e SHA512 e72bf9ac294ec58d87d0f0e22be93a5110322c0d9bcddd075c447a2cafc18659fe050d6f350d2332ee0de2bae7d353f0326e20a6e378b769136709e0dfd6f0c0 WHIRLPOOL cd11e9c36203160b21cf40a26c46191439d13ec518121fbf134ae022b689bb862e1875744455826c8d952ac2e62eca7845657b7d0ba0b7a453c5cc07a83d5406 +MISC metadata.xml 415 SHA256 0c5451ed97568d3ad55e07c1ed8684f6f4217bb3414e60e56fcec742c18b9ee8 SHA512 4bf99a5c542cab95dadcf6db8aecbefa0be453f8851c2222ee698eec38c221f3b45b2ead6f87dd1d1ec5a233ba73054cf3b3d7b92d12ff4d88ee04a2057c50ea WHIRLPOOL 8316a25b9d0dbaa92a92480d4183bbf8b47105aa0db75531514055ef361712a5c0c7a9592cf84a2e183a52b3c0ad0767aa89a93f5fd74e462dcc8d289dffb120 diff --git a/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch b/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch new file mode 100644 index 000000000000..c46cbee242e5 --- /dev/null +++ b/dev-libs/libpeas/files/libpeas-1.14.0-lua.pc.patch @@ -0,0 +1,18 @@ +Gentoo currently uses unversioned lua:0 - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 + +diff --git a/configure.ac b/configure.ac +index 810a288..51ca607 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -305,9 +305,9 @@ else + fi + + if test "x$found_lua51" != "xyes"; then +- PKG_CHECK_EXISTS([lua5.1 >= $LUA51_REQUIRED], [ ++ PKG_CHECK_EXISTS([lua >= $LUA51_REQUIRED], [ + found_lua51=yes +- with_lua51=lua5.1 ++ with_lua51=lua + ], [ + found_lua51=no + ]) diff --git a/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild new file mode 100644 index 000000000000..b08429342cca --- /dev/null +++ b/dev-libs/libpeas/libpeas-1.20.0-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python{3_4,3_5} ) + +inherit autotools eutils gnome2 multilib python-single-r1 virtualx + +DESCRIPTION="A GObject plugins library" +HOMEPAGE="https://developer.gnome.org/libpeas/stable/" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" + +IUSE="+gtk glade jit lua +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=dev-libs/gobject-introspection-1.39:= + glade? ( >=dev-util/glade-3.9.1:3.10 ) + gtk? ( >=x11-libs/gtk+-3:3[introspection] ) + lua? ( + >=dev-lua/lgi-0.9.0 + jit? ( >=dev-lang/luajit-2:2 ) + !jit? ( =dev-lang/lua-5.1*:0 ) ) + python? ( + ${PYTHON_DEPS} + >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.40 + virtual/pkgconfig + + dev-libs/gobject-introspection-common + gnome-base/gnome-common +" +# eautoreconf needs gobject-introspection-common, gnome-common + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 + eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov + # What do we do about gdb, valgrind, gcov, etc? + local myconf=( + $(use_enable glade glade-catalog) + $(use_enable gtk) + --disable-static + + # py2 not supported anymore + --disable-python2 + $(use_enable python python3) + + # lua + $(use_enable lua lua5.1) + $(use_enable $(usex jit lua jit) luajit) + ) + + gnome2_src_configure "${myconf[@]}" +} + +src_test() { + # This looks fixed since 1.18.0: + # + # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme + # DO NOT REPORT UPSTREAM, this is not a libpeas bug. + # To reproduce: + # >>> from gi.repository import Gtk + # >>> Gtk.IconTheme.get_default().has_icon("gtk-about") + # This should return True, it returns False for Xvfb + virtx emake check +} diff --git a/dev-libs/libpeas/libpeas-1.20.0.ebuild b/dev-libs/libpeas/libpeas-1.20.0.ebuild new file mode 100644 index 000000000000..0418a2e4b1b4 --- /dev/null +++ b/dev-libs/libpeas/libpeas-1.20.0.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME2_LA_PUNT="yes" +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit autotools eutils gnome2 multilib python-r1 virtualx + +DESCRIPTION="A GObject plugins library" +HOMEPAGE="https://developer.gnome.org/libpeas/stable/" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" + +IUSE="+gtk glade jit lua +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ?? ( $(python_gen_useflags 'python3*') ) )" + +RDEPEND=" + >=dev-libs/glib-2.38:2 + >=dev-libs/gobject-introspection-1.39:= + glade? ( >=dev-util/glade-3.9.1:3.10 ) + gtk? ( >=x11-libs/gtk+-3:3[introspection] ) + lua? ( + >=dev-lua/lgi-0.9.0 + jit? ( >=dev-lang/luajit-2:2 ) + !jit? ( =dev-lang/lua-5.1*:0 ) ) + python? ( + ${PYTHON_DEPS} + >=dev-python/pygobject-3.2:3[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.40 + virtual/pkgconfig + + dev-libs/gobject-introspection-common + gnome-base/gnome-common +" +# eautoreconf needs gobject-introspection-common, gnome-common + +src_prepare() { + # Gentoo uses unversioned lua - lua.pc instad of lua5.1.pc, /usr/bin/lua instead of /usr/bin/lua5.1 + eapply "${FILESDIR}"/${PN}-1.14.0-lua.pc.patch + eautoreconf + gnome2_src_prepare +} + +src_configure() { + # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov + # What do we do about gdb, valgrind, gcov, etc? + local myconf=( + $(use_enable glade glade-catalog) + $(use_enable gtk) + --disable-static + + # possibly overriden below + --disable-python{2,3} + --disable-lua5.1 + --disable-luajit + ) + + if use lua ; then + if use jit ; then + myconf+=( --enable-lua5.1 --enable-luajit ) + else + myconf+=( --enable-lua5.1 ) + fi + fi + + python_configure() { + local v + python_is_python3 && v=3 || v=2 + myconf+=( + "--enable-python${v}" + # it is just 'PYTHON' for py3 in the build system + "PYTHON${v#3}=${PYTHON}" + "PYTHON${v}_CONFIG=$(python_get_PYTHON_CONFIG)" + ) + } + use python && python_foreach_impl python_configure + + gnome2_src_configure "${myconf[@]}" +} + +src_test() { + # This looks fixed since 1.18.0: + # + # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme + # DO NOT REPORT UPSTREAM, this is not a libpeas bug. + # To reproduce: + # >>> from gi.repository import Gtk + # >>> Gtk.IconTheme.get_default().has_icon("gtk-about") + # This should return True, it returns False for Xvfb + virtx emake check +} diff --git a/dev-libs/libpeas/metadata.xml b/dev-libs/libpeas/metadata.xml new file mode 100644 index 000000000000..f955af2bfc30 --- /dev/null +++ b/dev-libs/libpeas/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> + <use> + <flag name="glade">Install the glade catalog</flag> + <flag name="python">Build support for loading <pkg>dev-lang/python</pkg> + plugins</flag> + </use> +</pkgmetadata> |