3c3 < # $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-0.14-r4.ebuild,v 1.13 2013/03/05 19:59:54 maksbotan Exp $ --- > # $Header: $ 6,9c6 < < inherit eutils qt4-r2 multilib < < MY_P="${P/_rc/-rc}" --- > inherit qt4-r2 multilib 13,19c10 < # 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="mirror://sourceforge/${PN}/${MY_P}.tar.bz2 < 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 )" --- > SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" 23,24c14,15 < KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd" < IUSE="crypt dbus debug doc extras jingle spell ssl xscreensaver webkit" --- > #KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd" > KEYWORDS="~amd64" 26a18,20 > #IUSE="crypt dbus debug doc extras jingle spell ssl xscreensaver webkit" > IUSE="crypt dbus debug doc jingle spell ssl xscreensaver" > 30c24 < #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm" --- > # SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG}.qm" 33,36c27,28 < RDEPEND=">=dev-qt/qtgui-4.4:4[qt3support,dbus?] < >=dev-qt/qt3support-4.4:4 < >=app-crypt/qca-2.0.2:2 < spell? ( >=app-text/enchant-1.3.0 ) --- > RDEPEND=">=dev-qt/qtgui-4.7:4[dbus?] > >=app-crypt/qca-2:2 38c30 < extras? ( webkit? ( dev-qt/qtwebkit:4 ) ) --- > spell? ( >=app-text/enchant-1.3.0 ) 43d34 < sys-devel/qconf 46a38 > ssl? ( app-crypt/qca-ossl:2 ) 48,91c40 < app-crypt/qca-ossl:2 ) < ssl? ( app-crypt/qca-ossl:2 )" < < S=${WORKDIR}/${MY_P} < < src_prepare() { < epatch "${FILESDIR}/psi-0.14-qt-compat.patch" < epatch "${FILESDIR}/psi-0.14-minizip-detection.patch" < epatch "${FILESDIR}/psi-0.14-input-validation.patch" < epatch "${FILESDIR}/psi-0.14-drop-debug-cflags.patch" < sed -i '/#include /a #include ' \ < iris/src/irisnet/corelib/netinterface_unix.cpp || die 'sed failed' < < 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." < < EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} < 005-less-includes.diff < 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 < else < if use webkit; then < ewarn "Webkit support disabled as it is only available in Psi+" < ewarn "(USE='extras' enabled)." < fi < fi < < qconf || die "Failed to create ./configure." < rm -rf third-party/qca || die # We use system libraries. < } --- > app-crypt/qca-ossl:2 )" 99d47 < --disable-bundled-qca 105,106c53 < $(use xscreensaver || echo '--disable-xss') < $(use extras && { use webkit && echo '--enable-qtwebkit';} )" --- > $(use xscreensaver || echo '--disable-xss')" 109,111c56 < ${confcmd} || die "configure failed" < # Makefile is not always created... < [[ ! -f Makefile ]] && die "configure failed" --- > ${confcmd} 118,123d62 < < if use doc; then < cd doc || die < mkdir -p api || die # 259632 < emake api_public < fi 128c67 < rm "${D}"/usr/share/psi/{COPYING,README} || die --- > rm "${D}"{COPYING,README} 137c76 < cd doc || die --- > cd doc 142c81 < cd "${WORKDIR}" || die --- > cd "${WORKDIR}" 154,163c93,98 < if ${nolangs}; then < for LNG in ${LANGS}; do < doins ${LNG}/${PN}_${LNG}.qm < newins ${LNG}/INFO INFO.${LNG} < done < fi < < if use extras; then < cp -a "${WORKDIR}"/iconsets/* "${D}"/usr/share/${PN}/iconsets/ || die < fi --- > #if ${nolangs}; then > # for LNG in ${LANGS}; do > # doins ${LNG}/${PN}_${LNG}.qm > # newins ${LNG}/INFO INFO.${LNG} > # done > #fi