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

Last change on this file since 73866 was 73866, checked in by and.damore@…, 10 years ago

whitespaces change gnustep-base

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