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

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

gnustep-base: update to 1.18.0

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