summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-08-11 16:45:51 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-08-11 16:45:51 +0000
commit65e2d5dda0fa087371769fc2d9ec2d631cf9c2f2 (patch)
tree8f7a982a3a09a114b43e28302bf5b0034501f703 /app-pda
parentAdd some mips love #430346. (diff)
downloadgentoo-2-65e2d5dda0fa087371769fc2d9ec2d631cf9c2f2.tar.gz
gentoo-2-65e2d5dda0fa087371769fc2d9ec2d631cf9c2f2.tar.bz2
gentoo-2-65e2d5dda0fa087371769fc2d9ec2d631cf9c2f2.zip
Query udev.pc pkg-config file for correct udevdir value.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-pda')
-rw-r--r--app-pda/barry/ChangeLog7
-rw-r--r--app-pda/barry/barry-0.17.1-r1.ebuild109
2 files changed, 115 insertions, 1 deletions
diff --git a/app-pda/barry/ChangeLog b/app-pda/barry/ChangeLog
index 2e58e3373ebe..5a6c2b0bb8d4 100644
--- a/app-pda/barry/ChangeLog
+++ b/app-pda/barry/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-pda/barry
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/barry/ChangeLog,v 1.22 2012/05/22 16:39:13 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/barry/ChangeLog,v 1.23 2012/08/11 16:45:51 ssuominen Exp $
+
+*barry-0.17.1-r1 (11 Aug 2012)
+
+ 11 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> +barry-0.17.1-r1.ebuild:
+ Query udev.pc pkg-config file for correct udevdir value.
22 May 2012; Samuli Suominen <ssuominen@gentoo.org> barry-0.16.ebuild,
barry-0.17.1.ebuild:
diff --git a/app-pda/barry/barry-0.17.1-r1.ebuild b/app-pda/barry/barry-0.17.1-r1.ebuild
new file mode 100644
index 000000000000..b67d102a7f4e
--- /dev/null
+++ b/app-pda/barry/barry-0.17.1-r1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-pda/barry/barry-0.17.1-r1.ebuild,v 1.1 2012/08/11 16:45:51 ssuominen Exp $
+
+EAPI="4"
+
+inherit autotools-utils bash-completion eutils toolchain-funcs
+
+DESCRIPTION="Sync, backup, program management, and charging for BlackBerry devices"
+HOMEPAGE="http://www.netdirect.ca/software/packages/barry/"
+SRC_URI="mirror://sourceforge/barry/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost doc gui opensync nls static-libs"
+
+RDEPEND="
+ dev-libs/glib:2
+ virtual/libusb:0
+ dev-libs/openssl
+ sys-libs/zlib
+ >=dev-cpp/libxmlpp-2.6
+ >=dev-libs/libtar-1.2.11-r2
+ boost? ( >=dev-libs/boost-1.33 )
+ gui? ( dev-cpp/glibmm:2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libglademm:2.4 )
+ opensync? ( ~app-pda/libopensync-0.22 )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( >=app-doc/doxygen-1.5.6 )
+ nls? ( >=sys-devel/gettext-0.17 )"
+
+DOCS=(AUTHORS DEPUTY ChangeLog NEWS README TODO)
+
+src_configure() {
+ myeconfargs=(
+ $(use_enable boost)
+ $(use_enable gui)
+ $(use_enable nls)
+ $(use_enable opensync opensync-plugin)
+ --disable-rpath
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ if use doc ; then
+ cd "${S}"
+ doxygen || die
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ # docs
+ rm -rf "${S}"/doc/www/*.php
+ rm -rf "${S}"/doc/www/*.sh
+ find "${S}"/doc/www/doxygen/html -name "*.map" -size 0 -exec rm -f {} +
+
+ if use doc; then
+ dohtml "${S}"/doc/www/doxygen/html/*
+ fi
+
+ rm -rf "${S}"/doc/www
+ dodoc -r "${S}"/doc/*
+
+ # udev rules
+ local udevdir=/lib/udev
+ has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
+ insinto "${udevdir}"/rules.d
+ doins "${S}"/udev/10-blackberry.rules
+# doins "${S}"/udev/69-blackberry.rules
+ sed -i -e 's:plugdev:usb:g' "${S}"/udev/99-blackberry-perms.rules || die
+ doins "${S}"/udev/99-blackberry-perms.rules
+
+ # blacklist for BERRY_CHARGE kernel module
+ insinto /etc/modprobe.d
+ doins "${S}"/modprobe/blacklist-berry_charge.conf
+
+ # pppd options files
+ docinto "${DOCDIR}"/ppp/
+ dodoc "${S}"/ppp/*
+
+ BASHCOMPFILES="${S}/bash/btool ${S}/bash/bjavaloader"
+ dobashcompletion
+
+ if use gui; then
+ domenu "${S}"/menu/barrybackup.desktop || die
+ doicon "${S}"/logo/barry_logo_icon.png || die
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ elog "Barry requires you to be a member of the \"usb\" group."
+ einfo
+ bash-completion_pkg_postinst
+ ewarn
+ ewarn "Barry and the in-kernel module 'BERRY_CHARGE' are incompatible."
+ ewarn
+ ewarn "Kernel-based USB suspending can discharge your blackberry."
+ ewarn "Use at least kernel 2.6.22 and/or disable CONFIG_USB_SUSPEND."
+ ewarn
+}