# $Id: Portfile 26263 2007-06-17 22:01:27Z yves@macports.org $ PortSystem 1.0 PortGroup gnustep 1.0 name gnustep-base version 1.14.0 platforms darwin maintainers yves@macports.org description A library of general-purpose Objective C objects. long_description \ The GNUstep Base Library is a library of general-purpose, non-graphical \ Objective C objects. For example, it includes classes for strings, \ object collections, byte streams, typed coders, invocations, \ notifications, notification dispatchers, moments in time, network ports, \ remote object messaging support (distributed objects), and event loops. \ \ It provides functionality that aims to implement the non-graphical \ portion of the OpenStep standard (the Foundation library). checksums md5 10a24a5568c5505c4b7480f170733d4d depends_lib port:ffcall \ port:gnustep-make \ port:libxslt \ port:openssl use_configure yes destroot.keepdirs ${destroot}${prefix}/var/run pre-extract { if { [variant_isset with_docs] && [catch {set ilist [registry_installed ${name}]} result ] } then { ui_warn " gnustep-base documentation depends on gnustep-base ... You must install gnustep-base before trying to install\ gnustep-base +with_docs " exit 1 } } post-patch { reinplace "s|CODING-STANDARDS|GS-CODING-STANDARDS|g" \ ${worksrcpath}/Documentation/GNUmakefile } startupitem.create yes startupitem.name gdomap set my_pid ${prefix}/var/run/gdomap.pid startupitem.start \ "GNUSTEP_SYSTEM_ROOT=${prefix}/GNUstep/System" \ "\[ -f \$GNUSTEP_SYSTEM_ROOT/Tools/gdomap \] && \\" \ "rm -f ${my_pid} && \\" \ "\$GNUSTEP_SYSTEM_ROOT/Tools/gdomap -p -I ${my_pid}" startupitem.stop \ "\[ -r ${prefix}/var/run/gdomap.pid \] && \\" \ "kill -9 `cat ${my_pid}` && \\" \ "rm -f ${my_pid}" variant with_ffi { configure.args-append \ --enable-libffi \ --with-ffi-include=${prefix}/include/gcc42 \ --with-ffi-library=${prefix}/lib/gcc42 } platform darwin { post-destroot { cd ${destroot}${prefix}/GNUstep/System file rename Tools/defaults Tools/gdefaults file rename Library/Documentation/man/man1/defaults.1.gz \ Library/Documentation/man/man1/gdefaults.1.gz } post-install { ui_msg " **** GNUstep 'defaults' tool is renamed 'gdefaults' to avoid\ overriding Apple's defaults tool. ***** " } }