Changeset 98349


Ignore:
Timestamp:
Oct 3, 2012, 10:09:01 AM (12 years ago)
Author:
ryandesign@…
Message:

wordplay: fix finding included words file; install readme in usual docdir

Location:
trunk/dports/games/wordplay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/wordplay/Portfile

    r98348 r98349  
    44name             wordplay
    55version          7.22
     6revision         1
    67categories       games
    78maintainers      nomaintainer
     
    2122patchfiles       patch-wordplay.c
    2223
     24post-patch {
     25    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/wordplay.c
     26}
     27
    2328use_configure    no
    2429
     
    3035destroot {
    3136        xinstall -m 755 ${worksrcpath}/wordplay ${destroot}${prefix}/bin
    32         xinstall -d -m 755 ${destroot}${prefix}/share/wordplay
    33         xinstall -m 644 ${worksrcpath}/readme ${destroot}${prefix}/share/wordplay
     37    xinstall -d -m 755 ${destroot}${prefix}/share/wordplay ${destroot}${prefix}/share/doc/wordplay
     38    xinstall -m 644 ${worksrcpath}/readme ${destroot}${prefix}/share/doc/wordplay
    3439        xinstall -m 644 ${worksrcpath}/words721.txt ${destroot}${prefix}/share/wordplay
    3540}
  • trunk/dports/games/wordplay/files/patch-wordplay.c

    r21480 r98349  
    1 --- wordplay.c.orig     2005-10-03 10:45:29.000000000 -0700
    2 +++ wordplay.c  2005-10-03 10:45:50.000000000 -0700
    3 @@ -136,6 +136,7 @@
     1--- wordplay.c.orig     1996-03-20 09:34:00.000000000 -0600
     2+++ wordplay.c  2012-10-03 05:07:15.000000000 -0500
     3@@ -136,13 +136,14 @@
    44 */
    55 
     
    99 #include <ctype.h>
    1010 
     11 #define max(A, B) ((A) > (B) ? (A) : (B))
     12 #define min(A, B) ((A) < (B) ? (A) : (B))
     13 
     14-#define DEFAULT_WORD_FILE "words721.txt"
     15+#define DEFAULT_WORD_FILE "@PREFIX@/share/wordplay/words721.txt"
     16 #define WORDBLOCKSIZE 4096
     17 #define MAX_WORD_LENGTH 128
     18 #define SAFETY_ZONE MAX_WORD_LENGTH + 1
Note: See TracChangeset for help on using the changeset viewer.