[28506] trunk/dports/archivers/makeself/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 2 13:22:24 PDT 2007


Revision: 28506
          http://trac.macosforge.org/projects/macports/changeset/28506
Author:   nox at macports.org
Date:     2007-09-02 13:22:24 -0700 (Sun, 02 Sep 2007)

Log Message:
-----------
makeself:
 * Added doc installation.
 * Changed extract procedure.

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

Modified: trunk/dports/archivers/makeself/Portfile
===================================================================
--- trunk/dports/archivers/makeself/Portfile	2007-09-02 20:15:23 UTC (rev 28505)
+++ trunk/dports/archivers/makeself/Portfile	2007-09-02 20:22:24 UTC (rev 28506)
@@ -1,11 +1,13 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem  1.0
+
 name        makeself
 version     2.1.4
 categories  archivers
-maintainers nomaintainer at macports.org
+maintainers nomaintainer
 description A small shell script that generates a self-extractable archives
+
 long_description \
     makeself.sh is a small shell script that generates a \
     self-extractable tar.gz archive  from a directory. The \
@@ -25,8 +27,7 @@
 worksrcdir  ${name}
 
 extract {
-    file attributes "${distpath}/${distfiles}" -permissions a+x
-    system "${distpath}/${distfiles} --nox11 --target ${worksrcpath}"
+    system "sh ${distpath}/${distfiles} --nox11 --target ${worksrcpath}"
 }
 
 post-patch {
@@ -38,10 +39,17 @@
 build {}
 
 destroot {
-    xinstall -m 755 -d ${destroot}/${prefix}/libexec/makeself
-    xinstall "${worksrcpath}/makeself-header.sh" "${destroot}/${prefix}/libexec/makeself/"
-    xinstall "${worksrcpath}/makeself.sh" "${destroot}/${prefix}/bin/makeself"
-    xinstall "${worksrcpath}/makeself.1" "${destroot}/${prefix}/share/man/man1/"
+	cd ${worksrcpath}
+
+    xinstall -d ${destroot}${prefix}/libexec/makeself
+    xinstall makeself-header.sh ${destroot}${prefix}/libexec/makeself
+    xinstall makeself.sh ${destroot}${prefix}/bin/makeself
+
+    xinstall makeself.1 ${destroot}${prefix}/share/man/man1
+
+	set docdir ${prefix}/share/doc/${name}-${version}
+	xinstall -d ${destroot}${docdir}
+	xinstall -m 0644 COPYING README TODO ${destroot}${docdir}
 }
 
 universal_variant no

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


More information about the macports-changes mailing list