source: trunk/dports/games/fortune/Portfile @ 29531

Last change on this file since 29531 was 29531, checked in by afb@…, 12 years ago

fix crash with regexp (from astifter in #12716)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 29531 2007-09-27 11:36:06Z afb@macports.org $
2
3PortSystem 1.0
4
5name                    fortune
6version                 4.6.2-RELEASE
7revision                9
8categories              games
9maintainers             nomaintainer@macports.org
10description             Infamous electronic fortune-cookie generator
11long_description        ${description}
12platforms               darwin
13homepage                http://www.freebsd.org/
14use_bzip2               yes
15
16master_sites    macports
17
18checksums               md5 99166e1c47d4b60c865a31d59d359b16 \
19
20extract.only    ${name}-${version}.tar.bz2
21depends_lib             lib:libcompat.1:libcompat
22worksrcdir              ${name}
23dist_subdir             ${name}
24
25patchfiles      \
26                patch-fortune-Makefile patch-strfile-Makefile \
27                patch-unstr-Makefile patch-datfiles-Makefile \
28                patch-fortune.c patch-strfile.c
29
30configure {
31        reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
32        reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
33        reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
34        reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
35}
36
37build.type              bsd
38
39set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat fortunes2 \
40                fortunes2.dat fortunes2-o fortunes2-o.dat limerick \
41                limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
42                startrek startrek.dat zippy zippy.dat"
43
44destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
46        xinstall -m 755 ${worksrcpath}/fortune/fortune \
47                ${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr \
48                ${destroot}${prefix}/bin
49        xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz \
50                ${destroot}${prefix}/share/man/man6
51        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
52                ${destroot}${prefix}/share/man/man8
53        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
54                ${destroot}${prefix}/share/man/man8/unstr.8.gz
55       
56        foreach datfile $datfiles {
57                file copy ${worksrcpath}/datfiles/${datfile} \
58                        ${destroot}/${prefix}/share/games/fortune
59        }
60}
61
Note: See TracBrowser for help on using the repository browser.