Revision
38830
Author
ryandesign@macports.org
Date
2008-08-01 00:02:34 -0700 (Fri, 01 Aug 2008)

Log Message

PlopFolio:

 * use xcode portgroup so the port builds at all with current Xcode, and so that it automatically uses ${applications_dir} instead of assuming /Applications/MacPorts
 * fix permissions for install if you're not root

Modified Paths

Diff

Modified: trunk/dports/news/PlopFolio/Portfile (38829 => 38830)


--- trunk/dports/news/PlopFolio/Portfile	2008-08-01 06:25:22 UTC (rev 38829)
+++ trunk/dports/news/PlopFolio/Portfile	2008-08-01 07:02:34 UTC (rev 38830)
@@ -1,11 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup xcode 1.0
 
 name		PlopFolio
 version		0.1.0
 categories	news aqua
-platforms	darwin
 maintainers	nomaintainer
 description	PlopFolio is a free KlipFolio clone that supports Klips
 long_description	PlopFolio is a free clone of Serences KlipFolio \
@@ -16,14 +16,12 @@
 master_sites	http://debian.uni-essen.de/misc/GNUstep/Apps/PlopFolio/
 checksums	md5 a1752b4ff0707701f993451da924a46d
 
-use_configure	no
+worksrcdir	${name}
 
-build.dir	${workpath}/${name}
-build.type	pbx
-build.target
-
-destroot	{
-	file mkdir ${destroot}/Applications/MacPorts
-	file copy ${build.dir}/build/${name}.app \
-		${destroot}/Applications/MacPorts
+post-destroot {
+    fs-traverse dir ${destroot} {
+        if {[file isdirectory ${dir}]} {
+            file attributes ${dir} -permissions u+w
+        }
+    }
 }