From a51da4f7acfb2da41cb5729c00d19c96cbed63c2 Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Mon, 7 Sep 2015 17:08:14 +0200 Subject: sci-electronics/gsmc: Add missing libm (bug 503774). Thanks B. Leverett. Bump to EAPI=5 Package-Manager: portage-2.2.20.1 --- sci-electronics/gsmc/Manifest | 2 +- .../gsmc/files/gsmc-1.1-autotools.patch | 14 +++++---- sci-electronics/gsmc/gsmc-1.1-r2.ebuild | 35 ++++++++++++++++++++++ 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 sci-electronics/gsmc/gsmc-1.1-r2.ebuild (limited to 'sci-electronics/gsmc') diff --git a/sci-electronics/gsmc/Manifest b/sci-electronics/gsmc/Manifest index 965a659f3edc..2f13dd8d0401 100644 --- a/sci-electronics/gsmc/Manifest +++ b/sci-electronics/gsmc/Manifest @@ -1 +1 @@ -DIST gsmc-1.1.tar.gz 122726 RMD160 80406e224b485d24fe3d0505a8cb861f39b1fa31 SHA1 781f0c51ebe041419071703b8102e56536b47418 SHA256 3cd7fa7fb8712f878229e085ac8881bd829893da31dce96c3e98118798d63fda +DIST gsmc-1.1.tar.gz 122726 SHA256 3cd7fa7fb8712f878229e085ac8881bd829893da31dce96c3e98118798d63fda SHA512 ea9db9e4917d82e0d9fa40318a971b63443611ab91b2321115d68fa4083de1879086e5c3392607347e3222fabb9efd5f8175ebb8cd122da479fac1ce7e2d9696 WHIRLPOOL bf49b49bcd8b7dd0f4f30b5f02ae913a821c83fd66e6c45c639d597e595aa950b581fc00ba62476406192a590ef0d9693a5ffa6da97e42c9216ee45ff257b55a diff --git a/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch b/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch index 94b0558d6b19..4418e31b115a 100644 --- a/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch +++ b/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch @@ -1,6 +1,6 @@ ---- gsmc-1.1.orig/configure.ac 2011-01-12 18:14:55.633360421 -0200 -+++ gsmc-1.1/configure.ac 2011-01-12 19:58:12.617251642 -0200 -@@ -7,26 +7,13 @@ +--- configure.ac.orig 2015-09-07 16:25:35.000000000 +0200 ++++ configure.ac 2015-09-07 16:26:30.000000000 +0200 +@@ -7,26 +7,17 @@ AM_INIT_AUTOMAKE(gsmc, 1.0, ik5nax@amsat.org) # Checks for programs. @@ -27,12 +27,16 @@ -done +PKG_PROG_PKG_CONFIG +PKG_CHECK_MODULES([GTK], [gtk+-2.0]) ++dnl Check for libm for floor ++AC_SEARCH_LIBS([floor], [m], [], [ ++ AC_MSG_ERROR([unable to find the floor() function]) ++]) # Checks for header files. AC_HEADER_STDC ---- gsmc-1.1.orig/Makefile.am 2011-01-12 18:14:55.633360421 -0200 -+++ gsmc-1.1/Makefile.am 2011-01-12 20:37:21.034615478 -0200 +--- Makefile.am.orig 2011-01-12 18:14:55.633360421 -0200 ++++ Makefile.am 2011-01-12 20:37:21.034615478 -0200 @@ -2,8 +2,8 @@ bin_PROGRAMS=gsmc diff --git a/sci-electronics/gsmc/gsmc-1.1-r2.ebuild b/sci-electronics/gsmc/gsmc-1.1-r2.ebuild new file mode 100644 index 000000000000..01fe3a6b0b8b --- /dev/null +++ b/sci-electronics/gsmc/gsmc-1.1-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit autotools eutils + +DESCRIPTION="A GTK program for doing Smith Chart calculations" +HOMEPAGE="http://www.qsl.net/ik5nax/" +SRC_URI="http://www.qsl.net/ik5nax/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND=" + dev-libs/glib:2 + x11-libs/gtk+:2" +DEPEND="${CDEPEND} + virtual/pkgconfig" +RDEPEND="${CDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-autotools.patch" + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS NEWS README TODO + insinto /usr/share/${PN} + doins example* +} -- cgit v1.2.3-65-gdbad