Skip to content

Commit

Permalink
dev-libs/libdbusmenu-0.6.2: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
megabaks committed Jun 30, 2012
1 parent 55a6016 commit c14a356
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-libs/libdbusmenu/Manifest
Expand Up @@ -4,3 +4,4 @@ DIST libdbusmenu-0.5.92.tar.gz 710314 RMD160 04a295f542ca636fa8e75ccc59f5f816e34
DIST libdbusmenu-0.5.95.tar.gz 714798 RMD160 0f336f21c8908a378ad79c39068f9db24cabe4a9 SHA1 812b42b33029b714a5dac1c59d879055c3db9118 SHA256 fbb9ffc0558f164f2fa989fde8c5388813bff9dd2014ed1b4ff34142e3c4737c
DIST libdbusmenu-0.5.96.tar.gz 634007 RMD160 d71ce74a58a2d8d6634467c5e118da990092e30e SHA1 81885cb3f73118c96ed1e16ee6a5bdc672542e67 SHA256 de7c7aef3f7278f0b11835c389e4290135bcae128532b5b6435defda489f3449
DIST libdbusmenu-0.6.1.tar.gz 646847 RMD160 e7b3810c856f00215bc78a479e623070628f6a30 SHA1 da497bdffc33118e82ca7c9264c71d73bb293092 SHA256 5c5c62f470402a25cc72cfc4064b44ed33d0df669a84ac682fe56ad7588b59e4
DIST libdbusmenu-0.6.2.tar.gz 730624 RMD160 132ba73a59b1c7ceb82eb85987bbef6864fb2ad2 SHA1 9ac17f7ead18823cbebe0194982a00f89a962070 SHA256 c2077069ae36c207f0c86cb52a0066691d155e45629d1361eee14fc7a2552649
106 changes: 106 additions & 0 deletions dev-libs/libdbusmenu/libdbusmenu-0.6.2.ebuild
@@ -0,0 +1,106 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdbusmenu/libdbusmenu-0.5.1-r300.ebuild,v 1.3 2011/11/28 22:37:34 zmedico Exp $

EAPI=4

PN_vala_version=0.14

inherit virtualx multilib

DESCRIPTION="Library to pass menu structure across DBus"
HOMEPAGE="https://launchpad.net/dbusmenu"
SRC_URI="http://launchpad.net/dbusmenu/0.6/${PV}/+download/${P}.tar.gz"

LICENSE="LGPL-2.1 LGPL-3"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE="gtk gtk3 +introspection test vala"

RDEPEND=">=dev-libs/glib-2.31.16
dev-libs/dbus-glib
dev-libs/libxml2
gtk? ( x11-libs/gtk+:2 )
gtk3? ( x11-libs/gtk+:3 )
introspection? ( >=dev-libs/gobject-introspection-0.6.7 )
!<${CATEGORY}/${PN}-0.5.1-r200"
DEPEND="${RDEPEND}
test? (
dev-libs/json-glib[introspection?]
dev-util/dbus-test-runner
)
vala? ( dev-lang/vala:${PN_vala_version}[vapigen] )
app-text/gnome-doc-utils
dev-util/intltool
dev-util/pkgconfig"


src_prepare() {
# Drop DEPRECATED flags, bug #391103
sed -i \
-e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
{libdbusmenu-{glib,gtk},tests}/Makefile.{am,in} configure{,.ac} || die
}

src_configure() {
export VALA_API_GEN="$(type -P vapigen-${PN_vala_version})"

if use gtk;then
econf \
--docdir=/usr/share/doc/${PF} \
--disable-static \
$(use_enable gtk) \
--disable-dumper \
$(use_enable introspection) \
$(use_enable test tests) \
$(use_enable vala vala) \
--with-html-dir=/usr/share/doc/${PF} \
--with-gtk=2
fi

if use gtk3;then
mkdir gtk3-hack
cp -R * gtk3-hack &>/dev/null
cd gtk3-hack
econf \
--with-gtk=3 \
--disable-static \
--disable-dumper \
$(use_enable gtk) \
$(use_enable introspection) \
$(use_enable test tests) \
$(use_enable vala vala) \
--prefix=/usr/local \
--mandir=/usr/local/share \
--infodir=/usr/local/share \
--datadir=/usr/local/share \
--includedir=/usr/local/include
fi
}

src_test() {
Xemake check
}

src_compile(){
emake
if use gtk3;then
cd gtk3-hack
emake
fi
}

src_install() {
emake -j1 DESTDIR="${D}" install
dodoc AUTHORS ChangeLog README
find "${ED}" -name '*.la' -exec rm -f {} +

if use gtk3;then
cd gtk3-hack
emake -j1 DESTDIR="${D}" install
dodir /usr/$(get_libdir)/pkgconfig
insinto /usr/$(get_libdir)/pkgconfig/
doins libdbusmenu-gtk/dbusmenu-gtk3-0.4.pc
find "${ED}" -name '*.la' -exec rm -f {} +
fi
}

0 comments on commit c14a356

Please sign in to comment.