[29834] trunk/dports/sysutils/pstree/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 11 05:11:01 PDT 2007


Revision: 29834
          http://trac.macosforge.org/projects/macports/changeset/29834
Author:   nox at macports.org
Date:     2007-10-11 05:11:00 -0700 (Thu, 11 Oct 2007)

Log Message:
-----------
pstree (closes #12871):
 * Added universal support.
 * Changed docdir name to a versioned one.
 * Removed useless xinstall arguments.

Modified Paths:
--------------
    trunk/dports/sysutils/pstree/Portfile

Modified: trunk/dports/sysutils/pstree/Portfile
===================================================================
--- trunk/dports/sysutils/pstree/Portfile	2007-10-11 12:08:46 UTC (rev 29833)
+++ trunk/dports/sysutils/pstree/Portfile	2007-10-11 12:11:00 UTC (rev 29834)
@@ -4,6 +4,7 @@
 
 name			pstree
 version			2.31
+revision        1
 categories		sysutils
 maintainers		mww at macports.org
 description		pstree shows the output of the ps command as a tree
@@ -24,16 +25,23 @@
 use_configure	no
 
 build.cmd	gcc
-build.args	pstree.c
+build.args	pstree.c ${configure.cflags}
 build.target	-o pstree
 
 destroot	{
-	xinstall -m 755 -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
-	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 ${worksrcpath}/README \
-		${destroot}${prefix}/share/doc/${name}/README
+	xinstall -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
+
+    set docdir ${prefix}/share/doc/${name}-${version}
+	xinstall -d ${destroot}${docdir}
+	xinstall -m 0644 ${worksrcpath}/README \
+		${destroot}${docdir}
 }
 
+variant universal {
+    build.args-append  ${configure.universal_cflags}
+}
+
 livecheck.check	regex
 livecheck.url	ftp://ftp.thp.uni-duisburg.de/pub/source/
 livecheck.regex	pstree.tar.gz -> pstree-(\[0-9\]+\\.\[0-9\]+)
+

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


More information about the macports-changes mailing list