From d779ef9c5bb9a667900819b011d916a0a78e9413 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Wed, 13 Jun 2012 13:05:42 +0400 Subject: [PATCH] add ebuild for qutim 0.2 branch(saved from main portage tree CVS) --- net-im/qutim/Manifest | 5 + net-im/qutim/files/fix_insecure_rpath.patch | 28 +++++ net-im/qutim/files/qutim-0.2.0-gold.patch | 10 ++ net-im/qutim/metadata.xml | 25 +++++ net-im/qutim/qutim-0.2.0-r9999.ebuild | 111 ++++++++++++++++++++ 5 files changed, 179 insertions(+) create mode 100644 net-im/qutim/Manifest create mode 100644 net-im/qutim/files/fix_insecure_rpath.patch create mode 100644 net-im/qutim/files/qutim-0.2.0-gold.patch create mode 100644 net-im/qutim/metadata.xml create mode 100644 net-im/qutim/qutim-0.2.0-r9999.ebuild diff --git a/net-im/qutim/Manifest b/net-im/qutim/Manifest new file mode 100644 index 0000000..341e611 --- /dev/null +++ b/net-im/qutim/Manifest @@ -0,0 +1,5 @@ +AUX fix_insecure_rpath.patch 1129 RMD160 e7c10a11ac11ec90eba6d25b6b84f0f4701f5ae1 SHA1 ac79bf92d96437273379db12bb928bd9cee5408d SHA256 cf74d7e20071d398f617faff7e7470b221f599cc0677ddb676ea57bc58a5d4ad +AUX qutim-0.2.0-gold.patch 178 RMD160 85144ae8b7173ee7fe4680c278cd322a60dafaf8 SHA1 dec2f5a5bc028c96a56c26b61665f36568941007 SHA256 1fa929958b466b8f469f42479bb9b9a9203fb3d3b84f09eea2cd8e3e2cdedb66 +DIST qutim-0.2.0.tar.bz2 2536041 RMD160 59ab7bb364c0cb15deba96cc0c50471a3902f96c SHA1 b21399950252a100bd99840f6d6dc8093eaeb082 SHA256 272fba12d2fea5a550a504a3fb75ea5852e2fd086f0873079433d6361cfbc232 +EBUILD qutim-0.2.0-r9999.ebuild 2925 RMD160 4a7e0325e405f18041e65bd2d9a3f9f61a2bbae2 SHA1 18bbce30e1faa085bbbaf294fd99149c73b500a5 SHA256 8a92f85d513d6e377338e79032681562bce853ac0355fbf60ea413be2b005f48 +MISC metadata.xml 1569 RMD160 a992862444e9323ad702cdd2cd26d990e4d44cbe SHA1 5bfb4b31afec9b17fdae68714ca895442741b018 SHA256 0f0ee003e40d3f0e3a050e4b231307fa4147bd187e009cd1efdbadf433a48bfa diff --git a/net-im/qutim/files/fix_insecure_rpath.patch b/net-im/qutim/files/fix_insecure_rpath.patch new file mode 100644 index 0000000..14c8273 --- /dev/null +++ b/net-im/qutim/files/fix_insecure_rpath.patch @@ -0,0 +1,28 @@ +Index: qutim-0.2.0/CMakeLists.txt +=================================================================== +--- qutim-0.2.0.orig/CMakeLists.txt ++++ qutim-0.2.0/CMakeLists.txt +@@ -46,6 +46,9 @@ ADD_DEFINITIONS( -DQUTIM_SVN_REVISION=${ + SET (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + SET (CMAKE_BUILD_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) ++SET (CMAKE_SKIP_BUILD_RPATH TRUE) ++SET (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) ++ + LIST (APPEND CMAKE_MODULE_PATH "cmake") + LIST (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + SET (QT_USE_QTNETWORK true) +Index: qutim-0.2.0/plugins/jabber/CMakeLists.txt +=================================================================== +--- qutim-0.2.0.orig/plugins/jabber/CMakeLists.txt ++++ qutim-0.2.0/plugins/jabber/CMakeLists.txt +@@ -11,6 +11,9 @@ file( GLOB_RECURSE QUTIM_UI src/*.ui ) + + SET (JABBER_LIBS "") + SET (JABBER_INCLUDE_DIR "") ++SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) ++SET (CMAKE_SKIP_BUILD_RPATH TRUE) ++SET (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) + + if( GLOOX_SHARED OR NOT GLOOX_PATH ) + SET( GLOOX_REQUIRED ) diff --git a/net-im/qutim/files/qutim-0.2.0-gold.patch b/net-im/qutim/files/qutim-0.2.0-gold.patch new file mode 100644 index 0000000..9b96f70 --- /dev/null +++ b/net-im/qutim/files/qutim-0.2.0-gold.patch @@ -0,0 +1,10 @@ +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -446,6 +446,7 @@ + ${QT_LIBRARIES} + ${QT_QTMAIN_LIBRARY} + ${QUTIM_LIBS} ++ -lX11 + ) + + SET (module_install_dir "${CMAKE_ROOT}/Modules") \ No newline at end of file diff --git a/net-im/qutim/metadata.xml b/net-im/qutim/metadata.xml new file mode 100644 index 0000000..33a66e4 --- /dev/null +++ b/net-im/qutim/metadata.xml @@ -0,0 +1,25 @@ + + + + + Enable spellchecking using app-text/aspell + Enable integration with gnome-extra/avant-window-navigator + Enable AES crypto plugin + Enable history importer plugin + Enable spellchecking using app-text/hunspell + Enable IRC protocol support + Enable Growl-like kinetic popups plugin + Enable mail.ru protocol support + Add sound support via x11-libs/qt-multimedia + Enable plugin for encrypted conversations (Off-The-Record messaging) + Add sound support via media-libs/phonon or x11-libs/qt-phonon + Enable libpurple-based protocol support + Enable QtQuick-based chat plugin + Add sound support via media-libs/sdl-mixer + Enable telepathy-based protocol support + Enable vkontakte protocol support + Enable Adium-like WebView plugin + Use X screensaver protocol extension to monitor idle/active status based on mouse/keyboard events + + + diff --git a/net-im/qutim/qutim-0.2.0-r9999.ebuild b/net-im/qutim/qutim-0.2.0-r9999.ebuild new file mode 100644 index 0000000..dde9d5d --- /dev/null +++ b/net-im/qutim/qutim-0.2.0-r9999.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/qutim/Attic/qutim-0.2.0-r4.ebuild,v 1.1 2012/03/16 11:58:25 johu Exp $ + +EAPI="2" +LANGSLONG="bg_BG cs_CZ de_DE uk_UA" +LANGS="ru" + +inherit eutils qt4-r2 cmake-utils +MY_PN="${PN/im/IM}" + +DESCRIPTION="New Qt4-based Instant Messenger (ICQ)." +HOMEPAGE="http://www.qutim.org" +LICENSE="GPL-2" +SRC_URI="http://qutim.org/uploads/src/${P}.tar.bz2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug histman icq irc xmpp gnutls mrim ssl vkontakte yandexnarod" + +DEPEND="x11-libs/qt-gui:4[debug?] + x11-libs/qt-webkit:4 + || ( media-libs/phonon x11-libs/qt-phonon ) + xmpp? ( ssl? ( dev-libs/openssl ) + gnutls? ( net-libs/gnutls ) )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/fix_insecure_rpath.patch + "${FILESDIR}"/${P}-gold.patch +) + +src_prepare() { + qt4-r2_src_prepare + # fix translations directory + einfo "Fixing LINGUAS path" + sed -i "s/languages/\/usr\/share\/${PN}\/languages/" src/${PN}.cpp +} + +src_compile() { + # build main executable + cmake-utils_src_compile + found=0 + # build protocol support + if use xmpp; then + found=1 + cd "${S}"/plugins/jabber || die + mkdir build + cd build + cmake -C "${TMPDIR}"/gentoo_common_config.cmake \ + $(cmake-utils_use ssl OpenSSL) \ + $(cmake-utils_use gnutls GNUTLS) ../ || die + emake || die + fi + # build mrim + if use mrim; then + found=1 + cd "${S}"/plugins/mrim || die + mkdir build + cd build + cmake -C "${TMPDIR}"/gentoo_common_config.cmake ../ || die + emake || die "failed to compile mrim plugin" + fi + # Qt4 based projects so I shall use eqmake4 + cd "${S}"/plugins || die + for i in histman yandexnarod icq irc vkontakte;do + if use ${i}; then + found=1 + cd "${i}" + einfo "now building ${i}-plugin" + eqmake4 ${i}.pro + emake || die "failed to compile ${i} plugin" + cd .. + fi + done + +} + +src_install(){ + # not recommended by upstream and probably broken + #cmake-utils_src_install + dobin "${WORKDIR}/${P}_build/${PN}" || die + + cd "${S}"/plugins || die + insinto "/usr/$(get_libdir)/qutim" + [[ $found -eq 1 ]] && doins $(find . -type f -executable -iname "*.so") + doicon "${S}"/icons/${PN}_64.png || die "Failed to install icon" + make_desktop_entry ${PN} ${MY_PN} ${PN}_64 \ + "Network;InstantMessaging;Qt" || die "make_desktop_entry failed" + + #install linguas + for X in ${LANGSLONG}; do + for Z in ${LINGUAS}; do + if [[ ${X%_*} == ${Z} ]]; then + einfo "Installing ${Z} translation files" + insinto /usr/share/${PN}/languages/${X}/ + doins -r "${S}"/languages/${X}/binaries/* || die "failed to install ${X} translation" + fi + done + done + for X in ${LANGS}; do + for Z in ${LINGUAS}; do + if [[ ${X} == ${Z} ]]; then + einfo "Installing ${Z} translation files" + insinto /usr/share/${PN}/languages/${X}/ + doins -r "${S}"/languages/${X}/binaries/* || die "failed to install ${X} translation" + fi + done + done + +}