summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-02-10 22:30:16 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-02-10 22:30:16 +0000
commit604c80e6e3c3fe75f4665a7fc0a5500f3e0b89a5 (patch)
tree0068c0d10d04cbcf49d83c7a07e018b22040e0b5 /sci-geosciences/swmm
parentStable for sparc, wrt bug #454906 (diff)
downloadgentoo-2-604c80e6e3c3fe75f4665a7fc0a5500f3e0b89a5.tar.gz
gentoo-2-604c80e6e3c3fe75f4665a7fc0a5500f3e0b89a5.tar.bz2
gentoo-2-604c80e6e3c3fe75f4665a7fc0a5500f3e0b89a5.zip
initial import wrt #240628
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'sci-geosciences/swmm')
-rw-r--r--sci-geosciences/swmm/ChangeLog10
-rw-r--r--sci-geosciences/swmm/Manifest5
-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
5 files changed, 88 insertions, 0 deletions
diff --git a/sci-geosciences/swmm/ChangeLog b/sci-geosciences/swmm/ChangeLog
new file mode 100644
index 000000000000..ec32770efcd7
--- /dev/null
+++ b/sci-geosciences/swmm/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-geosciences/swmm
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/swmm/ChangeLog,v 1.1 2013/02/10 22:30:15 hasufell Exp $
+
+*swmm-5.0.022 (10 Feb 2013)
+
+ 10 Feb 2013; Julian Ospald <hasufell@gentoo.org> +swmm-5.0.022.ebuild,
+ +files/swmm-5.0.022-QA.patch, +metadata.xml:
+ initial import wrt #240628
+
diff --git a/sci-geosciences/swmm/Manifest b/sci-geosciences/swmm/Manifest
new file mode 100644
index 000000000000..6954b3135cac
--- /dev/null
+++ b/sci-geosciences/swmm/Manifest
@@ -0,0 +1,5 @@
+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
+MISC metadata.xml 170 SHA256 fbe0b97a5d5352ef55feaddcf536736abe349d3d0aa14134cc47be3d83786ee6 SHA512 21d847f39db9b7029de6e45078453fbc0acd188728ba245ee584a48bb5b96d8cd7edc13b444e7a3dd6a1edf9fd0bd86c4b4fd80b9c7d94247c75e3923d78e896 WHIRLPOOL 738937fa1b05fbd54f47294bd428e28881e6a4da6915d96e54279b7ff32d58b3ce55072851e26f1a8d62e15b546d5ec28caa4988b8fd81df1e15e1fde56aae72
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
+}