diff options
Diffstat (limited to 'sci-calculators/transcalc')
-rw-r--r-- | sci-calculators/transcalc/Manifest | 6 | ||||
-rw-r--r-- | sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch | 13 | ||||
-rw-r--r-- | sci-calculators/transcalc/metadata.xml | 27 | ||||
-rw-r--r-- | sci-calculators/transcalc/transcalc-0.14-r2.ebuild | 30 |
4 files changed, 76 insertions, 0 deletions
diff --git a/sci-calculators/transcalc/Manifest b/sci-calculators/transcalc/Manifest new file mode 100644 index 000000000000..bc9ba300de0f --- /dev/null +++ b/sci-calculators/transcalc/Manifest @@ -0,0 +1,6 @@ +AUX transcalc-0.14-fd-perm.patch 596 SHA256 c750f7b1ff48104aa6ced0489cafbf7df6781a89dca24d0d7ab5bb506a01937a SHA512 d63e4d8d5da77e97037d6014aa10a392778bdd1dfe0074ee61af94c3349c529ec965d2774e50c4ffae0fd76003429b64776fa7378d01e7a9608d1d4581b65eb5 WHIRLPOOL 13f610628f3efe3148393dda8545670bc02395977e9a2b8dbf81ae8674784e3971536959894d050da33e4a9d143f8a73c7cfa49449673a0eb18b4bcd93637f4a +DIST transcalc-0.14.tar.gz 186434 SHA256 02213d5fc20cb147a51ea771364a8acd0d340ffdc8d582deb5bf478ff0e6a82e SHA512 b8c2cfbe3ea9787a2c694732baaf0e7c734f9a58c825f3791f21527f54398fcc79e24570d4f5f5c942b138b164cc6dc39744e0a66bafd888122608b641dcfa05 WHIRLPOOL c736396b38885f83e0d82f3b3d2cdaf99c30191ea01960b8316d94980ee3a9b62881675b0807265d6dca6dd52deb5fffac93bdb25a83ce07768ead9a2ca2e1a1 +EBUILD transcalc-0.14-r2.ebuild 688 SHA256 395b3fb269b9bded21d9435054929af27c66870ca57f1866cdd0917d967e4fff SHA512 d0ecb26f7a8fdac51d853862e887df791504c2b60e83e206c7fcc540a4a80338ae2e5c353bb097635fd5ba5c0f1dc2b23699944fe3440662d7ef0ea2d1844ebe WHIRLPOOL 44ffb87e86b972148153758cf0e347d3ea1d325902221da6b3419c995ca8ba4735381efa82d9a5d9a4cc589d125cbc7dd39eb56a621cd02266ae0db3dbc87a28 +MISC ChangeLog 3544 SHA256 3986621057fd80fe791a12151f5c88eb5c43afd144296d8eba9c80d557f98648 SHA512 d458c39e093c6f136174e9487a3eed26b4722116f9394c26d38490125ea40ed65360db85f26174e734999e0ce6fb40b5205616bc3af1de4d03c2fbe7640f52e4 WHIRLPOOL faea282e3f412a3f65a2fab85a2ee244eea2b562df98f4c207a51f3b0dfa2ff1f366ec4d31b2d11a8f4ceadb8bb984b8687693df177275c96ba67534b31bb580 +MISC ChangeLog-2015 1342 SHA256 6bbdbe23a7ab9ff0032c3a84e3fb27d841504699f5af5642b9c49bc4035e041d SHA512 9036adda645d1e761d60f494996011debacb43f375b5855d607e82d046dce96e40a7361184e543afdb89ddfa8cd2f59341532b24b57072e9804d08492444e173 WHIRLPOOL c6f4eb0c5007cef73d0003b7585f7411a85056d3f9b97ab5573638f7551ef815da83a93d63621b6e51ff1c1be971f0f8397cea216a453f977bbf73d521b4363f +MISC metadata.xml 1350 SHA256 421ae21b9925b3a3c978e8cdc1261d94bbbfb04edcc84c66eea7957320821053 SHA512 b61dda04f6f3c913c381a201f1acd1c9bca0e73f690c2b65a279558cec6d88541611b02640cb7329b9f9f157d3bdc77106ef01c85a0cb9e3b6cd9e6c6fdcb7b7 WHIRLPOOL a1c899a451d4619731d0e438aef4344e54b388354379b6af210d9e84bf1b44c06e1082bb90b742992b5b2ed860247303745b21f0385a38c1bd5584a4aa10223f 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 000000000000..534f3a92d8ac --- /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 000000000000..9836503376d8 --- /dev/null +++ b/sci-calculators/transcalc/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <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> + <upstream> + <remote-id type="sourceforge">transcalc</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-calculators/transcalc/transcalc-0.14-r2.ebuild b/sci-calculators/transcalc/transcalc-0.14-r2.ebuild new file mode 100644 index 000000000000..02376bc9ed7a --- /dev/null +++ b/sci-calculators/transcalc/transcalc-0.14-r2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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="" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND}" + +# patch from debian +PATCHES=( "${FILESDIR}"/${P}-fd-perm.patch ) + +src_prepare() { + # respect flags + sed -i -e 's|^CFLAGS=|#CFLAGS=|g' configure || die + default + # syntax errors + sed -i \ + -e 's/ythesize/ynthesize/g' \ + src/{setup_menu.c,help.h} docs/transcalc.sgml README || die +} |