x11-libs/xapps: Fixes to previous addition
authorKristian Fiskerstrand <k_f@gentoo.org>
Sun, 27 Nov 2016 21:30:21 +0000 (22:30 +0100)
committerKristian Fiskerstrand <k_f@gentoo.org>
Sun, 27 Nov 2016 21:33:01 +0000 (22:33 +0100)
Package-Manager: portage-2.3.2

x11-libs/xapps/xapps-1.0.2-r1.ebuild [moved from x11-libs/xapps/xapps-1.0.2.ebuild with 56% similarity]

similarity index 56%
rename from x11-libs/xapps/xapps-1.0.2.ebuild
rename to x11-libs/xapps/xapps-1.0.2-r1.ebuild
index b9d1b3335e69256df063ce89f423db509548999b..7bc074f1e0de807f55142dbdec5cef04e7f9d836 100644 (file)
@@ -2,35 +2,55 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit autotools
-
-SRC_URI="https://github.com/linuxmint/xapps/archive/${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~x86"
+inherit autotools gnome2-utils
 
 DESCRIPTION="Cross-desktop libraries and common resources"
 HOMEPAGE="https://github.com/linuxmint/xapps/"
+LICENSE="GPL-3"
+
+SRC_URI="https://github.com/linuxmint/xapps/archive/${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
 
-LICENSE="LGPL-3"
 SLOT="0"
+IUSE="static-libs"
 
 RDEPEND="
-       >=x11-libs/gdk-pixbuf-2.22.0:2[introspection]
-       >=x11-libs/gtk+-3.3.16:3[introspection]
        >=dev-libs/glib-2.37.3:2
-       x11-libs/cairo
        gnome-base/libgnomekbd
        gnome-base/gnome-common
+       dev-libs/gobject-introspection:0=
+       x11-libs/cairo
+       >=x11-libs/gdk-pixbuf-2.22.0:2[introspection]
+       >=x11-libs/gtk+-3.3.16:3[introspection]
+       x11-libs/libxkbfile
 "
-DEPEND="${RDEPEND}"
 
-src_prepare(){
+DEPEND="${RDEPEND}
+       "
+
+src_prepare() {
+       eapply_user
        eautoreconf
-       default
 }
 
-src_install(){
+src_configure() {
+       econf \
+               $(use_enable static-libs static) \
+               $(use_enable introspection)
+}
+
+src_install() {
        default
        rm -rf "${D}/usr/bin/" || die
+       [ use static-libs ] || rm -rf "${D}/usr/lib64/libxapp.la" || die
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
 }