source: trunk/dports/gnustep/gnustep-base/Portfile @ 84710

Last change on this file since 84710 was 84710, checked in by jmr@…, 6 years ago

gnustep-base: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
RevLine 
[20307]1# $Id: Portfile 84710 2011-09-30 09:02:16Z jmr@macports.org $
[17783]2
[26263]3PortSystem 1.0
[17783]4PortGroup   gnustep 1.0
5
[73866]6name                gnustep-base
7version             1.19.1
8revision            1
9platforms           darwin
[84710]10# libs are LGPL, tools are GPL
11license             {LGPL-3+ GPL-3+}
[73866]12maintainers         nomaintainer
[17783]13
[73866]14description         A library of general-purpose Objective C objects.
[17783]15long_description \
16    The GNUstep Base Library is a library of general-purpose, non-graphical \
17    Objective C objects.  For example, it includes classes for strings, \
18    object collections, byte streams, typed coders, invocations, \
19    notifications, notification dispatchers, moments in time, network ports, \
20    remote object messaging support (distributed objects), and event loops. \
21    \
22    It provides functionality that aims to implement the non-graphical \
23    portion of the OpenStep standard (the Foundation library).
24
[53602]25checksums           md5     100e433a7e0624a6e4e5727b87e48c82 \
26                    sha1    98d1881b44f412432547abd7504ad654dc9f711f \
27                    rmd160  056e1d1a40479eddf6cd93b452897896e869733e
[17783]28
[32265]29depends_lib         port:gnustep-make \
[26263]30                    port:libxslt \
31                    port:openssl
32
[43917]33universal_variant   no
34
[38289]35use_configure       yes
[73866]36configure.env-append    LIBOBJC=-lobjc-gnu
37configure.args-append   --disable-tls
[38289]38
[26263]39destroot.keepdirs   ${destroot}${prefix}/var/run
40
[17783]41pre-extract {
[26263]42    if { [variant_isset with_docs] &&
43            [catch {set ilist [registry_installed ${name}]} result ]           
[17783]44    } then {
[27243]45        return -code error "
46       
[26263]47            gnustep-base documentation depends on gnustep-base ...
[17783]48            You must install gnustep-base before trying to install\
[26263]49            gnustep-base +with_docs
50        "
[17783]51    }
52}
53
[22988]54post-patch {
[17783]55    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
56        ${worksrcpath}/Documentation/GNUmakefile
57}
58
[22988]59startupitem.create  yes
[73866]60startupitem.name    gdomap
[22988]61set my_pid          ${prefix}/var/run/gdomap.pid
62startupitem.start   \
63    "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
64    "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
65    "rm -f ${my_pid} && \\" \
66    "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
67startupitem.stop    \
68    "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
69    "kill -9 `cat ${my_pid}` && \\" \
70    "rm -f ${my_pid}"
71
[32265]72
73if { ![variant_isset ffcall] } {
74    default_variants +ffi
75}
76
[57750]77variant ffi description conflicts ffcall description {Build with ffi} {
[32265]78    depends_lib-append port:libffi
[26263]79    configure.args-append \
[32265]80        --enable-libffi \
81        --with-ffi-include=${prefix}/include/gcc42 \
[26263]82        --with-ffi-library=${prefix}/lib/gcc42
[17783]83}
84
[32265]85variant ffcall conflicts ffi description {Build with ffcall} {
86    depends_lib-append port:ffcall
87    configure.args-append \
88        --enable-ffcall
89}
90
[17783]91platform darwin {
[53602]92    patchfiles-append       patch-SSL-GNUMakefile.diff
93
[17783]94    post-destroot {
[45045]95        set system_dir ${destroot}${prefix}/GNUstep/Local
96        move ${system_dir}/Tools/defaults ${system_dir}/Tools/gdefaults
97        move ${system_dir}/Library/Documentation/man/man1/defaults.1.gz \
[32264]98            ${system_dir}/Library/Documentation/man/man1/gdefaults.1.gz
[17783]99    }
100    post-install {
[26263]101        ui_msg "
[17783]102            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
[26263]103            overriding Apple's defaults tool. *****
104        "
[17783]105    }
106}
Note: See TracBrowser for help on using the repository browser.