summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-11-29 12:42:20 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-11-29 12:42:20 +0000
commit7e49b5d1f51d4f31d3d6e652b56a027fa6a3a479 (patch)
tree04fe75d9cfcdc979eaff21b9584f8af7f8ce0e1e /net-im/qutim
parentia64/sparc stable (diff)
downloadhistorical-7e49b5d1f51d4f31d3d6e652b56a027fa6a3a479.tar.gz
historical-7e49b5d1f51d4f31d3d6e652b56a027fa6a3a479.tar.bz2
historical-7e49b5d1f51d4f31d3d6e652b56a027fa6a3a479.zip
Fix insecure_rpath issue. Fix LINGUAS installation. Fix plugins installation
Package-Manager: portage-2.2_rc54/cvs/Linux x86_64
Diffstat (limited to 'net-im/qutim')
-rw-r--r--net-im/qutim/ChangeLog9
-rw-r--r--net-im/qutim/Manifest4
-rw-r--r--net-im/qutim/files/fix_insecure_rpath.patch14
-rw-r--r--net-im/qutim/qutim-0.2.0-r1.ebuild118
4 files changed, 143 insertions, 2 deletions
diff --git a/net-im/qutim/ChangeLog b/net-im/qutim/ChangeLog
index 774a4c98645d..e66e2cf029ec 100644
--- a/net-im/qutim/ChangeLog
+++ b/net-im/qutim/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-im/qutim
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/qutim/ChangeLog,v 1.2 2009/11/29 09:39:13 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/qutim/ChangeLog,v 1.3 2009/11/29 12:42:19 hwoarang Exp $
+
+*qutim-0.2.0-r1 (29 Nov 2009)
+
+ 29 Nov 2009; Markos Chandras <hwoarang@gentoo.org> +qutim-0.2.0-r1.ebuild,
+ +files/fix_insecure_rpath.patch:
+ Fix insecure_rpath issue. Fix LINGUAS installation. Fix plugins
+ installation
29 Nov 2009; Markos Chandras <hwoarang@gentoo.org> qutim-0.2.0.ebuild:
Fix phonon dependencies
diff --git a/net-im/qutim/Manifest b/net-im/qutim/Manifest
index cdc127a267ea..abc785e975a4 100644
--- a/net-im/qutim/Manifest
+++ b/net-im/qutim/Manifest
@@ -1,4 +1,6 @@
+AUX fix_insecure_rpath.patch 606 RMD160 fa10181612a312e9d9b7ae00a85b2ce54ef64cb7 SHA1 022524a700c00aa8ac73eb028931d1d8b48cb7cb SHA256 6647046168c9dd8d2594eb2ea10a0559e3f2bc2817eb91df0150ee94aabd0339
DIST qutim-0.2.0.tar.bz2 2536041 RMD160 59ab7bb364c0cb15deba96cc0c50471a3902f96c SHA1 b21399950252a100bd99840f6d6dc8093eaeb082 SHA256 272fba12d2fea5a550a504a3fb75ea5852e2fd086f0873079433d6361cfbc232
+EBUILD qutim-0.2.0-r1.ebuild 3024 RMD160 81d336d85684b3c9501b790d023db5637638cf3b SHA1 e1484123c6d920a4d22adc0e56d13305aa512966 SHA256 cbbcbf4cce333df207da912ffdec49b7e4f299491a159bfbebf8ed8e192fe7ca
EBUILD qutim-0.2.0.ebuild 1989 RMD160 31c682b82bda37b5138b507bd3855633ff8daad6 SHA1 fe692200d42fc60d0e5267505575b8d2d934c620 SHA256 4d3499d84a715fe2b85cafa4dfb67b070ff61cd3b6f4f21498bd9e99016aa86c
-MISC ChangeLog 525 RMD160 0825823957a5404aeb77c2a79e5ce69c65dedcc5 SHA1 93b2c473955aa4f41ca6ddfba1468eb8f7ed8c9b SHA256 59bb18c8d648d20b908c35ae888e9c1e120aedc2fec198f43e4e90676ca2eb96
+MISC ChangeLog 750 RMD160 7aa687766c8306d28a3fb1d2df7c442e0e8d97ae SHA1 920985a1811217d49e937489a2c1ba11535c8532 SHA256 cfad5f198c387ce020eb2cd7c7bdfdec6d5f7db968d196849538c30a21d3a948
MISC metadata.xml 563 RMD160 918b74cbe82aa7f328bf3d718828c5247f742121 SHA1 e11520c7e149a948796b7bd240fc985ce9376955 SHA256 f1c9f4625cbb9deea07955550cc9f536a8a3ef45ebe99ebebf516929ab1380a4
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 000000000000..36f062980a2d
--- /dev/null
+++ b/net-im/qutim/files/fix_insecure_rpath.patch
@@ -0,0 +1,14 @@
+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)
diff --git a/net-im/qutim/qutim-0.2.0-r1.ebuild b/net-im/qutim/qutim-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..6a18f68833a1
--- /dev/null
+++ b/net-im/qutim/qutim-0.2.0-r1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/qutim/qutim-0.2.0-r1.ebuild,v 1.1 2009/11/29 12:42:19 hwoarang Exp $
+
+EAPI="2"
+
+inherit eutils qt4 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 jabber gnutls mrim ssl vkontakte yandexnarod"
+
+DEPEND="x11-libs/qt-gui:4[debug?]
+ x11-libs/qt-webkit:4
+ || ( media-sound/phonon x11-libs/qt-phonon )
+ jabber? ( ssl? ( dev-libs/openssl )
+ gnutls? ( net-libs/gnutls ) )"
+RDEPEND="${DEPEND}"
+
+LANGSLONG="bg_BG cs_CZ de_DE uk_UA"
+LANGS="ru"
+
+for X in ${LANGSLONG}; do
+ IUSE="${IUSE} linguas_${X%_*}"
+done
+for X in ${LANGS}; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+PATCHES=(
+ "${FILESDIR}"/fix_insecure_rpath.patch
+)
+
+src_prepare() {
+ qt4_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
+ local found=0
+ # build protocol support
+ if use jabber; 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.png \
+ "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
+
+}