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

Last change on this file since 27243 was 27243, checked in by yves@…, 13 years ago

use return instead of exit

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