···1+--- gnustep-base-1.24.7/Makefile.postamble 2011-07-15 19:53:45.000000000 +0600
2++++ gnustep-base-1.24.7.patched/Makefile.postamble 2014-11-29 22:25:07.000000000 +0600
3+@@ -38,13 +38,13 @@
4+ # Things to do after compiling
5+ # after-all::
6+7+-$(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional:
8+- $(ECHO_CREATING)$(MKDIRS) $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional$(END_ECHO)
9++$(DESTDIR_GNUSTEP_MAKEFILES)/Additional:
10++ $(ECHO_CREATING)$(MKDIRS) $(DESTDIR_GNUSTEP_MAKEFILES)/Additional$(END_ECHO)
11+12+ # Things to do before installing
13+-before-install:: $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional
14++before-install:: $(DESTDIR_GNUSTEP_MAKEFILES)/Additional
15+ $(ECHO_NOTHING)$(INSTALL_DATA) base.make \
16+- $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
17++ $(DESTDIR_GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
18+19+ # Things to do after installing
20+ # after-install::
21+@@ -54,7 +54,7 @@
22+23+ # Things to do after uninstalling
24+ after-uninstall::
25+- $(ECHO_NOTHING)rm -f $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
26++ $(ECHO_NOTHING)rm -f $(DESTDIR_GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
27+28+ # Things to do before cleaning
29+ # before-clean::
···1+--- gnustep-gui-0.24.0/GNUmakefile.postamble 2010-05-17 22:38:59.000000000 +0600
2++++ gnustep-gui-0.24.0.patched/GNUmakefile.postamble 2014-12-01 13:44:05.000000000 +0600
3+@@ -40,20 +40,20 @@
4+ # The following rule is important mainly for packaging, because in that case
5+ # you install into a fake system tree, and the directory is not there.
6+ #
7+-$(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional:
8+- $(MKDIRS) $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional
9++$(DESTDIR_GNUSTEP_MAKEFILES)/Additional:
10++ $(MKDIRS) $(DESTDIR_GNUSTEP_MAKEFILES)/Additional
11+12+ # Things to do before installing
13+-before-install:: $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional
14++before-install:: $(DESTDIR_GNUSTEP_MAKEFILES)/Additional
15+ $(INSTALL_DATA) gui.make \
16+- $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/gui.make
17++ $(DESTDIR_GNUSTEP_MAKEFILES)/Additional/gui.make
18+19+ # Things to do after installing
20+ # after-install::
21+22+ # Things to do before uninstalling
23+ before-uninstall::
24+- rm -f $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/gui.make
25++ rm -f $(DESTDIR_GNUSTEP_MAKEFILES)/Additional/gui.make
26+27+ # Things to do after uninstalling
28+ # after-uninstall::
···1+# These GNUSTEP_*_ROOT variables are obsolete, and will be removed.
2+#GNUSTEP_SYSTEM_ROOT=/nix/store/ky64z3j9l18wjcssb9pxnc792ihh3bvw-gnustep-make-2.6.6/System
3+#GNUSTEP_LOCAL_ROOT=/nix/store/ky64z3j9l18wjcssb9pxnc792ihh3bvw-gnustep-make-2.6.6/Local
4+#GNUSTEP_NETWORK_ROOT=/nix/store/ky64z3j9l18wjcssb9pxnc792ihh3bvw-gnustep-make-2.6.6/Network
5+6+# The name of the user config file. This file can override
7+# some settings in this file. Usually used by users that want
8+# to install things into their GNUstep user domain and/or have
9+# many such domains.
10+GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
11+12+# The name of the user directory, if any. This is obsolete,
13+# and will be removed.
14+GNUSTEP_USER_DIR=GNUstep
15+16+# The name of the user directory where defaults (eg, preferences) are
17+# stored. If it does not start with a '/', it will be considered
18+# relative to the user home directory.
19+GNUSTEP_USER_DEFAULTS_DIR=GNUstep/Defaults
20+21+22+# This is where the gnustep-make Makefiles are installed.
23+# Traditionally, this is /usr/GNUstep/System/Library/Makefiles
24+GNUSTEP_MAKEFILES=@gnustepMakefiles@
25+26+# This is where the user home directories are. Only used to provide
27+# NSUserDirectory in gnustep-base. Never used anywhere else.
28+GNUSTEP_SYSTEM_USERS_DIR=/home
29+GNUSTEP_NETWORK_USERS_DIR=/home
30+GNUSTEP_LOCAL_USERS_DIR=/home
31+32+33+# This is where System GUI Applications get installed.
34+# Traditionally it is /usr/GNUstep/System/Applications.
35+GNUSTEP_SYSTEM_APPS=@systemApps@
36+37+# This is where System GUI Applications that only the
38+# Administrator can use get installed.
39+# Traditionally it is /usr/GNUstep/System/Applications/Admin.
40+GNUSTEP_SYSTEM_ADMIN_APPS=@systemAdminApps@
41+42+# This is where System Web Applications (GSWeb, SOPE) get
43+# installed.
44+# Traditionally it is /usr/GNUstep/System/Library/WebApplications.
45+GNUSTEP_SYSTEM_WEB_APPS=@systemWebApps@
46+47+# This is where System Command-Line Tools get installed.
48+# Traditionally it is /usr/GNUstep/System/Tools.
49+GNUSTEP_SYSTEM_TOOLS=@systemTools@
50+51+# This is where System Command-Line Tools that only the
52+# Administrator can use get installed. Important: this
53+# should not be in the PATH of normal users.
54+# Traditionally it is /usr/GNUstep/System/Tools/Admin.
55+GNUSTEP_SYSTEM_ADMIN_TOOLS=@systemAdminTools@
56+57+# This is where System resources get installed. This directory will
58+# contain a lot of executable code since *step traditionally likes to
59+# bundle executables and resources together.
60+# Traditionally it is /usr/GNUstep/System/Library.
61+GNUSTEP_SYSTEM_LIBRARY=@systemLibrary@
62+63+# This is where System headers get installed. They are the
64+# library .h headers.
65+# Traditionally it is /usr/GNUstep/System/Library/Headers.
66+GNUSTEP_SYSTEM_HEADERS=@systemHeaders@
67+68+# This is where System libraries get installed. By libraries we mean
69+# the shared/static object files that you can link into programs.
70+# Traditionally it is /usr/GNUstep/System/Library/Libraries.
71+GNUSTEP_SYSTEM_LIBRARIES=@systemLibraries@
72+73+# This is where System documentation get installed. This is known
74+# not to contain any executable, so we keep it separate.
75+# Traditionally it is /usr/GNUstep/System/Library/Documentation.
76+GNUSTEP_SYSTEM_DOC=@systemDoc@
77+78+# This is where System man pages get installed.
79+# Traditionally it is /usr/GNUstep/System/Library/Documentation/man.
80+GNUSTEP_SYSTEM_DOC_MAN=@systemDocMan@
81+82+# This is where System info pages get installed.
83+# Traditionally it is /usr/GNUstep/System/Library/Documentation/info.
84+GNUSTEP_SYSTEM_DOC_INFO=@systemDocInfo@
85+86+87+GNUSTEP_NETWORK_APPS=@systemApps@
88+GNUSTEP_NETWORK_ADMIN_APPS=@systemAdminApps@
89+GNUSTEP_NETWORK_WEB_APPS=@systemWebApps@
90+GNUSTEP_NETWORK_TOOLS=@systemTools@
91+GNUSTEP_NETWORK_ADMIN_TOOLS=@systemAdminTools@
92+GNUSTEP_NETWORK_LIBRARY=@systemLibrary@
93+GNUSTEP_NETWORK_HEADERS=@systemHeaders@
94+GNUSTEP_NETWORK_LIBRARIES=@systemLibraries@
95+GNUSTEP_NETWORK_DOC=@systemDoc@
96+GNUSTEP_NETWORK_DOC_MAN=@systemDocMan@
97+GNUSTEP_NETWORK_DOC_INFO=@systemDocInfo@
98+99+GNUSTEP_LOCAL_APPS=@systemApps@
100+GNUSTEP_LOCAL_ADMIN_APPS=@systemAdminApps@
101+GNUSTEP_LOCAL_WEB_APPS=@systemWebApps@
102+GNUSTEP_LOCAL_TOOLS=@systemTools@
103+GNUSTEP_LOCAL_ADMIN_TOOLS=@systemAdminTools@
104+GNUSTEP_LOCAL_LIBRARY=@systemLibrary@
105+GNUSTEP_LOCAL_HEADERS=@systemHeaders@
106+GNUSTEP_LOCAL_LIBRARIES=@systemLibraries@
107+GNUSTEP_LOCAL_DOC=@systemDoc@
108+GNUSTEP_LOCAL_DOC_MAN=@systemDocMan@
109+GNUSTEP_LOCAL_DOC_INFO=@systemDocInfo@
110+111+# Important: settings in the User should normally be relative paths,
112+# and will be interpreted as relative to the user's directory. This
113+# allows each user to have their own domain to install things. You
114+# can set them to be absolute, mostly if you want to disable them
115+# by setting them equal to the ones in the Network domain.
116+GNUSTEP_USER_DIR_APPS=GNUstep/Applications
117+GNUSTEP_USER_DIR_ADMIN_APPS=GNUstep/Applications/Admin
118+GNUSTEP_USER_DIR_WEB_APPS=GNUstep/WebApplications
119+GNUSTEP_USER_DIR_TOOLS=GNUstep/Tools
120+GNUSTEP_USER_DIR_ADMIN_TOOLS=GNUstep/Tools/Admin
121+GNUSTEP_USER_DIR_LIBRARY=GNUstep/Library
122+GNUSTEP_USER_DIR_HEADERS=GNUstep/Library/Headers
123+GNUSTEP_USER_DIR_LIBRARIES=GNUstep/Library/Libraries
124+GNUSTEP_USER_DIR_DOC=GNUstep/Library/Documentation
125+GNUSTEP_USER_DIR_DOC_MAN=GNUstep/Library/Documentation/man
126+GNUSTEP_USER_DIR_DOC_INFO=GNUstep/Library/Documentation/info
···1+# this path is used by some packages to install additional makefiles
2+export DESTDIR_GNUSTEP_MAKEFILES=$out/share/GNUstep/Makefiles
3+4+installFlagsArray=( \
5+ "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" \
6+ "GNUSTEP_SYSTEM_APPS=$out/lib/GNUstep/Applications" \
7+ "GNUSTEP_SYSTEM_ADMIN_APPS=$out/lib/GNUstep/Applications" \
8+ "GNUSTEP_SYSTEM_WEB_APPS=$out/lib/GNUstep/WebApplications" \
9+ "GNUSTEP_SYSTEM_TOOLS=$out/bin" \
10+ "GNUSTEP_SYSTEM_ADMIN_TOOLS=$out/sbin" \
11+ "GNUSTEP_SYSTEM_LIBRARY=$out/lib/GNUstep" \
12+ "GNUSTEP_SYSTEM_HEADERS=$out/include" \
13+ "GNUSTEP_SYSTEM_LIBRARIES=$out/lib" \
14+ "GNUSTEP_SYSTEM_DOC=$out/share/GNUstep/Documentation" \
15+ "GNUSTEP_SYSTEM_DOC_MAN=$out/share/man" \
16+ "GNUSTEP_SYSTEM_DOC_INFO=$out/share/info" \
17+)
18+19+addEnvVars() {
20+ local filename
21+22+ for filename in $1/share/GNUstep/Makefiles/Additional/*.make ; do
23+ if case "$NIX_GNUSTEP_MAKEFILES_ADDITIONAL" in *"{$filename}"*) false;; *) true;; esac; then
24+ export NIX_GNUSTEP_MAKEFILES_ADDITIONAL+=" $filename"
25+ fi
26+ done
27+28+ local tmp="$1/lib/GNUstep/Applications"
29+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_APPS" in *"${tmp}"*) false;; *) true;; esac; then
30+ addToSearchPath NIX_GNUSTEP_SYSTEM_APPS "$tmp"
31+ fi
32+ tmp="$1/lib/GNUstep/Applications"
33+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_ADMIN_APPS" in *"${tmp}"*) false;; *) true;; esac; then
34+ addToSearchPath NIX_GNUSTEP_SYSTEM_ADMIN_APPS "$tmp"
35+ fi
36+ tmp="$1/lib/GNUstep/WebApplications"
37+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_WEB_APPS" in *"${tmp}"*) false;; *) true;; esac; then
38+ addToSearchPath NIX_GNUSTEP_SYSTEM_WEB_APPS "$tmp"
39+ fi
40+ tmp="$1/bin"
41+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_TOOLS" in *"${tmp}"*) false;; *) true;; esac; then
42+ addToSearchPath NIX_GNUSTEP_SYSTEM_TOOLS "$tmp"
43+ fi
44+ tmp="$1/sbin"
45+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_ADMIN_TOOLS" in *"${tmp}"*) false;; *) true;; esac; then
46+ addToSearchPath NIX_GNUSTEP_SYSTEM_ADMIN_TOOLS "$tmp"
47+ fi
48+ tmp="$1/lib/GNUstep"
49+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_LIBRARY" in *"${tmp}"*) false;; *) true;; esac; then
50+ addToSearchPath NIX_GNUSTEP_SYSTEM_LIBRARY "$tmp"
51+ fi
52+ tmp="$1/include"
53+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_HEADERS" in *"${tmp}"*) false;; *) true;; esac; then
54+ if [ -z "$NIX_GNUSTEP_SYSTEM_HEADERS" ]; then
55+ export NIX_GNUSTEP_SYSTEM_HEADERS="$tmp"
56+ else
57+ export NIX_GNUSTEP_SYSTEM_HEADERS+=" $tmp"
58+ fi
59+ fi
60+ tmp="$1/lib"
61+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_LIBRARIES" in *"${tmp}"*) false;; *) true;; esac; then
62+ addToSearchPath NIX_GNUSTEP_SYSTEM_LIBRARIES "$tmp"
63+ fi
64+ tmp="$1/share/GNUstep/Documentation"
65+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_DOC" in *"${tmp}"*) false;; *) true;; esac; then
66+ addToSearchPath NIX_GNUSTEP_SYSTEM_DOC "$tmp"
67+ fi
68+ tmp="$1/share/man"
69+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_DOC_MAN" in *"${tmp}"*) false;; *) true;; esac; then
70+ addToSearchPath NIX_GNUSTEP_SYSTEM_DOC_MAN "$tmp"
71+ fi
72+ tmp="$1/share/info"
73+ if [ -d "$tmp" ] && case "$NIX_GNUSTEP_SYSTEM_DOC_INFO" in *"${tmp}"*) false;; *) true;; esac; then
74+ addToSearchPath NIX_GNUSTEP_SYSTEM_DOC_INFO "$tmp"
75+ fi
76+}
77+envHooks=(${envHooks[@]} addEnvVars)