summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kapusta <ayoy@gentoo.org>2009-11-01 18:59:45 +0000
committerDominik Kapusta <ayoy@gentoo.org>2009-11-01 18:59:45 +0000
commite8d879a2fff3150377bf2fc1c9d824a0a05b4af3 (patch)
treede4b34624207aa7d12791ca205ccc8331ece04cf /net-im/qtwitter/qtwitter-0.10.0.ebuild
parentRe-add manifest. (diff)
downloadgentoo-2-e8d879a2fff3150377bf2fc1c9d824a0a05b4af3.tar.gz
gentoo-2-e8d879a2fff3150377bf2fc1c9d824a0a05b4af3.tar.bz2
gentoo-2-e8d879a2fff3150377bf2fc1c9d824a0a05b4af3.zip
Version bump
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Diffstat (limited to 'net-im/qtwitter/qtwitter-0.10.0.ebuild')
-rw-r--r--net-im/qtwitter/qtwitter-0.10.0.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/net-im/qtwitter/qtwitter-0.10.0.ebuild b/net-im/qtwitter/qtwitter-0.10.0.ebuild
new file mode 100644
index 000000000000..6edc7f5a62e4
--- /dev/null
+++ b/net-im/qtwitter/qtwitter-0.10.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/qtwitter-0.10.0.ebuild,v 1.1 2009/11/01 18:59:45 ayoy Exp $
+
+EAPI="2"
+
+inherit qt4
+
+DESCRIPTION="A Qt-based microblogging client"
+HOMEPAGE="http://www.qt-apps.org/content/show.php/qTwitter?content=99087"
+SRC_URI="http://files.ayoy.net/qtwitter/release/${PV}/src/${P}-src.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND=">=x11-libs/qt-gui-4.5:4
+ >=x11-libs/qt-dbus-4.5:4
+ >=dev-libs/qoauth-1.0"
+RDEPEND="${DEPEND}"
+
+QTWITTER_LANGS="nb_NO pt_BR"
+QTWITTER_NOLONGLANGS="ca_ES cs_CZ de_DE es_ES fr_FR it_IT ja_JP pl_PL"
+
+for L in $QTWITTER_LANGS; do
+ IUSE="$IUSE linguas_$L"
+done
+for L in $QTWITTER_NOLONGLANGS; do
+ IUSE="$IUSE linguas_${L%_*}"
+done
+
+src_prepare() {
+ qt4_src_prepare
+ echo "CONFIG += nostrip" >> "${S}"/${PN}.pro
+
+ local langs=
+ for lingua in $LINGUAS; do
+ if has $lingua $QTWITTER_LANGS; then
+ langs="$langs ${lingua}"
+ else
+ for a in $QTWITTER_NOLONGLANGS; do
+ if [[ $lingua == ${a%_*} ]]; then
+ langs="$langs ${a}"
+ fi
+ done
+ fi
+ done
+
+ # remove translations and add only the selected ones
+ sed -e '/^ *LANGS/,/^$/s/^/#/' \
+ -e "/LANGS =/s/.*/LANGS = ${langs}/" \
+ -i translations/translations.pri || die "sed translations failed"
+ # fix insecure runpaths
+ sed -e '/-Wl,-rpath,\$\${DESTDIR}/d' \
+ -i qtwitter-app/qtwitter-app.pro || die "sed rpath failed"
+}
+
+src_configure() {
+ eqmake4 ${PN}.pro PREFIX="/usr"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "emake install failed"
+ dodoc README CHANGELOG || die "dodoc failed"
+}