diff options
Diffstat (limited to 'app-pda/barry')
-rw-r--r-- | app-pda/barry/Manifest | 4 | ||||
-rw-r--r-- | app-pda/barry/barry-0.18.3.ebuild | 103 | ||||
-rw-r--r-- | app-pda/barry/files/barry-0.18.4-shared_ptr.patch | 25 | ||||
-rw-r--r-- | app-pda/barry/metadata.xml | 15 |
4 files changed, 147 insertions, 0 deletions
diff --git a/app-pda/barry/Manifest b/app-pda/barry/Manifest new file mode 100644 index 000000000000..a542daa322aa --- /dev/null +++ b/app-pda/barry/Manifest @@ -0,0 +1,4 @@ +AUX barry-0.18.4-shared_ptr.patch 746 BLAKE2B c45dbda427c25807e1cdb9d3d54a5695a92623230eaaabe41cff71236715c816f1d2de6e8c29f71d993288803010803fe046a3a96e39d9f0b6da3a7f452d793c SHA512 b376e3553aa22d3aa8a04cee766d34aae3d03ad3677174d5f02118653fbfe8391175238727cf0c21c0caf33a850cc10fa0fcf077266815e891bf5efbb3d0d745 +DIST barry-0.18.3.tar.bz2 3457451 BLAKE2B ba7f49e95ac85d764c1275f6dc06f4a7be080d8d725466e1bb8d23977437879f2f7bf7581d9f5bc1262a07f8d1478992ce3c62c9893504f1094dcfb16d944ebd SHA512 4944d22bd5f5a76201ca10ccaf9d12ecf21b298e5b9c8d3d503441e0ad0386a94699c48ae683004992508bb385e75ec137859509663148f2f148933fa508e7fd +EBUILD barry-0.18.3.ebuild 2328 BLAKE2B 6764afecfe7b135440d912a546c4b7b10bcbeadf6d070e45265ced4f5f73cff63270d8258af5f03e8f3171ec45b05630b2d2befb2477cf302ae893d47d528a30 SHA512 810f3bbafb86fe081b5bc05c1fdd078f9fb6cb463ca51e37f3f16c924c5612c8bb1e1b5c97e0ae6c2b44f05059667194db0a3d624ad0effb8b4dfb1486bd1819 +MISC metadata.xml 498 BLAKE2B 996a82041baa888af865b675d7cf737e43e7fee3ef884ccbbfde08381bbfedf66f7eba86f03f4599f4068f159fdd57cf8b938e723680053bb47ed581bbdfa58a SHA512 fb554a30934fdb3889ae42e1828f62ac3b45f97b1d38739d205a790c295e7081bdb78322e8896d79f4b7348bf295cd5ef0810a6de14a24ba3c32db00d25e42c0 diff --git a/app-pda/barry/barry-0.18.3.ebuild b/app-pda/barry/barry-0.18.3.ebuild new file mode 100644 index 000000000000..6a672094e52f --- /dev/null +++ b/app-pda/barry/barry-0.18.3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit bash-completion-r1 eutils flag-o-matic gnome2-utils udev + +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="CC-BY-SA-3.0 GPL-2" #See logo/README for CCPL +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost doc gui nls static-libs" + +RDEPEND=">=dev-cpp/libxmlpp-2.6:2.6 + dev-libs/glib:2 + >=dev-libs/libtar-1.2.11-r2 + >=media-libs/libsdl-1.2 + >=sys-fs/fuse-2.5:= + sys-libs/zlib + virtual/libusb:1 + boost? ( >=dev-libs/boost-1.33 ) + gui? ( + dev-cpp/glibmm:2 + dev-cpp/gtkmm:2.4 + dev-cpp/libglademm:2.4 + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( >=app-doc/doxygen-1.5.6 ) + nls? ( >=sys-devel/gettext-0.18.1.1 )" + +DOCS=( AUTHORS ChangeLog KnownBugs NEWS README TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.18.4-shared_ptr.patch + + append-cxxflags -std=c++11 + + sed -i -e 's:plugdev:usb:g' "${S}"/udev/99-blackberry-perms.rules || die + sed -i -e '/Icon/s:=.*:=barry:' "${S}"/menu/*.desktop || die +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable static-libs static) \ + $(use_enable boost) \ + $(use_enable gui) \ + --disable-desktop \ + --disable-rpath +} + +src_compile() { + default + + if use doc; then + cd "${S}" + doxygen || die + fi +} + +src_install() { + default + + # docs + rm -rf "${S}"/doc/www/*.{php,sh} + find "${S}"/doc/www/doxygen/html -name "*.map" -size 0 -exec rm -f {} + + use doc && dohtml "${S}"/doc/www/doxygen/html/* + rm -rf "${S}"/doc/www + dodoc -r "${S}"/doc/* + + # Skipping different (old Fedora) rules 69-blackberry.rules in purpose + udev_dorules "${S}"/udev/10-blackberry.rules "${S}"/udev/99-blackberry-perms.rules + + # blacklist for BERRY_CHARGE kernel module + insinto /lib/modprobe.d + doins "${S}"/modprobe/blacklist-berry_charge.conf + + # pppd options files + docinto ppp + dodoc "${S}"/ppp/* + + dobashcomp "${S}"/bash/btool "${S}"/bash/bjavaloader + + newicon -s scalable "${S}"/logo/${PN}_logo_icon.svg ${PN}.svg + use gui && domenu "${S}"/menu/barrybackup.desktop + + prune_libtool_files +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-pda/barry/files/barry-0.18.4-shared_ptr.patch b/app-pda/barry/files/barry-0.18.4-shared_ptr.patch new file mode 100644 index 000000000000..dbccfe66ea21 --- /dev/null +++ b/app-pda/barry/files/barry-0.18.4-shared_ptr.patch @@ -0,0 +1,25 @@ +With -std=c++-11 shared_ptr is available in the standard library so pulling in +the std::tr1 namespace creates an ambiguous reference. Simple fix is to stop +doing that but isn't backwards compatible. We don't care in Gentoo since we'll +always be building barry with -std=c++11 due to libsigc++ abi compatibility. + +--- a/tools/bio.cc ++++ b/tools/bio.cc +@@ -42,7 +42,6 @@ + #include "i18n.h" + + using namespace std; +-using namespace std::tr1; + using namespace Barry; + + // keeping a record of all the -i device / -o device pin numbers, so +--- a/tools/btool.cc ++++ b/tools/btool.cc +@@ -59,7 +59,6 @@ + #include "barrygetopt.h" + + using namespace std; +-using namespace std::tr1; + using namespace Barry; + + std::map<std::string, std::string> SortKeys; diff --git a/app-pda/barry/metadata.xml b/app-pda/barry/metadata.xml new file mode 100644 index 000000000000..64b764c3d6cd --- /dev/null +++ b/app-pda/barry/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription lang="en"> + Barry is a utility for synchronization, backup, restore, + program management, and charging of BlackBerry devices. + </longdescription> + <use> + <flag name="boost">Enable boost support</flag> + <flag name="gui">Install the GUI backup tool</flag> + </use> + <upstream> + <remote-id type="sourceforge">barry</remote-id> + </upstream> +</pkgmetadata> |