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

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

gnustep-base: not universal since it uses gcc-mp-4.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 43917 2008-12-17 08:00:17Z jeremyhu@macports.org $
2
3PortSystem 1.0
4PortGroup   gnustep 1.0
5
6name        gnustep-base
7version     1.14.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 10a24a5568c5505c4b7480f170733d4d
23
24depends_lib         port:gnustep-make \
25                    port:libxslt \
26                    port:openssl
27
28destroot.violate_mtree yes
29
30universal_variant   no
31
32use_configure       yes
33
34destroot.keepdirs   ${destroot}${prefix}/var/run
35
36pre-extract {
37    if { [variant_isset with_docs] &&
38            [catch {set ilist [registry_installed ${name}]} result ]           
39    } then {
40        return -code error "
41       
42            gnustep-base documentation depends on gnustep-base ...
43            You must install gnustep-base before trying to install\
44            gnustep-base +with_docs
45        "
46    }
47}
48
49post-patch {
50    reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \
51        ${worksrcpath}/Documentation/GNUmakefile
52}
53
54startupitem.create  yes
55startupitem.name        gdomap
56set my_pid          ${prefix}/var/run/gdomap.pid
57startupitem.start   \
58    "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \
59    "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \
60    "rm -f ${my_pid} && \\" \
61    "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}"
62startupitem.stop    \
63    "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \
64    "kill -9 `cat ${my_pid}` && \\" \
65    "rm -f ${my_pid}"
66
67
68if { ![variant_isset ffcall] } {
69    default_variants +ffi
70}
71
72variant ffi description conflicts ffcall {Build with ffi (default)} {
73    depends_lib-append port:libffi
74    configure.args-append \
75        --enable-libffi \
76        --with-ffi-include=${prefix}/include/gcc42 \
77        --with-ffi-library=${prefix}/lib/gcc42
78}
79
80variant ffcall conflicts ffi description {Build with ffcall} {
81    depends_lib-append port:ffcall
82    configure.args-append \
83        --enable-ffcall
84}
85
86platform darwin {
87    post-destroot {
88        set system_dir ${destroot}${prefix}/GNUstep/System
89        file rename ${system_dir}/Tools/defaults ${system_dir}/Tools/gdefaults
90        file rename ${system_dir}/Library/Documentation/man/man1/defaults.1.gz \
91            ${system_dir}/Library/Documentation/man/man1/gdefaults.1.gz
92    }
93    post-install {
94        ui_msg "
95            **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\
96            overriding Apple's defaults tool. *****
97        "
98    }
99}
Note: See TracBrowser for help on using the repository browser.