Skip to content
Permalink
Browse files

adding .app hook on darwin systems

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4489 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Jan 6, 2004
1 parent 4c71453 commit 211ef43a13adc64e390ae13a736b8199c9175b61
Showing with 13 additions and 5 deletions.
  1. +13 −5 games/defendguin/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.1 2004/01/06 03:42:27 mww Exp $
# $Id: Portfile,v 1.2 2004/01/06 16:56:49 mww Exp $

PortSystem 1.0

@@ -7,9 +7,9 @@ version 0.0.10
categories games
platforms darwin
maintainers mww@opendarwin.org
description clone of the classic arcade game 'Defender'
long_description 'Defendguin' is based loosely on William's classic \
arcade game, 'Defender'. Some recognizable stars in \
description clone of the classic arcade game Defender
long_description Defendguin is based loosely on William's classic \
arcade game, Defender. Some recognizable stars in \
the realm of modern operating systems should be fairly \
obvious. Story: A certain monopoly-owning bad guy has \
been cloned hundreds of times by an unknown alien \
@@ -36,10 +36,18 @@ build.args PREFIX=${prefix} \
destroot.args PREFIX=${destroot}${prefix} \
MAN_PREFIX=${destroot}${prefix}/share

post-destroot {
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}
}

variant darwin {
post-destroot {
file mkdir ${destroot}/Applications/DarwinPorts/Defendguin.app/Contents/MacOS
system "ln -s ${prefix}/bin/defendguin \
${destroot}/Applications/DarwinPorts/Defendguin.app/Contents/MacOS/Defendguin"
}
}

0 comments on commit 211ef43

Please sign in to comment.
You can’t perform that action at this time.