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 BAD361382C5 for ; Thu, 14 Jan 2021 04:06:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2A61E0916; Thu, 14 Jan 2021 04:06:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 93483E0916 for ; Thu, 14 Jan 2021 04:06:31 +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 1B530340D43 for ; Thu, 14 Jan 2021 04:06:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 710B24B for ; Thu, 14 Jan 2021 04:06:28 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1610597098.42348d0e8a8705f2ff5877933ffc291df85b81b2.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hfstospell/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild dev-util/hfstospell/metadata.xml X-VCS-Directories: dev-util/hfstospell/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 42348d0e8a8705f2ff5877933ffc291df85b81b2 X-VCS-Branch: master Date: Thu, 14 Jan 2021 04:06:28 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3b24bf62-85c8-46d0-acef-d481ad0f970c X-Archives-Hash: 8d61f9ef71999f894291af9d193a39ab commit: 42348d0e8a8705f2ff5877933ffc291df85b81b2 Author: Joonas Niilola gentoo org> AuthorDate: Thu Jan 14 04:04:58 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Thu Jan 14 04:04:58 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42348d0e dev-util/hfstospell: fix compiling with clang Signed-off-by: Joonas Niilola gentoo.org> dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild | 45 ++++++++++++++++++++++++++ dev-util/hfstospell/metadata.xml | 3 ++ 2 files changed, 48 insertions(+) diff --git a/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild b/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild new file mode 100644 index 00000000000..3b6cb8750ad --- /dev/null +++ b/dev-util/hfstospell/hfstospell-0.5.2-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +DESCRIPTION="HFST spell checker library and command line tool" +HOMEPAGE="https://github.com/hfst/hfst-ospell" +SRC_URI="https://github.com/hfst/hfst-ospell/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="clang" + +DEPEND="app-arch/libarchive + dev-libs/icu:= + !clang? ( + dev-cpp/libxmlpp:2.6 + dev-libs/tinyxml2 + )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/hfst-ospell-${PV}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # https://github.com/hfst/hfst-ospell/issues/48 + if tc-is-clang; then + econf --without-libxmlpp --without-tinyxml2 + else + default + fi +} + +src_install() { + default + find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die +} diff --git a/dev-util/hfstospell/metadata.xml b/dev-util/hfstospell/metadata.xml index 6b0a0fb3a72..79d3d066cce 100644 --- a/dev-util/hfstospell/metadata.xml +++ b/dev-util/hfstospell/metadata.xml @@ -5,4 +5,7 @@ juippis@gentoo.org Joonas Niilola + + Use different logic in ebuild when clang is used +