[70103] trunk/dports/lang/parrot/Portfile

tommyd at macports.org tommyd at macports.org
Thu Jul 29 17:45:30 PDT 2010


Revision: 70103
          http://trac.macports.org/changeset/70103
Author:   tommyd at macports.org
Date:     2010-07-29 17:45:30 -0700 (Thu, 29 Jul 2010)
Log Message:
-----------
* configure with the correct --mandir so dependent ports
  which pick up the mandir through parrot_config install
  their man pages in a proper location
* install parrot straight into ${prefix}, so documentation,
  man pages (again) and other files are in the expected
  locations

Modified Paths:
--------------
    trunk/dports/lang/parrot/Portfile

Modified: trunk/dports/lang/parrot/Portfile
===================================================================
--- trunk/dports/lang/parrot/Portfile	2010-07-29 22:47:05 UTC (rev 70102)
+++ trunk/dports/lang/parrot/Portfile	2010-07-30 00:45:30 UTC (rev 70103)
@@ -4,6 +4,7 @@
 
 name                    parrot
 version                 2.6.0
+revision                1
 categories              lang devel
 maintainers             bfulgham coleda.com:will
 description             Open source virtual machine (for Perl6 et al.)
@@ -26,10 +27,12 @@
 depends_lib             port:gmp port:icu
 
 configure.cmd           perl Configure.pl
-configure.pre_args      --prefix=${prefix}/lib/parrot
-configure.args          --optimize
+configure.pre_args      --prefix=${prefix} \
+                        --mandir=${prefix}/share/man \
+                        --optimize
 
 destroot.target         install
+destroot.args           DESTDIR=${destroot}
 
 build.type              gnu
 build.target
@@ -37,8 +40,6 @@
 test.run                yes
 test.target             test
 
-destroot.destdir        PREFIX=${destroot}${prefix}/lib/parrot
-
 post-destroot {
     set bindir ${destroot}${prefix}/bin
     set docdir ${destroot}${prefix}/share/doc/${name}
@@ -52,13 +53,10 @@
     foreach exe $executables {
         # fixup the library path
         set old_path "${workpath}/parrot-${version}/blib/lib/libparrot.dylib"
-        set new_path "${prefix}/lib/parrot/lib/libparrot.${version}.dylib"
+        set new_path "${prefix}/lib/libparrot.${version}.dylib"
 
-        system "cd ${prefix}/lib/parrot/bin && \
+        system "cd ${bindir} && \
             install_name_tool -change \"$old_path\" \"$new_path\" ${exe}"
-
-        # install into the common area.
-        system "cd ${bindir} && ln -sf ${prefix}/lib/parrot/bin/${exe}"
     }
     xinstall -m 755 -d ${docdir}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100729/453f4946/attachment.html>


More information about the macports-changes mailing list