[26324] trunk/dports/mail/mailqfmt/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 19 12:08:39 PDT 2007
Revision: 26324
http://trac.macosforge.org/projects/macports/changeset/26324
Author: markd at macports.org
Date: 2007-06-19 12:08:38 -0700 (Tue, 19 Jun 2007)
Log Message:
-----------
Closes #12119. Fix fetch and add an apple_postfix variant.
Modified Paths:
--------------
trunk/dports/mail/mailqfmt/Portfile
Modified: trunk/dports/mail/mailqfmt/Portfile
===================================================================
--- trunk/dports/mail/mailqfmt/Portfile 2007-06-19 18:12:23 UTC (rev 26323)
+++ trunk/dports/mail/mailqfmt/Portfile 2007-06-19 19:08:38 UTC (rev 26324)
@@ -1,5 +1,3 @@
-# $Id$
-
PortSystem 1.0
name mailqfmt
version 0.6
@@ -8,14 +6,29 @@
description Postfix mailq file reformatter
platforms darwin
master_sites http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/
-distfiles mailqfmt.pl
+distfiles ${name}.pl
checksums md5 e1d452850f59cd004d2d4930758a4a28
-depends_lib-append port:p5-libwww-perl
-destroot.destdir DESTDIR=${destroot} prefix=${prefix}
-extract.cmd mkdir ${name}-${version} && \
- cat > ${name}-${version}/${distfiles} <
-post-extract { file copy ${filespath}/Makefile \
- ${worksrcpath}/Makefile
- reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
- ${worksrcpath}/mailqfmt.pl }
+depends_lib-append port:p5-libwww-perl port:postfix
+
+variant apple_postfix {
+ depends_lib-delete port:postfix
+}
+
use_configure no
+extract {
+ file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt
+ }
+post-patch {
+ reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
+ ${workpath}/mailqfmt
+
+if { ![variant_isset apple_postfix] } {
+ reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" \
+ ${workpath}/mailqfmt
+ }
+ }
+build {}
+destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ xinstall -m 755 ${workpath}/mailqfmt ${destroot}${prefix}/bin/mailqfmt
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070619/01f41905/attachment.html
More information about the macports-changes
mailing list