public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/licq/
Date: Mon,  6 Feb 2017 02:16:27 +0000 (UTC)	[thread overview]
Message-ID: <1486347356.56450f4e204e7ee194a72dcc78c58d8d8352f21d.polynomial-c@gentoo> (raw)

commit:     56450f4e204e7ee194a72dcc78c58d8d8352f21d
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  6 02:15:56 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Feb  6 02:15:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56450f4e

net-im/licq: Fixced RDEPEND (bug #608008). EAPI-6 bump.

Ebuild overhaul and cleanup.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 net-im/licq/licq-1.8.2.ebuild | 72 ++++++++++++++++++++++++++-----------------
 1 file changed, 44 insertions(+), 28 deletions(-)

diff --git a/net-im/licq/licq-1.8.2.ebuild b/net-im/licq/licq-1.8.2.ebuild
index 88a4311..b1aeafd 100644
--- a/net-im/licq/licq-1.8.2.ebuild
+++ b/net-im/licq/licq-1.8.2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit cmake-utils eutils flag-o-matic
 
@@ -13,34 +13,49 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
 LICENSE="GPL-2"
 SLOT="2"
 KEYWORDS="alpha amd64 ia64 ppc sparc x86"
-IUSE="debug doc linguas_he nls socks5 ssl xosd aosd xmpp qt4 msn"
+IUSE="debug doc l10n_he nls socks5 ssl xosd aosd xmpp qt4 msn"
 
-RDEPEND=">=app-crypt/gpgme-1
+RDEPEND="
+	>=app-crypt/gpgme-1
+	app-text/hunspell
 	dev-libs/boost:=
+	x11-libs/libXScrnSaver
 	xmpp? ( net-libs/gloox )
 	qt4? ( dev-qt/qtgui:4 )
 	socks5? ( net-proxy/dante )
 	ssl? ( >=dev-libs/openssl-0.9.5a:0= )
 	xosd? ( x11-libs/xosd )
-	aosd? ( x11-libs/libaosd )"
-DEPEND="${RDEPEND}
+	aosd? ( x11-libs/libaosd )
+"
+DEPEND="
+	${RDEPEND}
 	doc? ( app-doc/doxygen[dot] )
-	nls? ( sys-devel/gettext )"
+	nls? ( sys-devel/gettext )
+"
 
 src_prepare() {
-	local licq_plugins="auto-reply icq rms"
-	use msn && licq_plugins+=" msn"
-	use xosd && licq_plugins+=" osd"
-	use aosd && licq_plugins+=" aosd"
-	use xmpp && licq_plugins+=" jabber"
-	use qt4 && licq_plugins+=" qt4-gui"
-
-	local plugins="" x
-	for x in ${licq_plugins}; do
-		plugins+=" ${x}\/CMakeLists.txt"
+	default
+
+	local licq_plugins=(
+		auto-reply
+		icq
+		rms
+		$(usex aosd aosd '')
+		$(usex msn msn '')
+		$(usex qt4 qt4-gui '')
+		$(usex xmpp jabber '')
+		$(usex xosd osd '')
+	)
+
+	local plugins=() x
+	for x in ${licq_plugins[@]} ; do
+		plugins+=( ${x}/CMakeLists.txt )
 	done
 
-	sed -i -e "s/file(GLOB cmake_plugins.*$/set(cmake_plugins ${plugins})/" plugins/CMakeLists.txt
+	# somehow sed doesn't like an array variable
+	x="${plugins[@]}"
+	sed -e "s|file(GLOB cmake_plugins.*$|set(cmake_plugins ${x})|" \
+		-i plugins/CMakeLists.txt || die
 }
 
 pkg_setup() {
@@ -49,23 +64,24 @@ pkg_setup() {
 }
 
 src_configure() {
-	local myopts="-DCMAKE_BUILD_TYPE=$(use debug && echo 'Debug' || echo 'Release')"
-	mycmakeargs="$myopts
-		$(cmake-utils_use doc USE_DOXYGEN)
-		$(cmake-utils_use linguas_he USE_HEBREW)
-		$(cmake-utils_use nls ENABLE_NLS)
-		$(cmake-utils_use socks5 USE_SOCKS5)
-		$(cmake-utils_use ssl USE_OPENSSL)
-		-DUSE_FIFO=ON
+	mycmakeargs=(
 		-DBUILD_PLUGINS=ON
-		-DBUILD_TESTS=OFF"
+		-DBUILD_TESTS=OFF
+		-DCMAKE_BUILD_TYPE="$(usex debug 'Debug' 'Release')"
+		-DENABLE_NLS="$(usex nls)"
+		-DUSE_DOXYGEN="$(usex doc)"
+		-DUSE_FIFO=ON
+		-DUSE_HEBREW="$(usex l10n_he)"
+		-DUSE_OPENSSL="$(usex ssl)"
+		-DUSE_SOCKS5="$(usex socks5)"
+	)
 
 	cmake-utils_src_configure
 }
 
 src_install() {
+	local DOCS=( README )
 	cmake-utils_src_install
-	dodoc README
 
 	docinto doc
 	dodoc doc/*


             reply	other threads:[~2017-02-06  2:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06  2:16 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-12-29 17:25 [gentoo-commits] repo/gentoo:master commit in: net-im/licq/ Lars Wendler
2016-05-18 10:49 Lars Wendler
2016-03-02 13:41 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486347356.56450f4e204e7ee194a72dcc78c58d8d8352f21d.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox