summaryrefslogtreecommitdiff
path: root/sci-electronics/gsmc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-electronics/gsmc
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-electronics/gsmc')
-rw-r--r--sci-electronics/gsmc/Manifest6
-rw-r--r--sci-electronics/gsmc/files/gsmc-1.1-autotools.patch52
-rw-r--r--sci-electronics/gsmc/gsmc-1.1-r2.ebuild34
-rw-r--r--sci-electronics/gsmc/metadata.xml8
4 files changed, 100 insertions, 0 deletions
diff --git a/sci-electronics/gsmc/Manifest b/sci-electronics/gsmc/Manifest
new file mode 100644
index 000000000000..ff7031dad3c9
--- /dev/null
+++ b/sci-electronics/gsmc/Manifest
@@ -0,0 +1,6 @@
+AUX gsmc-1.1-autotools.patch 1417 SHA256 032a0fdd2aa08e9c21ae3b7c7dc4bc13d43e838992253e5277a48345b82ae730 SHA512 5355f5d480afc84950edb2b74d947201c22f722410ced1b645c2e58028e994aff4ca8dd94f658f67f2632753c2584545281e92d30415f2a3d78766cb974d6496 WHIRLPOOL aaef69d2e25d26c06f3e74c31a617930a492bb4c89ab4d0c2dc01d2c60d51eb1c51db100ad9641071306e537e5dbde93faf9b292574b9eb524ff865cb0ded2a8
+DIST gsmc-1.1.tar.gz 122726 SHA256 3cd7fa7fb8712f878229e085ac8881bd829893da31dce96c3e98118798d63fda SHA512 ea9db9e4917d82e0d9fa40318a971b63443611ab91b2321115d68fa4083de1879086e5c3392607347e3222fabb9efd5f8175ebb8cd122da479fac1ce7e2d9696 WHIRLPOOL bf49b49bcd8b7dd0f4f30b5f02ae913a821c83fd66e6c45c639d597e595aa950b581fc00ba62476406192a590ef0d9693a5ffa6da97e42c9216ee45ff257b55a
+EBUILD gsmc-1.1-r2.ebuild 654 SHA256 d445d4ff5e4ac255d75e039032ccaebfa71286a8e9f1275679ca95e404d7793f SHA512 6fae3ab953c9a7989973ef1ec088291f24a4c27506ff1ddc7c63bfd39c78b38221d535dcfbba7cb6a69503d51bda41fc10ad5843ddfb49bba9097a003332bfec WHIRLPOOL 4eeb2a683e4084a521a45cf91b9604e9b53bee93272736716ee488f213b27e72d5dea6c0982125c0d7331cc996555340c187c28788296cc261eecded025a9ea6
+MISC ChangeLog 2821 SHA256 7d000f480f6fff1a7daa737ec5a53b93a033090010faebd67511bb8684c1e9ec SHA512 a520b3843f12551a77bdb235d7bbb33644fe1c9041d6bec44fffd31b68ff9108e70c8e880b3a04c78d464f6c673cf31e9d663a7a80431f1c9b83bcd4d441b66f WHIRLPOOL f11556101b924bf6502c5a85d2cb08f20a6dc8cfe2c6323dfb5e3428a11eb41490d7e9e1bf70f99ab661c46a06025799c6738c61d96e96ebd34c21418e1fdd00
+MISC ChangeLog-2015 980 SHA256 309a7ad1dcebcdb371d8f50a00ffd16a676c53e96648d41e6edac9d28970ad03 SHA512 bed0a21ffcd5514457bad57df577c34313b80bcfcd3ccd97ca41854eb64d115b3aa6ae2c2f62d6c2bb021e48fe990ec8e7926710d09d1a56828af7c30101caf9 WHIRLPOOL 1aa9ece66ec04238dce3640c08780f16c1e9d4c1698f8e9aafe5bad7b5c156de30c079895f7f2abeb8f0adb432b6007395986a4879b0e4525fe61b3a825a4b45
+MISC metadata.xml 265 SHA256 c10a0e8aadb007d7e00832704fc5066968981d93a6c3b7ff4a0e38c6b76d7d12 SHA512 21c421dc2864d898fdf1e5b723e323a6dbbd72cfd32b57eb14776345aba19611c7c64305c63f058fc4767fbd937c9a6252a3b296354739cde07bcc50dc48b756 WHIRLPOOL 15cfcdce4166ea9fed65f8820fbdb78d9afdd3e34a9e759527f3ae933cf3729b8314a1568aa2ab785f36a30cfa387470ce31e3a4afbc024de598f80fa77dedf9
diff --git a/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch b/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch
new file mode 100644
index 000000000000..4418e31b115a
--- /dev/null
+++ b/sci-electronics/gsmc/files/gsmc-1.1-autotools.patch
@@ -0,0 +1,52 @@
+--- 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.
+-AC_PROG_CC
+-pkg_modules="gtk+-2.0"
+-PKG_CHECK_MODULES(PACKAGE,[$pkg_modules])
++AM_PROG_CC_C_O
+ AC_SUBST(PACKAGE_CFLAGS)
+ AC_SUBST(PACKAGE_LIBS)
+
+ # Checks for libraries.
+-LIBS=" "
+-PKG_LIB2=`pkg-config --libs gtk+-2.0`
+-PKG_LIB=""
+-for i in $PKG_LIB2 ; do
+- case $i in
+- -l*) PKG_LIB="$i $PKG_LIB" ;;
+- -L*) LIBS="$i $LIBS" ;;
+- esac
+-done
+-for i in $PKG_LIB ; do
+- j=${i#'-l'}
+- AC_CHECK_LIB($j,main)
+-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
+
+--- 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
+ gsmc_SOURCES= autotune.c calc.c dataconv.c draw.c main.c print.c widget.c autotune.h calc.h dataconv.h draw.h main.h print.h widget.h
+-INCLUDES=@PACKAGE_CFLAGS@
+-LIBS=@PACKAGE_LIBS@
++gsmc_CFLAGS = $(AM_CFLAGS) $(GTK_CFLAGS)
++gsmc_LDADD = $(AM_LDADD) $(GTK_LIBS)
+
+ EXTRA_DIST=gsmc.1.in gtkrc TODO
+-man_MANS=gsmc.1
+\ No newline at end of file
++man_MANS=gsmc.1
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..5db3aef6c286
--- /dev/null
+++ b/sci-electronics/gsmc/gsmc-1.1-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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*
+}
diff --git a/sci-electronics/gsmc/metadata.xml b/sci-electronics/gsmc/metadata.xml
new file mode 100644
index 000000000000..77c695bdad96
--- /dev/null
+++ b/sci-electronics/gsmc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-electronics@gentoo.org</email>
+ <name>Gentoo Electronics Project</name>
+</maintainer>
+</pkgmetadata>