[64810] trunk/dports/print/cups-pdf/Portfile

blb at macports.org blb at macports.org
Mon Mar 15 17:01:37 PDT 2010


Revision: 64810
          http://trac.macports.org/changeset/64810
Author:   blb at macports.org
Date:     2010-03-15 17:01:35 -0700 (Mon, 15 Mar 2010)
Log Message:
-----------
print/cups-pdf - move ui_msg to notes

Modified Paths:
--------------
    trunk/dports/print/cups-pdf/Portfile

Modified: trunk/dports/print/cups-pdf/Portfile
===================================================================
--- trunk/dports/print/cups-pdf/Portfile	2010-03-15 23:54:22 UTC (rev 64809)
+++ trunk/dports/print/cups-pdf/Portfile	2010-03-16 00:01:35 UTC (rev 64810)
@@ -5,7 +5,7 @@
 version             2.5.0
 revision            2
 categories          print textproc
-maintainers         blb
+maintainers         blb openmaintainer
 description         Provides a print-to-PDF feature through CUPS
 long_description \
    This software is designed to produce PDF files in a heterogeneous \
@@ -13,6 +13,34 @@
 
 platforms           darwin
 
+if {${os.platform} == "darwin" && ${os.major} > 9} {
+   set notes-darwinover9 "
+   As of Mac OS X 10.6, cups can no longer write into user directories, so
+   the output directory for ${name} has been updated to reflect this.
+   ${name} will now write PDF files into ${prefix}/var/spool/cups-pdf/\$USER .
+   You can create a symlink to this location from Desktop to have it behave as
+   before:
+      ln -s ${prefix}/var/spool/cups-pdf/\$USER ~/Desktop/cups-pdf
+
+   If you are upgrading, your ${prefix}/etc/cups/cups-pdf.conf file will
+   not be touched, and will probably need the Out parameter updated; see the
+   ${prefix}/etc/cups/cups-pdf.conf.dist file for an example."
+} else {
+   set notes-darwinover9 ""
+}
+
+notes "
+   *************************************************************
+   If this is the first installation, there are a couple of items to do:
+   -  First, symlinks in /usr are needed for CUPS to see cups-pdf, so run
+      (it will run sudo so may ask for your password):
+         ${prefix}/libexec/cups-pdf_links.sh
+   -  Edit ${prefix}/etc/cups/cups-pdf.conf as needed
+   -  Finally, tell cupsd to update (it may not be running on 10.5+):
+         sudo killall -1 cupsd
+   *************************************************************
+   ${notes-darwinover9}"
+
 homepage            http://www.cups-pdf.de/
 master_sites        ${homepage}src/
 distname            ${name}_${version}
@@ -86,37 +114,11 @@
       ${destroot}${prefix}/libexec/cups-pdf_links.sh
 }
 
+
 post-activate {
-   ui_msg "\n*************************************************************"
-   ui_msg "If this is the first installation, there are a couple of items"
-   ui_msg "to do:"
-   ui_msg "-  First, symlinks in /usr are needed for CUPS to see cups-pdf, so"
-   ui_msg "   run (it will run sudo so may ask for your password):"
-   ui_msg "      ${prefix}/libexec/cups-pdf_links.sh"
-   ui_msg "-  Edit ${prefix}/etc/cups/cups-pdf.conf as needed"
-   ui_msg "-  Finally, tell cupsd to update (it may not be running on 10.5):"
-   ui_msg "      sudo killall -1 cupsd"
-   ui_msg "\n*************************************************************"
-   if {${os.platform} == "darwin" && ${os.major} > 9} {
-      ui_msg "As of Mac OS X 10.6, cups can no longer write into user"
-      ui_msg "directories, so the output directory for ${name} has been"
-      ui_msg "updated to reflect this.  ${name} will now write PDF files"
-      ui_msg "into ${prefix}/var/spool/cups-pdf/\$USER .  You can create a"
-      ui_msg "symlink to this location from Desktop to have it behave as"
-      ui_msg "before:"
-      ui_msg "   ln -s ${prefix}/var/spool/cups-pdf/\$USER ~/Desktop/cups-pdf"
-   }
-   ui_msg "\n*************************************************************"
    if {![file exists ${prefix}/etc/cups/cups-pdf.conf]} {
       copy ${prefix}/etc/cups/cups-pdf.conf.dist \
          ${prefix}/etc/cups/cups-pdf.conf
-   } else {
-      if {${os.platform} == "darwin" && ${os.major} > 9} {
-         ui_msg "Note that your ${prefix}/etc/cups/cups-pdf.conf file is"
-         ui_msg "not being touched, and may need to have the Out parameter"
-         ui_msg "updated; see the ${prefix}/etc/cups/cups-pdf.conf.dist file"
-         ui_msg "for an example"
-      }
    }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100315/7b8db90f/attachment.html>


More information about the macports-changes mailing list