[29070] trunk/dports/archivers/webdec/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 14 05:55:55 PDT 2007


Revision: 29070
          http://trac.macosforge.org/projects/macports/changeset/29070
Author:   nox at macports.org
Date:     2007-09-14 05:55:55 -0700 (Fri, 14 Sep 2007)

Log Message:
-----------
webdec (closes #12682):
 * Added standard doc installation.
 * Added universal support.
 * Added sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/archivers/webdec/Portfile

Modified: trunk/dports/archivers/webdec/Portfile
===================================================================
--- trunk/dports/archivers/webdec/Portfile	2007-09-14 12:54:58 UTC (rev 29069)
+++ trunk/dports/archivers/webdec/Portfile	2007-09-14 12:55:55 UTC (rev 29070)
@@ -1,8 +1,10 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem  1.0
+
 name		webdec
 version		0.46.2
+revision    1
 categories	archivers
 maintainers	izmir at verizon.net
 description	Extract webshots pictures
@@ -15,20 +17,26 @@
 
 master_sites	http://www.jamesbarford.net/downloads/
 
-checksums	md5 14341604153c4605ecf81162b09c67fa
+checksums   md5 14341604153c4605ecf81162b09c67fa \
+            sha1 6f0d90f09627f023f71ddd30ca67edf3e62f673e \
+            rmd160 e49877e5e9598326b319f882a877af691156f03f
 
-use_configure	no
+configure {
+    reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
+    reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
+}
 
-destroot	{}
+destroot {
+    xinstall ${worksrcpath}/webdec ${destroot}${prefix}/bin
 
-post-destroot	{
-	xinstall -m 755 -W ${worksrcpath} webdec \
-	${destroot}${prefix}/bin/webdec
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} GPL README ${destroot}${docdir}
 }
 
-variant debug	{
-	build.pre_args	CFLAGS="-Wall -ansi -pedantic -DDEBUG"
+variant debug {
+    post-configure {
+        reinplace -E "/^CFLAGS/s|\$| -DDEBUG|" ${worksrcpath}/Makefile
+    }
 }
 
-universal_variant no
-

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


More information about the macports-changes mailing list