Ignore:
Timestamp:
Sep 5, 2014, 8:08:03 AM (5 years ago)
Author:
ryandesign@…
Message:

colorer: move some reinplaces to patchfiles

Location:
trunk/dports/textproc/colorer
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/colorer/Portfile

    r125088 r125101  
    3737variant universal {}
    3838
    39 patchfiles      patch-Makefile.in.diff
     39patchfiles      patch-Makefile.in.diff \
     40                patch-src-libcolorer-makefile.gcc.diff
    4041
    4142post-patch {
     
    4647    reinplace s/int(/bool(/ ${worksrcpath}/src/shared/unicode/BitArray.cpp
    4748
    48     # Libraries extension is ".dylib" on Darwin, not ".so"
    49     reinplace {s/\.so/.dylib/} \
    50         ${worksrcpath}/Makefile.in \
    51         ${worksrcpath}/src/libcolorer/makefile.gcc
    52 
    53     # The flag to build dynamic libraries on Darwin is -dynamiclib
    54     # Furthermore we need to write down libcolorer install name
    55     reinplace \
    56         "s:-shared:-dynamiclib -install_name ${prefix}/lib/\$(TARGET):" \
    57         ${worksrcpath}/src/libcolorer/makefile.gcc
    58 
    5949    # Do not force installation as root
    6050    reinplace {s/-g 0 -o 0//} ${worksrcpath}/Makefile.in
    61 
    62     # Install documentation in an unversioned directory
    63     reinplace s:doc/colorer-take5:doc/colorer: ${worksrcpath}/Makefile.in
    6451
    6552    reinplace "/^CPPFLAGS/s:\$: [get_canonical_archflags cc]:" \
     
    7966# Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
    8067build.args          CPP=${configure.cc} \
    81                     LINK=${configure.cxx}
     68                    LINK=${configure.cxx} \
     69                    prefix=${prefix}
    8270use_parallel_build yes
    8371
  • trunk/dports/textproc/colorer/files/patch-Makefile.in.diff

    r62612 r125101  
     1Change library extension to .dylib
     2Use unversioned doc dir
    13Do not use GNU cp --parents flag
    2 
    3 --- Makefile.in.orig    2010-01-12 05:09:19.000000000 +0100
    4 +++ Makefile.in 2010-01-12 05:13:13.000000000 +0100
    5 @@ -37,5 +37,8 @@
     4--- Makefile.in.orig    2006-11-24 17:14:40.000000000 -0600
     5+++ Makefile.in 2014-09-04 22:28:40.000000000 -0500
     6@@ -16,7 +16,7 @@
     7 install:
     8        install -g 0 -o 0 -m 755 -d $(prefix)
     9        install -g 0 -o 0 -m 755 -d $(prefix)/lib
     10-       install -g 0 -o 0 -m 755 src/libcolorer/libcolorer.so $(prefix)/lib
     11+       install -g 0 -o 0 -m 755 src/libcolorer/libcolorer.dylib $(prefix)/lib
     12 
     13        install -g 0 -o 0 -m 755 -d $(prefix)/bin
     14        install -g 0 -o 0 -m 755 src/colorer/colorer $(prefix)/bin
     15@@ -32,10 +32,13 @@
     16        chmod 0777 /tmp/colorer.log
     17 
     18        install -g 0 -o 0 -m 755 -d $(prefix)/share/doc
     19-       install -g 0 -o 0 -m 755 -d $(prefix)/share/doc/colorer-take5
     20-       cp -r doc/* $(prefix)/share/doc/colorer-take5
     21+       install -g 0 -o 0 -m 755 -d $(prefix)/share/doc/colorer
     22+       cp -r doc/* $(prefix)/share/doc/colorer
    623 
    724        install -g 0 -o 0 -m 755 -d $(prefix)/include
Note: See TracChangeset for help on using the changeset viewer.