From 270492c48ff74b2aba9962825d67c522e33c7b30 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Sun, 7 Mar 2010 18:09:43 +0100 Subject: [PATCH] Added net-im/psi live ebuild. --- net-im/psi/Manifest | 5 ++ net-im/psi/metadata.xml | 13 ++++ net-im/psi/psi-9999.ebuild | 155 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 173 insertions(+) create mode 100644 net-im/psi/Manifest create mode 100644 net-im/psi/metadata.xml create mode 100644 net-im/psi/psi-9999.ebuild diff --git a/net-im/psi/Manifest b/net-im/psi/Manifest new file mode 100644 index 0000000..cf1e8cc --- /dev/null +++ b/net-im/psi/Manifest @@ -0,0 +1,5 @@ +DIST psi-0.14_langpack_for_packagers_2009-12-02.zip 2553616 RMD160 4c3ea59043b91d607a3e30f3cec574e5787a0553 SHA1 6c9ce5717bd3a46a0d1f5eabb3b4756099590435 SHA256 27e5cec1847454c9ac3726122b204d923e87c11e1e37e8960c49c17fd4d74dc2 +DIST psi-extra-iconsets-r1428.tar.bz2 3214991 RMD160 5aba49e65ca39209a4791c6e5eb400a54c4a9341 SHA1 969d55207eb89a5000442b57819e98b0a44f37c0 SHA256 1c7cb4a6915c43e7728b96d8eadd4d1359561f40169f10f1051a2c63c3bfbe1c +DIST psi-extra-patches-r1428.tar.bz2 131700 RMD160 071eadf3a174f392cfb7202a85d2082b3256c76e SHA1 78cfe1f6b8a15852b9ed72c0dd569c9b4e6d9fac SHA256 a458f44773c53abe369b174d220038d3b1dce6bbab981d6baf7ca48ec211cf48 +EBUILD psi-9999.ebuild 4462 RMD160 bd726beec4f926d98c596ac7000257f89d5e0582 SHA1 798e7c30083bc882699c3d2e909b7dd64a661259 SHA256 8fa6e6113dc8459193008e2cae8b6e6e080fb2ea2594e27c5de0d53c2c5343a2 +MISC metadata.xml 441 RMD160 cc697432cfc0f0615516f1d3434e2cc7f7dde7d3 SHA1 1e2aa9526abc1c328dbf063f12b940dd98d629a8 SHA256 7e042d514e4b647c17d4c0d42da84e795b102a0b3b53c7badc6f59b7e63439d6 diff --git a/net-im/psi/metadata.xml b/net-im/psi/metadata.xml new file mode 100644 index 0000000..75eb0d2 --- /dev/null +++ b/net-im/psi/metadata.xml @@ -0,0 +1,13 @@ + + + +net-im + + pva@gentoo.org + +Psi is a very good jabber client that uses QT + + Enables extra non official patches + Enable chatlog rendering using webkit + + diff --git a/net-im/psi/psi-9999.ebuild b/net-im/psi/psi-9999.ebuild new file mode 100644 index 0000000..01ee359 --- /dev/null +++ b/net-im/psi/psi-9999.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-0.14-r1.ebuild,v 1.5 2010/01/18 19:01:45 armin76 Exp $ + +EAPI="2" + +EGIT_REPO_URI="git://git.psi-im.org/psi.git" +EGIT_HAS_SUBMODULES="true" + +LANGS="be cs de fr it ja pl pt_BR ru sl sv ur_PK zh_TW" + +inherit eutils git qt4-r2 + +DESCRIPTION="Qt4 Jabber client, with Licq-like interface" +HOMEPAGE="http://psi-im.org/" +# Langpack: +# http://lists.affinix.com/pipermail/psi-devel-affinix.com/2009-August/008798.html +# Later found his site: http://fs.scs-tsa.de/psi_l10n/ +SRC_URI="http://fs.scs-tsa.de/psi_l10n/psi-0.14_langpack_for_packagers_2009-12-02.zip + extras? ( mirror://gentoo/${PN}-extra-patches-r1428.tar.bz2 + mirror://gentoo/${PN}-extra-iconsets-r1428.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="crypt dbus debug doc extras jingle spell ssl xscreensaver webkit" +RESTRICT="test" + +RDEPEND="app-arch/unzip + >=app-crypt/qca-2.0.2:2 + >=x11-libs/qt-gui-4.4:4[qt3support,dbus?] + spell? ( >=app-text/enchant-1.3.0 ) + xscreensaver? ( x11-libs/libXScrnSaver ) + extras? ( webkit? ( x11-libs/qt-webkit:4 ) )" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + extras? ( sys-devel/qconf )" + +PDEPEND="crypt? ( app-crypt/qca-gnupg:2 ) + jingle? ( net-im/psimedia ) + ssl? ( app-crypt/qca-ossl:2 )" + +src_unpack() { + unpack ${A} + git_src_unpack +} + +src_prepare() { + if use extras; then + # some patches from psi+ project http://code.google.com/p/psi-dev + ewarn "You're about to build heavily patched version of Psi called Psi+." + ewarn "It has really nice features but still is under heavy development." + ewarn "Take a look at homepage for more info: http://code.google.com/p/psi-dev" + ewarn "If you wish to disable some patches just put" + ewarn "MY_EPATCH_EXCLUDE=\"list of patches\"" + ewarn "into /etc/portage/env/${CATEGORY}/${PN} file." + ewarn + ewarn "Note: some patches depend on other. So if you disabled some patch" + ewarn "and other started to fail to apply, you'll have to disable patches" + ewarn "that fail too." + ebeep + + EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} + 755-psiplus-fix-application-info-defines.diff + 9999-psiplus-application-info.diff" \ + EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch + sed -e 's/\(^#define PROG_CAPS_NODE \).*/\1"http:\/\/psi-dev.googlecode.com\/caps";/' \ + -e 's:\(^#define PROG_NAME "Psi\):\1+:' \ + -i src/applicationinfo.cpp || die + + qconf || die "Failed to create ./configure." + else + if use webkit; then + ewarn "Webkit support disabled as it is only available in Psi+" + ewarn "(USE='extras' enabled)." + fi + fi + + rm -rf third-party/qca # we use system libraries +} + +src_configure() { + # unable to use econf because of non-standard configure script + # disable growl as it is a MacOS X extension only + local confcmd="./configure + --prefix=/usr + --qtdir=/usr + --disable-bundled-qca + --disable-growl + $(use dbus || echo '--disable-qdbus') + $(use debug && echo '--debug') + $(use spell || echo '--disable-aspell') + $(use spell || echo '--disable-enchant') + $(use xscreensaver || echo '--disable-xss') + $(use extras && { use webkit && echo '--enable-qtwebkit';} )" + + echo ${confcmd} + ${confcmd} || die "configure failed" + # Makefile is not always created... + [[ -f Makefile ]] || die "configure failed" + + eqmake4 +} + +src_compile() { + emake || die "emake failed" + + if use doc; then + cd doc + mkdir -p api # 259632 + make api_public || die "make api_public failed" + fi +} + +src_install() { + emake INSTALL_ROOT="${D}" install || die "emake install failed" + + rm "${D}"/usr/share/psi/{COPYING,README} + + # this way the docs will be installed in the standard gentoo dir + newdoc iconsets/roster/README README.roster || die + newdoc iconsets/system/README README.system || die + newdoc certs/README README.certs || die + dodoc README || die + + if use doc; then + cd doc + dohtml -r api || die "dohtml failed" + fi + + # install translations + cd "${WORKDIR}" + insinto /usr/share/${PN} + local nolangs=true + for LNG in ${LANGS}; do + if use linguas_${LNG}; then + doins ${LNG}/${PN}_${LNG}.qm || die + newins ${LNG}/INFO INFO.${LNG} || die + nolangs=false + fi + done + + # if linguas is empty install all translations + if ${nolangs}; then + for LNG in ${LANGS}; do + doins ${LNG}/${PN}_${LNG}.qm || die + newins ${LNG}/INFO INFO.${LNG} || die + done + fi + + if use extras; then + cp -a "${WORKDIR}"/iconsets/* "${D}"/usr/share/${PN}/iconsets/ || die + fi +} -- 2.11.4.GIT