summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-02-10 22:30:19 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-02-10 22:30:19 +0000
commitaaa37abb6ea45b6a84c992b368059649a152a9ea (patch)
treedead49918cb2e6e02bd47fb9576589a5339ca120 /sci-geosciences/swmm
parentinitial import wrt #240628 (diff)
downloadhistorical-aaa37abb6ea45b6a84c992b368059649a152a9ea.tar.gz
historical-aaa37abb6ea45b6a84c992b368059649a152a9ea.tar.bz2
historical-aaa37abb6ea45b6a84c992b368059649a152a9ea.zip
initial import wrt #240628
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'sci-geosciences/swmm')
-rw-r--r--sci-geosciences/swmm/Manifest18
-rw-r--r--sci-geosciences/swmm/files/swmm-5.0.022-QA.patch14
-rw-r--r--sci-geosciences/swmm/metadata.xml6
-rw-r--r--sci-geosciences/swmm/swmm-5.0.022.ebuild53
4 files changed, 89 insertions, 2 deletions
diff --git a/sci-geosciences/swmm/Manifest b/sci-geosciences/swmm/Manifest
index 6954b3135cac..134e9f49be45 100644
--- a/sci-geosciences/swmm/Manifest
+++ b/sci-geosciences/swmm/Manifest
@@ -1,5 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX swmm-5.0.022-QA.patch 449 SHA256 c2302f85fac105ab72727e1d9337ba0022cd64331e8ff6045655d49084cd3c54 SHA512 b9d68d3273a1f43a34a568aa4a9b334834bfff4abf239d16350916326cad7d6d440f1778b9f75dbf8b2b8b8f6ff12f74cf103b03db6ed8868461c41845aec34d WHIRLPOOL 0bac67eca04836a5b0d72e1534241b3d27d11ad68cf0b7533e92a5be897af1f74363a98d41276e78a9c972f7cb05fa68be70f607caf438ae0b74a4fdf1482b5b
DIST swmm50022_engine.zip 338011 SHA256 4dba36cbe5e39524c06b826e265ae8fdd2afb82b1c63bb5d9fd72214ed2d7409 SHA512 aa424d36c062656611bc6d6e4ced3108b6fd05806bf47ace30b44cc631860423073ad4fcafb523b2bf0ce7c73c5edc4386e5129009984d3d34f34e9260c69006 WHIRLPOOL feea6403a47ab88e95cc04b1d9b4f99e8fc26c2b5f1c51f69cf78f9ea71e70852bbfa71cea2466771c74ddf555cc5c92b7afa81ea1bc83baddb9cbf5a6a9f7fa
-EBUILD swmm-5.0.022.ebuild 1094 SHA256 e159cc517b771f0cc87ab7308a390220e5fe6d67b3f7addc6535619ec89bbf7c SHA512 1e048e9cd63ae7839ed44dd825981e2e1e6e10d062ba74a5e999c8804ee7246bdcd30c671d0e5c71accb6cbc5967c5be4cb90b6e73bfa1da0f01b3209f6269e9 WHIRLPOOL 2601a40885f9dab04ead66e841a26732b05d4a150469ee255e173100d1ee04b567ea4b187c32075f3b7ff9ff67978bc75e67547e98d15a7024c84bd14cc73a11
-MISC ChangeLog 300 SHA256 2e0a6563a7f467aab919e1e29fec39d26cb86151a30db6871cd5e3a018d2c364 SHA512 a198acdb65e11a527ca9a38ea5865f5afc529f2b8dc4c0ad8a30ce98393502f4394c8eff4af4eeb32ca9a243519c1a7c1a5388a532a8ad68ea84354ef97e6fc1 WHIRLPOOL 827f2d0f834162bd962b8ff62b2c3d8fa86a12c371666aaa0cc9902456a30223616fd613be88880a6824a5f900720ad966fe44933bca5dd9712aa98636c74322
+EBUILD swmm-5.0.022.ebuild 1198 SHA256 8b7001940c34d5ddf775f7348a649f32215c15afacd388fe5ad0f9a654056ac0 SHA512 89a2c474d36db90dd1ec8ddc48fbd160b2a087a6f63be9ce546a87f4fa3521c14420bdf072200464075bbd703918acf6525611dc8d9a9b2df2de079076d72253 WHIRLPOOL 0b58f58ef6d8b9a4e70f69bdaafbc11cd86f761f1a46c5a51113b1a1c62a8db68e7226f73d34a7e913af8dc6e33771f9608b2419661f4c60731fa2ac7c68ecd9
+MISC ChangeLog 394 SHA256 756cf2139157f38195d261db1a8d67a5bbb6540889c37a86a8a3af0c30be0eda SHA512 b0f2b0445f8417c807bf69a04af6b16751c9aa631e8478851d8155217a995e4e6eddfc2b676f577dd01db0f3b9beaf4adcb6485a3318ccdfe7831bc1ddd3ddcb WHIRLPOOL 644e45ca7a9cbe2442009cb92191ccac890adeb119e0df7200b340ed12b57c94bb59e55661a9f3d0ca7cd7a3a2ceeb756058182d004ce2462e3167d29d2639a2
MISC metadata.xml 170 SHA256 fbe0b97a5d5352ef55feaddcf536736abe349d3d0aa14134cc47be3d83786ee6 SHA512 21d847f39db9b7029de6e45078453fbc0acd188728ba245ee584a48bb5b96d8cd7edc13b444e7a3dd6a1edf9fd0bd86c4b4fd80b9c7d94247c75e3923d78e896 WHIRLPOOL 738937fa1b05fbd54f47294bd428e28881e6a4da6915d96e54279b7ff32d58b3ce55072851e26f1a8d62e15b546d5ec28caa4988b8fd81df1e15e1fde56aae72
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRGB97AAoJEFpvPKfnPDWzd1kIAKgJgDcI2c7BoPdm2tsPOCYz
+l5759Q0N/1QYJOdFjwyA3coli1R0idQvboQqdKsyKFaDDzzc/VFAWVWqdc6hCQ7g
+NdlL+s022d+f4gFyhln4ZZCluG8WKljk9Gqh9xBmQE6T4syNxyS95L/pUmgM1eqY
+vMu4ALqOuRHFIwph3nRh6nrNHqOpNeF2trD0mpY8dY/kaSFNf3iLHeOWy/hqXUva
+G6jrXZeoVtFrasmT1/KG6Tx+b2KQLKKCugver302qChcwVnXoMjb/xM0KSUKBR19
+aTE6qbQV2coxYkiyC/ELsWbf4K5Bw8rY82oTmmAFIzm5YtG9GPt881BXzZtTKqE=
+=2UB7
+-----END PGP SIGNATURE-----
diff --git a/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch b/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch
new file mode 100644
index 000000000000..c84d50f5f6b3
--- /dev/null
+++ b/sci-geosciences/swmm/files/swmm-5.0.022-QA.patch
@@ -0,0 +1,14 @@
+--- Makefile
++++ Makefile
+@@ -7,9 +7,10 @@
+ rain.o rdii.o report.o routing.o runoff.o shape.o snow.o stats.o \
+ statsrpt.o subcatch.o table.o toposort.o transect.o treatmnt.o xsect.o
+
++LIBS += -lm
+
+ swmm5 : $(objs)
+- cc -o swmm5 -lm $(objs)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o swmm5 $(objs) $(LIBS)
+
+ swmm5.o : consts.h macros.h enums.h error.h datetime.h objects.h funcs.h text.h globals.h swmm5.h
+ climate.o : headers.h
diff --git a/sci-geosciences/swmm/metadata.xml b/sci-geosciences/swmm/metadata.xml
new file mode 100644
index 000000000000..26d2defc878b
--- /dev/null
+++ b/sci-geosciences/swmm/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-geosciences</herd>
+</pkgmetadata>
+
diff --git a/sci-geosciences/swmm/swmm-5.0.022.ebuild b/sci-geosciences/swmm/swmm-5.0.022.ebuild
new file mode 100644
index 000000000000..33db1c3d8e79
--- /dev/null
+++ b/sci-geosciences/swmm/swmm-5.0.022.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/swmm/swmm-5.0.022.ebuild,v 1.1 2013/02/10 22:30:15 hasufell Exp $
+
+EAPI=5
+
+inherit eutils versionator toolchain-funcs
+
+MY_PV=$(delete_all_version_separators)
+MY_SRC="swmm${MY_PV}_engine.zip"
+DESCRIPTION="Storm Water Management Model - SWMM, hydrology, hydraulics, and water quality model"
+HOMEPAGE="http://www.epa.gov/ednnrmrl/models/swmm/index.htm"
+SRC_URI="http://www.epa.gov/nrmrl/wswrd/wq/models/swmm/${MY_SRC}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_unpack() {
+ unpack ${MY_SRC}
+ # Need to delete Readme.txt, because it is in makefiles.zip
+ rm Readme.txt || die
+ unpack ./makefiles.zip
+ unpack ./GNU_CON.zip
+ unpack ./source*.ZIP
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-QA.patch
+}
+
+src_compile(){
+ # 'sed' command has to accomodate DOS formatted file.
+ sed -i \
+ -e 's;^#define DLL;//#define DLL;' \
+ -e 's;^//#define CLE;#define CLE;' \
+ swmm5.c || die
+ emake
+}
+
+src_install(){
+ newbin swmm5 swmm
+ dodoc Roadmap.txt
+}