summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-11-26 22:55:43 +0000
committerMichał Górny <mgorny@gentoo.org>2011-11-26 22:55:43 +0000
commit7c25c52f550c25a74d6131536b9a16e82003fba7 (patch)
treecc16eb7a9b94c3cc5df30a3b2e29f097b26d29c9 /sci-libs/freesteam
parentFix build issue when USE=-utp, bug #290737. (diff)
downloadhistorical-7c25c52f550c25a74d6131536b9a16e82003fba7.tar.gz
historical-7c25c52f550c25a74d6131536b9a16e82003fba7.tar.bz2
historical-7c25c52f550c25a74d6131536b9a16e82003fba7.zip
Introduce the initial ebuild for freesteam, free IF97 steam tables implementation.
Package-Manager: portage-2.2.0_alpha77/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/freesteam')
-rw-r--r--sci-libs/freesteam/ChangeLog12
-rw-r--r--sci-libs/freesteam/Manifest18
-rw-r--r--sci-libs/freesteam/files/freesteam-flags.patch28
-rw-r--r--sci-libs/freesteam/files/freesteam-soname-symlinks.patch39
-rw-r--r--sci-libs/freesteam/freesteam-2.0.ebuild49
-rw-r--r--sci-libs/freesteam/metadata.xml8
6 files changed, 154 insertions, 0 deletions
diff --git a/sci-libs/freesteam/ChangeLog b/sci-libs/freesteam/ChangeLog
new file mode 100644
index 000000000000..1c75a12dcc57
--- /dev/null
+++ b/sci-libs/freesteam/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sci-libs/freesteam
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/freesteam/ChangeLog,v 1.1 2011/11/26 22:55:43 mgorny Exp $
+
+*freesteam-2.0 (26 Nov 2011)
+
+ 26 Nov 2011; Michał Górny <mgorny@gentoo.org> +freesteam-2.0.ebuild,
+ +files/freesteam-flags.patch, +files/freesteam-soname-symlinks.patch,
+ +metadata.xml:
+ Introduce the initial ebuild for freesteam, free IF97 steam tables
+ implementation.
+
diff --git a/sci-libs/freesteam/Manifest b/sci-libs/freesteam/Manifest
new file mode 100644
index 000000000000..7f940a6fc594
--- /dev/null
+++ b/sci-libs/freesteam/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX freesteam-flags.patch 726 RMD160 4f14f5faafcd3a626eb88181328e8ae197d252a9 SHA1 12f848d6dcb427b13776b294d0d4690ccc850893 SHA256 d4eccef5ccf0a345271f912715fc888ac948868c0a9e86a555d2eda25a1b1299
+AUX freesteam-soname-symlinks.patch 1473 RMD160 2108a0f032accde8584d6538de48bdb4d10eba48 SHA1 536ca00067c185174f95043a2c18d9fc2c809d41 SHA256 cd05e197249150a156d02b30eb7251e15a2f0e2263a9517e1b22e4b8d845c24c
+DIST freesteam-2.0.tar.bz2 80838 RMD160 f489d2ec265b4d936dff8f6170682e5cc47dfeee SHA1 9c2ab1c67f2e8b196117c05df29dc6f0b3393c91 SHA256 9c21768648ec4faffeb536fdcde039f3e02d9e413f85e19234c285c64808ffad
+EBUILD freesteam-2.0.ebuild 916 RMD160 d750768252fd3095ac842b30bd613b9965da916c SHA1 5c3df946e96a9aeb769c49e02c6caa0a52b2723c SHA256 31350d30615f8fe173dbbf8894404c5c0c7c0e8ad1ff8a55cd53c1e593cdc98f
+MISC ChangeLog 489 RMD160 4a2dcc5fdb1a63636c022e52379b5155120fef69 SHA1 52ecf882f9743c3e628a9348b8cea6d410ffcd32 SHA256 56c7293515faf50b362b68839516bb1421c7a11e8f3b2c662ee9ee32db359882
+MISC metadata.xml 233 RMD160 3f3a824499013c8d73226b585e7ddade99e2dccc SHA1 9e79c5e3fccaff2b521aa1b7530f9d24dbe0a2a1 SHA256 fd88d74157f79eb4a06067443b7138cfb56fe1c66bfa5dfe72bda038ea5a9dda
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iJwEAQEIAAYFAk7RbpYACgkQfXuS5UK5QB11TQP/cx3NttKul/RgE6O+YUrz8i0C
+3izDQijFX7NiVVmp6yYZLF5We0/61uk2+Ow8Esdp8NFDSJ/qcHYe/wFKjUWH/Bee
+wdi3KBHnq3VbO8bkUMyzxO4Tphmm0pdyeah9XY9qCo1xNGOA1CXCtizTtbwVDD0p
+S9qYvNlWRj/P8lwM0pQ=
+=s+Dg
+-----END PGP SIGNATURE-----
diff --git a/sci-libs/freesteam/files/freesteam-flags.patch b/sci-libs/freesteam/files/freesteam-flags.patch
new file mode 100644
index 000000000000..615bdc050321
--- /dev/null
+++ b/sci-libs/freesteam/files/freesteam-flags.patch
@@ -0,0 +1,28 @@
+From 6a68348f4b1fb755724e1df34bff4d6986d07dab Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl>
+Date: Sat, 26 Nov 2011 22:30:15 +0100
+Subject: [PATCH] Merge CFLAGS and LDFLAGS from the environment.
+
+---
+ SConstruct | 5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 9dc17f5..e529e88 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -194,6 +194,11 @@ SConsEnvironment.InstallLibraryAs = lambda env, dest, files: InstallPermAs(env,
+
+ vars.Update(env)
+
++# Merge environment CFLAGS & LDFLAGS
++
++env.MergeFlags([os.environ.get('CFLAGS', ''),
++ os.environ.get('LDFLAGS', '')])
++
+ #----------------
+ # SWIG
+
+--
+1.7.8.rc3.31.g017d.dirty
+
diff --git a/sci-libs/freesteam/files/freesteam-soname-symlinks.patch b/sci-libs/freesteam/files/freesteam-soname-symlinks.patch
new file mode 100644
index 000000000000..dbd8b2a64c26
--- /dev/null
+++ b/sci-libs/freesteam/files/freesteam-soname-symlinks.patch
@@ -0,0 +1,39 @@
+From dd03d6b29fd29f9978022291f0c023e4fe5dd345 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl>
+Date: Sat, 26 Nov 2011 23:18:37 +0100
+Subject: [PATCH] Fix SONAME symlinks - make them relative.
+
+---
+ SConstruct | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 1794691..d84a13a 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -5,7 +5,7 @@
+ # We don't currently propose to support building freesteam from MSVS but
+ # that shouldn't be necessary, as you should be able to use the MinGW-generated
+ # DLL even with MSVS, because it only uses C code.
+-import platform, sys, distutils.sysconfig, os
++import platform, sys, distutils.sysconfig, os, os.path
+
+ #version number for this copy of freesteam
+ version = "2.1"
+@@ -436,11 +436,11 @@ else:
+
+ install_link1 = None
+ if env.subst(link1) != env.subst(libname):
+- install_link1 = env.Command("${INSTALL_ROOT}"+link1,install_lib,"ln -s %s $TARGET" % libname)
++ install_link1 = env.Command("${INSTALL_ROOT}"+link1,install_lib,"ln -s %s $TARGET" % os.path.basename(libname))
+
+ install_link2 = None
+ if env.get("SONAME_MINOR"):
+- install_link2 = env.Command("${INSTALL_ROOT}"+link2,install_lib,"ln -s %s $TARGET"%libname)
++ install_link2 = env.Command("${INSTALL_ROOT}"+link2,install_lib,"ln -s %s $TARGET"%os.path.basename(libname))
+
+ env['installedfiles'] += [install_link1, install_link2]
+
+--
+1.7.8.rc3.31.g017d.dirty
+
diff --git a/sci-libs/freesteam/freesteam-2.0.ebuild b/sci-libs/freesteam/freesteam-2.0.ebuild
new file mode 100644
index 000000000000..549d7fd94482
--- /dev/null
+++ b/sci-libs/freesteam/freesteam-2.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/freesteam/freesteam-2.0.ebuild,v 1.1 2011/11/26 22:55:43 mgorny Exp $
+
+EAPI=4
+
+inherit base multilib scons-utils toolchain-funcs
+
+DESCRIPTION="Open source implementation of IF97 steam tables"
+HOMEPAGE="http://freesteam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freesteam/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sci-libs/gsl"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}"/${PN}-flags.patch
+ "${FILESDIR}"/${PN}-soname-symlinks.patch
+ )
+
+ base_src_prepare
+}
+
+src_configure() {
+ myesconsargs=(
+ INSTALL_PREFIX=/usr
+ INSTALL_LIB=/usr/$(get_libdir)
+ INSTALL_ROOT="${D}"
+
+ CC="$(tc-getCC)"
+ SWIG=false
+ )
+
+ mkdir -p "${D}" || die
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons install
+}
diff --git a/sci-libs/freesteam/metadata.xml b/sci-libs/freesteam/metadata.xml
new file mode 100644
index 000000000000..5cb9324943ab
--- /dev/null
+++ b/sci-libs/freesteam/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>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>