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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06A2515802F for ; Tue, 7 Mar 2023 17:03:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E268E07DB; Tue, 7 Mar 2023 17:03:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F228AE07DB for ; Tue, 7 Mar 2023 17:03:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2EA05341383 for ; Tue, 7 Mar 2023 17:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BBFCB888 for ; Tue, 7 Mar 2023 17:03:50 +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: <1678208589.1fb04c6812477a865bddc158842f24377a6eaa43.tomjbe@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/xastir/, media-radio/xastir/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-radio/xastir/files/xastir-2.1.8-configure.diff media-radio/xastir/xastir-2.1.8-r4.ebuild X-VCS-Directories: media-radio/xastir/files/ media-radio/xastir/ X-VCS-Committer: tomjbe X-VCS-Committer-Name: Thomas Beierlein X-VCS-Revision: 1fb04c6812477a865bddc158842f24377a6eaa43 X-VCS-Branch: master Date: Tue, 7 Mar 2023 17:03:50 +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: 856f7969-f552-4ce2-80af-af5dc8f2bff5 X-Archives-Hash: 2a1204d944f1c3d38eaab2a97775e1eb commit: 1fb04c6812477a865bddc158842f24377a6eaa43 Author: Thomas Beierlein gentoo org> AuthorDate: Tue Mar 7 17:02:33 2023 +0000 Commit: Thomas Beierlein gentoo org> CommitDate: Tue Mar 7 17:03:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb04c68 media-radio/xastir: Fix implicit function declaration in configure.ac Closes: https://bugs.gentoo.org/899846 Signed-off-by: Thomas Beierlein gentoo.org> .../xastir/files/xastir-2.1.8-configure.diff | 16 +++++ media-radio/xastir/xastir-2.1.8-r4.ebuild | 82 ++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/media-radio/xastir/files/xastir-2.1.8-configure.diff b/media-radio/xastir/files/xastir-2.1.8-configure.diff new file mode 100644 index 000000000000..0340f00e241e --- /dev/null +++ b/media-radio/xastir/files/xastir-2.1.8-configure.diff @@ -0,0 +1,16 @@ +# Fix implicit function declaration in configure.ac +# bug 899846 +diff --git a/configure.ac b/configure.ac +index 687bbe9..c137c80 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -646,7 +646,8 @@ fi + save_LDFLAGS="$LDFLAGS" + LDFLAGS="-Wl,--no-keep-memory $LDFLAGS" + AC_LINK_IFELSE( +- [AC_LANG_PROGRAM([[#include ]], ++ [AC_LANG_PROGRAM([[#include ++ #include ]], + [[/* Stupid useless test for linker flags */ + exit(0);]])], + [xa_cv_no_keep_memory=yes], diff --git a/media-radio/xastir/xastir-2.1.8-r4.ebuild b/media-radio/xastir/xastir-2.1.8-r4.ebuild new file mode 100644 index 000000000000..321686006d1b --- /dev/null +++ b/media-radio/xastir/xastir-2.1.8-r4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit autotools flag-o-matic toolchain-funcs + +MY_P=${PN/x/X}-Release-${PV} + +DESCRIPTION="X Amateur Station Tracking and Information Reporting" +HOMEPAGE="https://xastir.org/" +SRC_URI="https://github.com/Xastir/Xastir/archive/Release-${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="geotiff" + +DEPEND=">=x11-libs/motif-2.3:0 + x11-libs/libXt + x11-libs/libX11 + x11-libs/libXpm + x11-apps/xfontsel + dev-libs/libpcre + net-misc/curl + sys-libs/db:= + sci-libs/shapelib + media-gfx/graphicsmagick:=[-q32] + geotiff? ( sci-libs/proj + sci-libs/libgeotiff:= + media-libs/tiff:= )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-2.1.8-configure.diff ) + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + eapply_user + eapply ${PATCHES} + + # fix script location (bug #407185) + eapply "${FILESDIR}"/${PN}-2.1.8-scripts.diff + + # do not filter duplicate flags (see bug #411095) + eapply -p0 "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff + + eautoreconf +} + +src_configure() { + # provide include path to GraphicsMagic for configure stage + append-cflags -I/usr/include/GraphicsMagick + econf \ + --with-shapelib \ + --without-ax25 \ + --without-festival \ + --without-gpsman \ + --without-imagemagick \ + --with-graphicsmagick \ + $(use_with geotiff libproj) \ + $(use_with geotiff) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install + + rm -rf "${D}"/usr/share/doc/${PN} + dodoc AUTHORS ChangeLog CONTRIBUTING.md FAQ README \ + README.Getting-Started README.MAPS README.OSM_maps +} + +pkg_postinst() { + elog "Kernel mode AX.25 and GPSman library not supported." + elog + elog "Remember you have to be root to add addditional scripts," + elog "maps and other configuration data under /usr/share/xastir." +}