From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-geosciences/swmm/Manifest | 6 +++ sci-geosciences/swmm/files/swmm-5.0.022-QA.patch | 14 +++++++ sci-geosciences/swmm/metadata.xml | 5 +++ sci-geosciences/swmm/swmm-5.0.022.ebuild | 52 ++++++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 sci-geosciences/swmm/Manifest create mode 100644 sci-geosciences/swmm/files/swmm-5.0.022-QA.patch create mode 100644 sci-geosciences/swmm/metadata.xml create mode 100644 sci-geosciences/swmm/swmm-5.0.022.ebuild (limited to 'sci-geosciences/swmm') diff --git a/sci-geosciences/swmm/Manifest b/sci-geosciences/swmm/Manifest new file mode 100644 index 000000000000..a8fe6b697738 --- /dev/null +++ b/sci-geosciences/swmm/Manifest @@ -0,0 +1,6 @@ +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 1067 SHA256 681a4d0f81df51f6d5fd56672714c7b78651fb10e9b9c77ab1ca1960210e16ee SHA512 12f2d8068939f943f09e3de5ecb4c27facc8fd6369467158251c4de28157512be6214530d818cf75f2bb627dd48276970331007e475f2a9d7f08920a5722664a WHIRLPOOL 50c9b28b636f75f24907de2c74b9f1a1b2e738118171c4a28bb19bf45fc60e8c6ff28bbefbd7811bd1c2368128746f173ba9f0fbaec49d9d2927db3991374866 +MISC ChangeLog 2947 SHA256 a97c8e187dd6550620d6a1814ccf1d094cd261035c2d784d74847b9633fca92f SHA512 88f9a407b0dba67caf72b767020ca85ffafb5b511f3457fdabda3daa76029609d4cd0607160aa096fe905f2307e37a4386e5fa13749ea92ec6e8018f37d9695a WHIRLPOOL 1bec5a14b01138451a7ab85b9c343bc2d1c2a48421ebaabc5adce1c7931f574af9e0b1e9512297359203de33352500592c9d843073b71382f359e356fbc5494c +MISC ChangeLog-2015 808 SHA256 f3d5dd8de4c29dfc2d6883c702e33fb8be3f2b063a887619eb3a8e2c4c88b10c SHA512 43a8335caeb77a38a6c683f677760bcd1b8f0c3cc9820be1767361a50c5d2e2f60bae4a2001fb17c9357d60c371806b9ce385687fb6f92f360df76e998dad170 WHIRLPOOL 0962f1c171946d935c3ad1839fbd65445d182720e80c4f8f5ff768de4994521c16d438911a3bf32b5a78fe36ccb6a6722ee96eb9c54cad5544b77d09a2622f3c +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 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..6f49eba8f496 --- /dev/null +++ b/sci-geosciences/swmm/metadata.xml @@ -0,0 +1,5 @@ + + + + + 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..defeb38e3854 --- /dev/null +++ b/sci-geosciences/swmm/swmm-5.0.022.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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, 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 +} -- cgit v1.2.3