summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-calculators/transcalc
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-calculators/transcalc')
-rw-r--r--sci-calculators/transcalc/Manifest1
-rw-r--r--sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch13
-rw-r--r--sci-calculators/transcalc/metadata.xml21
-rw-r--r--sci-calculators/transcalc/transcalc-0.14-r1.ebuild30
4 files changed, 65 insertions, 0 deletions
diff --git a/sci-calculators/transcalc/Manifest b/sci-calculators/transcalc/Manifest
new file mode 100644
index 00000000000..b64d6916801
--- /dev/null
+++ b/sci-calculators/transcalc/Manifest
@@ -0,0 +1 @@
+DIST transcalc-0.14.tar.gz 186434 SHA256 02213d5fc20cb147a51ea771364a8acd0d340ffdc8d582deb5bf478ff0e6a82e SHA512 b8c2cfbe3ea9787a2c694732baaf0e7c734f9a58c825f3791f21527f54398fcc79e24570d4f5f5c942b138b164cc6dc39744e0a66bafd888122608b641dcfa05 WHIRLPOOL c736396b38885f83e0d82f3b3d2cdaf99c30191ea01960b8316d94980ee3a9b62881675b0807265d6dca6dd52deb5fffac93bdb25a83ce07768ead9a2ca2e1a1
diff --git a/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch
new file mode 100644
index 00000000000..534f3a92d8a
--- /dev/null
+++ b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch
@@ -0,0 +1,13 @@
+Index: transcalc-0.14/src/transcalc.c
+===================================================================
+--- transcalc-0.14.orig/src/transcalc.c 2009-05-19 22:00:01.000000000 -0400
++++ transcalc-0.14/src/transcalc.c 2009-05-19 22:01:22.000000000 -0400
+@@ -146,7 +146,7 @@
+ /* see if config file exists */
+ if (stat (config_filename, config_file_stat) != 0) {
+ /* config file missing, so touch it */
+- config_file_fd = open (config_filename, O_CREAT);
++ config_file_fd = open (config_filename, O_CREAT, 0644);
+ if (config_file_fd == -1)
+ {
+ perror ("open[config_file]");
diff --git a/sci-calculators/transcalc/metadata.xml b/sci-calculators/transcalc/metadata.xml
new file mode 100644
index 00000000000..e8863d7196a
--- /dev/null
+++ b/sci-calculators/transcalc/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription>
+ Transcalc is an analysis and synthesis tool for calculating the
+ electrical and physical properties of different kinds of RF and
+ microwave transmission lines. Transcalc was somewhat inspired by the
+ functionality of Agilent Technologies' commercial program linecalc.
+ Transcalc aspires to be more functional in the long run and
+ well-documented with appropriate references to formulas that are used.
+ Transcalc is built using the GIMP toolkit (GTK) for its GUI interface.
+ For each type of transmission line, using dialog boxes, you can enter
+ values for the various parameters, and either calculate its electrical
+ properties (analyze), or use the given electrical requirements to
+ sythesize physical parameters of the required transmission line.
+ Available transmission lines (this list will expand with subsequent
+ releases): microstrip, rectangular waveguide, coaxial line, coupled
+ microstrip.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/transcalc/transcalc-0.14-r1.ebuild b/sci-calculators/transcalc/transcalc-0.14-r1.ebuild
new file mode 100644
index 00000000000..33cd9518b7a
--- /dev/null
+++ b/sci-calculators/transcalc/transcalc-0.14-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Microwave and RF transmission line calculator"
+HOMEPAGE="http://transcalc.sourceforge.net"
+SRC_URI="http://transcalc.sourceforge.net/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="x11-libs/gtk+:2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # respect flags
+ sed -i -e 's|^CFLAGS=|#CFLAGS=|g' configure || die
+ # patch from debian
+ epatch "${FILESDIR}"/${P}-fd-perm.patch
+ # syntax errors
+ sed -i \
+ -e 's/ythesize/ynthesize/g' \
+ src/{setup_menu.c,help.h} docs/transcalc.sgml README || die
+}