source: trunk/dports/games/greed/Portfile

Last change on this file was 112916, checked in by jmr@…, 4 years ago

greed: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 112916 2013-11-04 03:30:42Z ryandesign@macports.org $
2
3PortSystem       1.0
4
5name             greed
6version          3.6
7categories       games
8license          GPL-2
9maintainers      nomaintainer
10description      strategy game
11long_description \
12    The strategy game of Greed. Try to eat as much as possible \
13    of the board before munching yourself into a corner.
14homepage         http://www.catb.org/~esr/greed/
15platforms        darwin
16master_sites     sunsite:games/solitaires
17checksums        md5 502106bda564e0e7ce48f590a2555cf9
18use_configure    no
19build.target     ${name}
20
21patch {
22    reinplace s|/install|/greed| $worksrcpath/Makefile
23    reinplace "s|cp greed |cp greed \$\{DESTDIR\}|" $worksrcpath/Makefile
24    reinplace "s|cp greed.6 |cp greed.6 \$\{DESTDIR\}|" \
25        $worksrcpath/Makefile
26    reinplace s|BIN=/usr/games|BIN=${prefix}/bin| $worksrcpath/Makefile
27    reinplace s|SFILE=/usr/games/lib|SFILE=${prefix}/share/greed| \
28        $worksrcpath/Makefile
29    reinplace s|/usr/share|${prefix}/share| $worksrcpath/Makefile
30}
31
32post-destroot {
33    file mkdir ${destroot}${prefix}/share/greed
34    system "touch ${destroot}${prefix}/share/greed/greed.hs"
35    system "chmod 775 ${destroot}${prefix}/share/greed/greed.hs"
36}
Note: See TracBrowser for help on using the repository browser.