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

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

Undo r38082 because the affected ports are in the xcode, gnustep, python24 and python25 portgroups where the default for use_configure is no. Thanks to Bryan Blackburn for pointing this out.

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