From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1B979139694 for ; Wed, 24 May 2017 06:17:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22AB021C09C; Wed, 24 May 2017 06:17:41 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2AE721C09C for ; Wed, 24 May 2017 06:17:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B8913416D1 for ; Wed, 24 May 2017 06:17:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3FA927441 for ; Wed, 24 May 2017 06:17:38 +0000 (UTC) From: "Thomas Beierlein" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Beierlein" Message-ID: <1495606609.d328151585efccf332d7c5a192f0100179f8278e.tomjbe@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/ibp/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-radio/ibp/ibp-0.21-r1.ebuild X-VCS-Directories: media-radio/ibp/ X-VCS-Committer: tomjbe X-VCS-Committer-Name: Thomas Beierlein X-VCS-Revision: d328151585efccf332d7c5a192f0100179f8278e X-VCS-Branch: master Date: Wed, 24 May 2017 06:17:38 +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: 1abfa3af-e964-4708-8043-ed53c16c7a50 X-Archives-Hash: a13f2e90107520e47098b6c7722c987d commit: d328151585efccf332d7c5a192f0100179f8278e Author: Thomas Beierlein gentoo org> AuthorDate: Wed May 24 06:16:49 2017 +0000 Commit: Thomas Beierlein gentoo org> CommitDate: Wed May 24 06:16:49 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3281515 media-radio/ibp: Fix tinfo problem Package-Manager: Portage-2.3.6, Repoman-2.3.2 media-radio/ibp/ibp-0.21-r1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/media-radio/ibp/ibp-0.21-r1.ebuild b/media-radio/ibp/ibp-0.21-r1.ebuild new file mode 100644 index 00000000000..3cdb7e826de --- /dev/null +++ b/media-radio/ibp/ibp-0.21-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +inherit toolchain-funcs + +DESCRIPTION="Shows currently transmitting beacons of the International Beacon Project (IBP)" +HOMEPAGE="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/${PN}.html" +SRC_URI="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X" + +RDEPEND="sys-libs/ncurses:0 + X? ( x11-libs/libX11 )" +DEPEND="${RDEPEND} + X? ( x11-misc/imake )" + +src_prepare() { + # respect CFLAGS if built without USE=X + sed -i -e "s/= -D/+= -D/" Makefile || die + # fix compile if ncurses is built with separate libtinfo + if has_version "sys-libs/ncurses:0[tinfo]" ;then + sed -i -e "s/-lcurses/-lcurses -ltinfo/" Imakefile Makefile || die + fi + + eapply_user +} + +src_configure() { + if use X ;then + xmkmf || die + fi +} + +src_compile() { + if use X ; then + emake \ + CC="$(tc-getCC)" \ + LOCAL_LDFLAGS="${LDFLAGS}" \ + CDEBUGFLAGS="${CFLAGS}" + else + emake CC="$(tc-getCC)" + fi +} + +src_install() { + dobin ${PN} + doman ${PN}.1 +}