commit:     030d5ac97f76b5ff23a93e7c394fcac1db00182a
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 13 07:46:39 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Nov 13 07:46:39 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=030d5ac9

sci-geosciences/swmm: Bump to EAPI=5

Package-Manager: portage-2.2.14

---
 sci-geosciences/swmm/ChangeLog           |  6 +++++-
 sci-geosciences/swmm/metadata.xml        | 12 ++++++------
 sci-geosciences/swmm/swmm-5.0.022.ebuild | 22 +++++++++-------------
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/sci-geosciences/swmm/ChangeLog b/sci-geosciences/swmm/ChangeLog
index c07c0e4..f017aeb 100644
--- a/sci-geosciences/swmm/ChangeLog
+++ b/sci-geosciences/swmm/ChangeLog
@@ -1,7 +1,11 @@
 # ChangeLog for sci-geosciences/swmm
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  13 Nov 2014; Justin Lecher <[email protected]> swmm-5.0.022.ebuild,
+  metadata.xml:
+  Bump to EAPI=5
+
 *swmm-5.0.022 (15 Jul 2011)
 
   15 Jul 2011; Tim Cera <[email protected]> -swmm-5.0.020.ebuild,

diff --git a/sci-geosciences/swmm/metadata.xml 
b/sci-geosciences/swmm/metadata.xml
index ff54dbf..9e77f82 100644
--- a/sci-geosciences/swmm/metadata.xml
+++ b/sci-geosciences/swmm/metadata.xml
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<herd>sci-geosciences</herd>
-<maintainer>
-<email>[email protected]</email>
-<name>Tim Cera</name>
-</maintainer>
-<longdescription lang="en">
+  <herd>sci-geosciences</herd>
+  <maintainer>
+    <email>[email protected]</email>
+    <name>Tim Cera</name>
+  </maintainer>
+  <longdescription lang="en">
 Storm Water Management Model - SWMM, hydrology, hydraulics, and water quality 
model.
 </longdescription>
 </pkgmetadata>

diff --git a/sci-geosciences/swmm/swmm-5.0.022.ebuild 
b/sci-geosciences/swmm/swmm-5.0.022.ebuild
index 98b80e6..235a28a 100644
--- a/sci-geosciences/swmm/swmm-5.0.022.ebuild
+++ b/sci-geosciences/swmm/swmm-5.0.022.ebuild
@@ -2,6 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
+EAPI=5
+
 inherit eutils versionator
 
 MY_PV=$(delete_all_version_separators)
@@ -23,29 +25,23 @@ RDEPEND=""
 S="${WORKDIR}/${PN}"
 
 src_unpack() {
-       mkdir "${S}" && cd "${S}"
+       mkdir "${S}" && cd "${S}" || die
        unpack "${MY_SRC}"
        # Need to delete Readme.txt, because it is in makefiles.zip
-       rm Readme.txt
-       unpack ./makefiles.zip
-       unpack ./GNU_CON.zip
-       unpack ./source*.ZIP
+       rm Readme.txt || die
+       unpack ./makefiles.zip ./GNU_CON.zip ./source*.ZIP
 }
 
-src_compile(){
+src_prepare(){
        # 'sed' command has to accomodate DOS formatted file.
        sed -i \
            -e 's;^#define DLL;//#define DLL;' \
            -e 's;^//#define CLE;#define CLE;' \
-               swmm5.c
-       emake || die "compile failed"
+               swmm5.c || die
 }
 
 src_install(){
        # Don't like the version number in the name.
-       mv swmm5 swmm
-       dobin swmm
-       if use doc ; then
-               dodoc Roadmap.txt
-       fi
+       newbin swmm5 swmm
+       use doc && dodoc Roadmap.txt
 }

Reply via email to