[25912] trunk/dports/devel/dialog/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 5 05:18:22 PDT 2007


Revision: 25912
          http://trac.macosforge.org/projects/macports/changeset/25912
Author:   jwa at macports.org
Date:     2007-06-05 05:18:21 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
version to 20070604, and rename the distfile after build to dialog-version, and
detect before fetch, whether it exists to avoid unnecessary fetch

Modified Paths:
--------------
    trunk/dports/devel/dialog/Portfile

Modified: trunk/dports/devel/dialog/Portfile
===================================================================
--- trunk/dports/devel/dialog/Portfile	2007-06-05 07:38:58 UTC (rev 25911)
+++ trunk/dports/devel/dialog/Portfile	2007-06-05 12:18:21 UTC (rev 25912)
@@ -2,8 +2,8 @@
 
 PortSystem 1.0
 name		dialog
-version		1.1-20070528
-epoch		20070528
+version		1.1-20070604
+epoch		20070604
 categories	devel
 maintainers	jwa
 #maintainers	jyrki.wahlstedt at hut.fi
@@ -23,10 +23,15 @@
 worksrcdir	${name}-${version}
 
 pre-fetch {
-    file delete -force ${distpath}/${distname}.tar.gz
+    if {[file exists ${distpath}/${distname}-${version}.tar.gz]} {
+	file rename ${distpath}/${distname}-${version}.tar.gz ${distpath}/${distname}.tar.gz
+    }
 }
 
-checksums	sha1 1912ce21d9590b9fbf85e9159a2f428eaece1894
+checksums	sha1 761a1de17a0608ced9f8a9c185820387082ec398
+
+depends_lib	port:ncurses
+
 configure.args	--mandir=${prefix}/share/man
 
 post-destroot	{
@@ -52,6 +57,10 @@
 	${destroot}${prefix}/share/doc/${name}/examples
 }
 
+post-build {
+    file rename  ${distpath}/${distname}.tar.gz  ${distpath}/${distname}-${version}.tar.gz
+}
+
 platform darwin 8 {
     configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070605/b4b69ff0/attachment.html


More information about the macports-changes mailing list