Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnustep-base/gnustep-make: gnustep-make-2.6.6.ebuild ChangeLog
Date: Wed, 29 Jan 2014 14:48:35
Message-Id: 20140129144832.B83472004C@flycatcher.gentoo.org
1 voyageur 14/01/29 14:48:32
2
3 Modified: ChangeLog
4 Added: gnustep-make-2.6.6.ebuild
5 Log:
6 Version bump. Remove gdnc autostart (#475048), force -j1 for doc compilation for now (#494096)
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C74525F2)
9
10 Revision Changes Path
11 1.119 gnustep-base/gnustep-make/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-base/gnustep-make/ChangeLog?rev=1.119&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-base/gnustep-make/ChangeLog?rev=1.119&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-base/gnustep-make/ChangeLog?r1=1.118&r2=1.119
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/ChangeLog,v
20 retrieving revision 1.118
21 retrieving revision 1.119
22 diff -u -r1.118 -r1.119
23 --- ChangeLog 26 Sep 2013 11:57:23 -0000 1.118
24 +++ ChangeLog 29 Jan 2014 14:48:32 -0000 1.119
25 @@ -1,6 +1,13 @@
26 # ChangeLog for gnustep-base/gnustep-make
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/ChangeLog,v 1.118 2013/09/26 11:57:23 voyageur Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/ChangeLog,v 1.119 2014/01/29 14:48:32 voyageur Exp $
31 +
32 +*gnustep-make-2.6.6 (29 Jan 2014)
33 +
34 + 29 Jan 2014; Bernard Cafarelli <voyageur@g.o>
35 + +gnustep-make-2.6.6.ebuild, +files/gnustep-5.csh, +files/gnustep-5.sh:
36 + Version bump. Remove gdnc autostart (#475048), force -j1 for doc compilation
37 + for now (#494096)
38
39 *gnustep-make-2.6.5 (26 Sep 2013)
40
41
42
43
44 1.1 gnustep-base/gnustep-make/gnustep-make-2.6.6.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-base/gnustep-make/gnustep-make-2.6.6.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-base/gnustep-make/gnustep-make-2.6.6.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gnustep-make-2.6.6.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/gnustep-base/gnustep-make/gnustep-make-2.6.6.ebuild,v 1.1 2014/01/29 14:48:32 voyageur Exp $
54
55 EAPI=5
56 inherit gnustep-base eutils prefix toolchain-funcs
57
58 DESCRIPTION="GNUstep Makefile Package"
59 HOMEPAGE="http://www.gnustep.org"
60 SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
65 IUSE="libobjc2 native-exceptions"
66
67 DEPEND="${GNUSTEP_CORE_DEPEND}
68 >=sys-devel/make-3.75
69 libobjc2? ( gnustep-base/libobjc2
70 >=sys-devel/clang-2.9 )
71 !libobjc2? ( >=sys-devel/gcc-3.3[objc]
72 !!gnustep-base/libobjc2 )"
73 RDEPEND="${DEPEND}"
74
75 pkg_setup() {
76 # Determine libobjc.so to use
77 if use libobjc2; then
78 libobjc_version=libobjc.so.4
79 else
80 # Find version in active gcc
81 for ver in {2..5};
82 do
83 if $(tc-getCC) -Werror -Wl,-l:libobjc.so.${ver} \
84 "${FILESDIR}"/testlibobjc.m -o /dev/null 2> /dev/null;
85 then
86 libobjc_version=libobjc.so.${ver}
87 fi
88 done
89 fi
90
91 # Stop if we could not get libobjc.so
92 if [[ -z ${libobjc_version} ]]; then
93 die "Could not find Objective-C runtime"
94 fi
95
96 # For existing installations, determine if we will use another libobjc.so
97 if has_version gnustep-base/gnustep-make; then
98 local current_libobjc="$(awk -F: '/^OBJC_LIB_FLAG/ {print $2}' ${EPREFIX}/usr/share/GNUstep/Makefiles/config.make)"
99 # Old installations did not set this explicitely
100 : ${current_libobjc:=libobjc.so.2}
101
102 if [[ ${current_libobjc} != ${libobjc_version} ]]; then
103 ewarn "Warning: changed libobjc.so version!!"
104 ewarn "The libobjc.so version used for gnustep-make has changed"
105 ewarn "(either by the libojbc2 use-flag or a GCC upgrade)"
106 ewarn "You must rebuild all gnustep packages installed."
107 ewarn ""
108 ewarn "To do so, please emerge gnustep-base/gnustep-updater and run:"
109 ewarn "# gnustep-updater -l"
110 fi
111 fi
112
113 if use libobjc2; then
114 export CC=clang
115 fi
116 }
117
118 src_prepare() {
119 # Multilib-strict
120 sed -e "s#/lib#/$(get_libdir)#" -i FilesystemLayouts/fhs-system || die "sed failed"
121 cp "${FILESDIR}"/gnustep-5.{csh,sh} "${T}"/
122 eprefixify "${T}"/gnustep-5.{csh,sh}
123 }
124
125 src_configure() {
126 #--enable-objc-nonfragile-abi: only working in clang for now
127 econf \
128 --with-layout=fhs-system \
129 --with-config-file="${EPREFIX}"/etc/GNUstep/GNUstep.conf \
130 --with-objc-lib-flag=-l:${libobjc_version} \
131 $(use_enable libobjc2 objc-nonfragile-abi) \
132 $(use_enable native-exceptions native-objc-exceptions)
133 }
134
135 src_compile() {
136 emake
137 # Prepare doc here (needed when no gnustep-make is already installed)
138 if use doc ; then
139 # If a gnustep-1 environment is set
140 unset GNUSTEP_MAKEFILES
141 pushd Documentation &> /dev/null
142 emake -j1 all install
143 popd &> /dev/null
144 fi
145 }
146
147 src_install() {
148 # Get GNUSTEP_* variables
149 . ./GNUstep.conf
150
151 local make_eval
152 use debug || make_eval="${make_eval} debug=no"
153 make_eval="${make_eval} verbose=yes"
154
155 emake ${make_eval} DESTDIR="${D}" install
156
157 # Copy the documentation
158 if use doc ; then
159 dodir ${GNUSTEP_SYSTEM_DOC}
160 cp -r Documentation/tmp-installation/System/Library/Documentation/* \
161 "${ED}"${GNUSTEP_SYSTEM_DOC=}
162 fi
163
164 dodoc FAQ README RELEASENOTES
165
166 exeinto /etc/profile.d
167 doexe "${T}"/gnustep-?.sh
168 doexe "${T}"/gnustep-?.csh
169 }
170
171 pkg_postinst() {
172 # Warn about new layout if old GNUstep directory is still here
173 if [ -e /usr/GNUstep/System ]; then
174 ewarn "Old layout directory detected (/usr/GNUstep/System)"
175 ewarn "Gentoo has switched to FHS layout for GNUstep packages"
176 ewarn "You must first update the configuration files from this package,"
177 ewarn "then remerge all packages still installed with the old layout"
178 ewarn "You can use gnustep-base/gnustep-updater for this task"
179 fi
180 }