[30554] trunk/dports/games/defendguin/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Oct 30 22:23:46 PDT 2007


Revision: 30554
          http://trac.macosforge.org/projects/macports/changeset/30554
Author:   ryandesign at macports.org
Date:     2007-10-30 22:23:46 -0700 (Tue, 30 Oct 2007)

Log Message:
-----------
defendguin:

 * update to 0.0.11
 * add sha1 and rmd160 checksums
 * change dependencies to port:X style instead of lib:X:X style
 * install documentation to versioned directory
 * use xinstall instead of file copy and file mkdir
 * don't need to use system to create symlinks

Modified Paths:
--------------
    trunk/dports/games/defendguin/Portfile

Modified: trunk/dports/games/defendguin/Portfile
===================================================================
--- trunk/dports/games/defendguin/Portfile	2007-10-31 05:07:37 UTC (rev 30553)
+++ trunk/dports/games/defendguin/Portfile	2007-10-31 05:23:46 UTC (rev 30554)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name		defendguin
-version		0.0.10
+version		0.0.11
 categories	games
 platforms	darwin
 maintainers	nomaintainer
@@ -20,11 +20,15 @@
 
 homepage        http://www.newbreedsoftware.com/defendguin/
 master_sites    ftp://ftp.billsgames.com/unix/x/defendguin/src/
-checksums       md5 83f3ac061be1ed21648c16665ac0984b
 
-depends_lib	bin:sdl-config:libsdl \
-                lib:libSDL_mixer:libsdl_mixer
+checksums \
+	md5 c8040e39f199c5338625066025ec2395 \
+	sha1 e7d9e31aebe5d43d854170fcbbf82eaf8daa4ea4 \
+	rmd160 383c40d5091aad917b290506cd1e1527531e106c
 
+depends_lib	port:libsdl \
+                port:libsdl_mixer
+
 use_configure	no
 
 build.env	CFLAGS=-I${prefix}/include \
@@ -36,18 +40,23 @@
 destroot.args	PREFIX=${destroot}${prefix} \
 		MAN_PREFIX=${destroot}${prefix}/share
 
-pre-destroot	{
-	file mkdir ${destroot}${prefix}/share/doc/${name}
-	file copy ${worksrcpath}/CHANGES.txt ${worksrcpath}/COPYING.txt \
-		${worksrcpath}/README.txt ${worksrcpath}/AUTHORS.txt \
-		${worksrcpath}/INSTALL.txt ${worksrcpath}/TODO.txt \
-		${destroot}${prefix}/share/doc/${name}
+post-destroot	{
+	set docdir ${destroot}${prefix}/share/doc/${name}-${version}
+	xinstall -d ${docdir}
+	xinstall -W ${worksrcpath}/docs \
+		AUTHORS.txt \
+		CHANGES.txt \
+		COPYING.txt \
+		INSTALL.txt \
+		README.txt \
+		TODO.txt \
+		${docdir}
 }
 
 platform darwin	{
 	post-destroot	{
-		file mkdir ${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS
-		system "ln -s ${prefix}/bin/defendguin \
-			${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS/Defendguin"
+		xinstall -d ${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS
+		ln -s ${prefix}/bin/defendguin \
+			${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS/Defendguin
 	}
 }

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


More information about the macports-changes mailing list