1 |
commit: fd0a4aa63cd0c7f7a7a66f692f00b89f10694e53 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 22:22:24 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 22:22:45 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=fd0a4aa6 |
7 |
|
8 |
sci-misc/freesteam: Add an initial ebuild for freesteam. |
9 |
|
10 |
(Portage version: 2.2.0_alpha77/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-misc/freesteam/files/freesteam-flags.patch | 28 +++++++++++ |
14 |
.../files/freesteam-soname-symlinks.patch | 39 +++++++++++++++ |
15 |
sci-misc/freesteam/freesteam-9999.ebuild | 50 ++++++++++++++++++++ |
16 |
sci-misc/freesteam/metadata.xml | 8 +++ |
17 |
4 files changed, 125 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/sci-misc/freesteam/files/freesteam-flags.patch b/sci-misc/freesteam/files/freesteam-flags.patch |
20 |
new file mode 100644 |
21 |
index 0000000..615bdc0 |
22 |
--- /dev/null |
23 |
+++ b/sci-misc/freesteam/files/freesteam-flags.patch |
24 |
@@ -0,0 +1,28 @@ |
25 |
+From 6a68348f4b1fb755724e1df34bff4d6986d07dab Mon Sep 17 00:00:00 2001 |
26 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@××××××××××.pl> |
27 |
+Date: Sat, 26 Nov 2011 22:30:15 +0100 |
28 |
+Subject: [PATCH] Merge CFLAGS and LDFLAGS from the environment. |
29 |
+ |
30 |
+--- |
31 |
+ SConstruct | 5 +++++ |
32 |
+ 1 files changed, 5 insertions(+), 0 deletions(-) |
33 |
+ |
34 |
+diff --git a/SConstruct b/SConstruct |
35 |
+index 9dc17f5..e529e88 100644 |
36 |
+--- a/SConstruct |
37 |
++++ b/SConstruct |
38 |
+@@ -194,6 +194,11 @@ SConsEnvironment.InstallLibraryAs = lambda env, dest, files: InstallPermAs(env, |
39 |
+ |
40 |
+ vars.Update(env) |
41 |
+ |
42 |
++# Merge environment CFLAGS & LDFLAGS |
43 |
++ |
44 |
++env.MergeFlags([os.environ.get('CFLAGS', ''), |
45 |
++ os.environ.get('LDFLAGS', '')]) |
46 |
++ |
47 |
+ #---------------- |
48 |
+ # SWIG |
49 |
+ |
50 |
+-- |
51 |
+1.7.8.rc3.31.g017d.dirty |
52 |
+ |
53 |
|
54 |
diff --git a/sci-misc/freesteam/files/freesteam-soname-symlinks.patch b/sci-misc/freesteam/files/freesteam-soname-symlinks.patch |
55 |
new file mode 100644 |
56 |
index 0000000..dbd8b2a |
57 |
--- /dev/null |
58 |
+++ b/sci-misc/freesteam/files/freesteam-soname-symlinks.patch |
59 |
@@ -0,0 +1,39 @@ |
60 |
+From dd03d6b29fd29f9978022291f0c023e4fe5dd345 Mon Sep 17 00:00:00 2001 |
61 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@××××××××××.pl> |
62 |
+Date: Sat, 26 Nov 2011 23:18:37 +0100 |
63 |
+Subject: [PATCH] Fix SONAME symlinks - make them relative. |
64 |
+ |
65 |
+--- |
66 |
+ SConstruct | 6 +++--- |
67 |
+ 1 files changed, 3 insertions(+), 3 deletions(-) |
68 |
+ |
69 |
+diff --git a/SConstruct b/SConstruct |
70 |
+index 1794691..d84a13a 100644 |
71 |
+--- a/SConstruct |
72 |
++++ b/SConstruct |
73 |
+@@ -5,7 +5,7 @@ |
74 |
+ # We don't currently propose to support building freesteam from MSVS but |
75 |
+ # that shouldn't be necessary, as you should be able to use the MinGW-generated |
76 |
+ # DLL even with MSVS, because it only uses C code. |
77 |
+-import platform, sys, distutils.sysconfig, os |
78 |
++import platform, sys, distutils.sysconfig, os, os.path |
79 |
+ |
80 |
+ #version number for this copy of freesteam |
81 |
+ version = "2.1" |
82 |
+@@ -436,11 +436,11 @@ else: |
83 |
+ |
84 |
+ install_link1 = None |
85 |
+ if env.subst(link1) != env.subst(libname): |
86 |
+- install_link1 = env.Command("${INSTALL_ROOT}"+link1,install_lib,"ln -s %s $TARGET" % libname) |
87 |
++ install_link1 = env.Command("${INSTALL_ROOT}"+link1,install_lib,"ln -s %s $TARGET" % os.path.basename(libname)) |
88 |
+ |
89 |
+ install_link2 = None |
90 |
+ if env.get("SONAME_MINOR"): |
91 |
+- install_link2 = env.Command("${INSTALL_ROOT}"+link2,install_lib,"ln -s %s $TARGET"%libname) |
92 |
++ install_link2 = env.Command("${INSTALL_ROOT}"+link2,install_lib,"ln -s %s $TARGET"%os.path.basename(libname)) |
93 |
+ |
94 |
+ env['installedfiles'] += [install_link1, install_link2] |
95 |
+ |
96 |
+-- |
97 |
+1.7.8.rc3.31.g017d.dirty |
98 |
+ |
99 |
|
100 |
diff --git a/sci-misc/freesteam/freesteam-9999.ebuild b/sci-misc/freesteam/freesteam-9999.ebuild |
101 |
new file mode 100644 |
102 |
index 0000000..f675b4c |
103 |
--- /dev/null |
104 |
+++ b/sci-misc/freesteam/freesteam-9999.ebuild |
105 |
@@ -0,0 +1,50 @@ |
106 |
+# Copyright 1999-2011 Gentoo Foundation |
107 |
+# Distributed under the terms of the GNU General Public License v2 |
108 |
+# $Header: $ |
109 |
+ |
110 |
+EAPI=4 |
111 |
+ |
112 |
+ESVN_REPO_URI=https://freesteam.svn.sourceforge.net/svnroot/freesteam/trunk |
113 |
+ |
114 |
+inherit base scons-utils subversion toolchain-funcs |
115 |
+ |
116 |
+DESCRIPTION="Open source implementation of IF97 steam tables" |
117 |
+HOMEPAGE="http://freesteam.sourceforge.net/" |
118 |
+SRC_URI="" |
119 |
+ |
120 |
+LICENSE="GPL-2" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="" |
123 |
+IUSE="" |
124 |
+ |
125 |
+RDEPEND="sci-libs/gsl" |
126 |
+DEPEND="${RDEPEND}" |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ local PATCHES=( |
130 |
+ "${FILESDIR}"/${PN}-flags.patch |
131 |
+ "${FILESDIR}"/${PN}-soname-symlinks.patch |
132 |
+ ) |
133 |
+ |
134 |
+ base_src_prepare |
135 |
+} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ myesconsargs=( |
139 |
+ INSTALL_PREFIX=/usr |
140 |
+ INSTALL_ROOT="${D}" |
141 |
+ |
142 |
+ CC="$(tc-getCC)" |
143 |
+ SWIG=false |
144 |
+ ) |
145 |
+ |
146 |
+ mkdir -p "${D}" || die |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ escons |
151 |
+} |
152 |
+ |
153 |
+src_install() { |
154 |
+ escons install |
155 |
+} |
156 |
|
157 |
diff --git a/sci-misc/freesteam/metadata.xml b/sci-misc/freesteam/metadata.xml |
158 |
new file mode 100644 |
159 |
index 0000000..5cb9324 |
160 |
--- /dev/null |
161 |
+++ b/sci-misc/freesteam/metadata.xml |
162 |
@@ -0,0 +1,8 @@ |
163 |
+<?xml version="1.0" encoding="UTF-8"?> |
164 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
165 |
+<pkgmetadata> |
166 |
+ <maintainer> |
167 |
+ <email>mgorny@g.o</email> |
168 |
+ <name>Michał Górny</name> |
169 |
+ </maintainer> |
170 |
+</pkgmetadata> |