Ignore:
Timestamp:
Jun 17, 2007, 10:01:27 PM (12 years ago)
Author:
yves@…
Message:

This is gnustep-make-2.0 and friends

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnustep/gnustep-make/Portfile

    r22028 r26263  
    11# $Id$
    22
    3 PortSystem                      1.0
    4 name                    gnustep-make
    5 version                 1.13.0
    6 revision                        1
    7 categories          gnustep devel cross
    8 platforms               darwin
    9 maintainers         yves@macports.org
     3PortSystem 1.0
     4name            gnustep-make
     5version         2.0.1
     6categories      gnustep devel cross
     7platforms       darwin
     8maintainers     yves@macports.org
    109
    11 description             GNUstep makefile package
     10description     GNUstep makefile package
    1211long_description \
    1312    The GNUstep makefile package is a simple, powerful and extensible way to \
    14         write makefiles for a GNUstep-based project.  It allows the user to \
    15         write a project without having to deal with the complex issues \
    16         associated with configuration, building, installation, and packaging. \
    17         It also allows the user to easily create cross-compiled binaries.
     13    write makefiles for a GNUstep-based project.  It allows the user to \
     14    write a project without having to deal with the complex issues \
     15    associated with configuration, building, installation, and packaging. \
     16    It also allows the user to easily create cross-compiled binaries.
    1817
    19 master_sites gnustep:core
     18master_sites        gnustep:core
     19checksums           md5 f268733ea23f53e211e3977e27b46098
    2020
    21 checksums   md5 1d7a434e751c58c6390055c14ada302b
     21depends_lib         port:gcc42
    2222
    23 depends_lib     port:gcc41
     23configure.args      CC=gcc-mp-4.2 \
     24                    --with-library-combo=gnu-gnu-gnu
    2425
    25 patchfiles  patch-latex.make \
    26             patch-palette.make \
    27             patch-target.make
     26destroot.args       messages=yes
    2827
    29 configure.pre_args  --prefix=${prefix}/GNUstep
    30 configure.args \
    31     --with-library-combo=gnu-gnu-gnu CC=gcc-dp-4.1 \
    32     --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
     28default_variants    +gnustep_layout
    3329
    34 destroot.destdir    special_prefix=${destroot}
    35 destroot.keepdirs   ${destroot}${prefix}/GNUstep/Local
     30# for the curious only, not really supported by MacPorts
     31variant fhs_layout conflicts gnustep_layout {
     32    configure.args-append   --with-layout=fhs \
     33                            --with-config-file=${prefix}/etc/GNUstep.conf
     34    post-patch {
     35        reinplace "s|=/man|=/share/man|g" \
     36            ${worksrcpath}/FilesystemLayouts/fhs
     37        reinplace "s|=/info|=/share/info|g" \
     38            ${worksrcpath}/FilesystemLayouts/fhs
     39    }
     40}
    3641
    37 post-install {
    38     ui_msg "\n\
    39         ##########################################################\n\n\
    40         To have a fully working GNUstep make system, please add \n\
    41         '. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh' \n\
    42         to your shell login (in ~/.profile) \n\
    43         You may also want to set up your MANPATH and INFOPATH : \n\
    44         export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man:/usr/X11R6/man \n\
    45         export INFOPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/info:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/info:${prefix}/share/info:/usr/share/info \n\n\
    46         ##########################################################\n"
     42variant gnustep_layout {
     43    configure.pre_args      --prefix=${prefix}/GNUstep
     44    configure.args-append   \
     45        --with-config-file=${prefix}/GNUstep/System/Library/GNUstep.conf
     46
     47    destroot.keepdirs       ${destroot}${prefix}/GNUstep/Local
     48
     49    post-install {
     50        ui_msg "
     51##########################################################
     52To have a fully working GNUstep make system, please add
     53'. ${prefix}/GNUstep/System/Library/Makefiles/GNUstep.sh'
     54to your shell login (in ~/.profile)
     55
     56You may also want to set up your MANPATH :
     57export MANPATH=\$GNUSTEP_LOCAL_ROOT/Library/Documentation/man:\$GNUSTEP_SYSTEM_ROOT/Library/Documentation/man:${prefix}/share/man:/usr/share/man:/usr/X11R6/man
     58##########################################################
     59        "
     60    }
     61    if {[file exists ${prefix}/share/darwinports]} {
     62        set res ${prefix}/share/darwinports/resources/port1.0/group
     63    } elseif {[file exists ${prefix}/share/macports]} {
     64        set res ${prefix}/share/macports/resources/port1.0/group
     65    } else {
     66        ui_error "Something is wrong with your MacPorts installation."
     67        exit 1
     68    }
     69    xinstall -m 644 ${filespath}/gnustep-1.0.tcl $res
    4770}
     71
     72platform darwin {
     73    post-patch {
     74        reinplace "s|/home|/Users|g" \
     75            ${worksrcpath}/FilesystemLayouts/gnustep \
     76            ${worksrcpath}/FilesystemLayouts/fhs
     77    }
     78}
Note: See TracChangeset for help on using the changeset viewer.