From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 234C458973 for ; Sat, 6 Feb 2016 17:29:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7081521C00D; Sat, 6 Feb 2016 17:28:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4C8C21C00D for ; Sat, 6 Feb 2016 17:28:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7381E340B1D for ; Sat, 6 Feb 2016 17:28:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1FB18DC for ; Sat, 6 Feb 2016 17:28:53 +0000 (UTC) From: "Wolfram Schlich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wolfram Schlich" Message-ID: <1454779624.c8f77c70cf139c7b197803f9c9cdfa72962b5bdc.wschlich@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/mcabber/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/mcabber/mcabber-9999.ebuild X-VCS-Directories: net-im/mcabber/ X-VCS-Committer: wschlich X-VCS-Committer-Name: Wolfram Schlich X-VCS-Revision: c8f77c70cf139c7b197803f9c9cdfa72962b5bdc X-VCS-Branch: master Date: Sat, 6 Feb 2016 17:28:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c7630c81-b1d2-4c27-944b-c33d697d946d X-Archives-Hash: cf5b3cf2b3d5f051469daa15be87b45a commit: c8f77c70cf139c7b197803f9c9cdfa72962b5bdc Author: Wolfram Schlich gentoo org> AuthorDate: Sat Feb 6 17:27:04 2016 +0000 Commit: Wolfram Schlich gentoo org> CommitDate: Sat Feb 6 17:27:04 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8f77c70 net-im/mcabber: add live ebuild wrt https://github.com/gentoo/gentoo/pull/361 Package-Manager: portage-2.2.27 net-im/mcabber/mcabber-9999.ebuild | 120 +++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/net-im/mcabber/mcabber-9999.ebuild b/net-im/mcabber/mcabber-9999.ebuild new file mode 100644 index 0000000..b4affe7 --- /dev/null +++ b/net-im/mcabber/mcabber-9999.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic autotools-utils mercurial + +DESCRIPTION="A small Jabber console client with various features, like MUC, SSL, PGP" +HOMEPAGE="http://mcabber.com/" +#REV="a18e1b488f1c" +#SRC_URI="http://mcabber.com/hg/index.cgi/archive/${REV}.tar.gz -> ${P}.tar.gz" +EHG_REPO_URI="https://bitbucket.org/McKael/mcabber" +EHG_CHECKOUT_DIR="${WORKDIR}" +EHG_BOOTSTRAP="autogen.sh" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +IUSE="aspell crypt idn modules otr spell ssl vim-syntax" + +LANGS="cs de fr it nl pl ru uk" +# localized help versions are installed only, when LINGUAS var is set +for i in ${LANGS}; do + IUSE="${IUSE} linguas_${i}" +done; + +RDEPEND="crypt? ( >=app-crypt/gpgme-1.0.0 ) + otr? ( >=net-libs/libotr-3.1.0 ) + aspell? ( app-text/aspell ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) + idn? ( net-dns/libidn ) + spell? ( app-text/enchant ) + dev-libs/glib:2 + sys-libs/ncurses:0= + >=net-libs/loudmouth-1.4.3-r1[ssl?]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +## autotools-utils.eclass settings +AUTOTOOLS_AUTORECONF="1" +AUTOTOOLS_IN_SOURCE_BUILD="1" +DOCS=( AUTHORS ChangeLog NEWS README TODO mcabberrc.example doc/README_PGP.txt ) +PATCHES=( + "${FILESDIR}/${PN}-0.10.3-vim-ftdetect.patch" +) + +pkg_setup() { + if use aspell && use spell; then + ewarn "NOTE: You have both USE flags 'aspell' and 'spell' enabled, enchant (USE flag 'spell') will be preferred." + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable crypt gpgme) \ + $(use_enable otr) \ + $(use_enable aspell) \ + $(use_enable spell enchant) \ + $(use_enable modules) \ + $(use_with idn libidn) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + # clean unneeded language documentation + for i in ${LANGS}; do + use linguas_${i} || rm -rf "${ED}"/usr/share/${PN}/help/${i} + done + + # contrib themes + insinto /usr/share/${PN}/themes + doins "${S}"/contrib/themes/* + + # contrib generic scripts + exeinto /usr/share/${PN}/scripts + doexe "${S}"/contrib/*.{pl,py} + + # contrib event scripts + exeinto /usr/share/${PN}/scripts/events + doexe "${S}"/contrib/events/* + + if use vim-syntax; then + cd contrib/vim/ || die + + insinto /usr/share/vim/vimfiles/syntax + doins mcabber_log-syntax.vim + + insinto /usr/share/vim/vimfiles/ftdetect + doins mcabber_log-ftdetect.vim + fi +} + +pkg_postinst() { + elog + elog "MCabber requires you to create a subdirectory .mcabber in your home" + elog "directory and to place a configuration file there." + elog "An example mcabberrc was installed as part of the documentation." + elog "To create a new mcabberrc based on the example mcabberrc, execute the" + elog "following commands:" + elog + elog " mkdir -p ~/.mcabber" + elog " bzcat ${EROOT}usr/share/doc/${PF}/mcabberrc.example.bz2 >~/.mcabber/mcabberrc" + elog + elog "Then edit ~/.mcabber/mcabberrc with your favorite editor." + elog + elog "See the CONFIGURATION FILE and FILES sections of the mcabber" + elog "manual page (section 1) for more information." + elog + elog "From version 0.9.0 on, MCabber supports PGP encryption of messages." + elog "See README_PGP.txt for details." + echo + einfo "Check out ${EROOT}usr/share/${PN} for contributed themes and event scripts." + echo +}