Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/baselayout-prefix: ChangeLog baselayout-prefix-1.12.14.ebuild
Date: Fri, 29 Apr 2011 14:58:12
Message-Id: 20110429145801.E4D9C20054@flycatcher.gentoo.org
1 grobian 11/04/29 14:58:01
2
3 Modified: ChangeLog
4 Added: baselayout-prefix-1.12.14.ebuild
5 Log:
6 Version bump to match latest 1.12 release of baselayout
7
8 (Portage version: 2.2.01.18252-prefix/cvs/Darwin powerpc)
9
10 Revision Changes Path
11 1.10 sys-apps/baselayout-prefix/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 31 Mar 2011 18:49:56 -0000 1.9
24 +++ ChangeLog 29 Apr 2011 14:58:01 -0000 1.10
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-apps/baselayout-prefix
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v 1.9 2011/03/31 18:49:56 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/ChangeLog,v 1.10 2011/04/29 14:58:01 grobian Exp $
30 +
31 +*baselayout-prefix-1.12.14 (29 Apr 2011)
32 +
33 + 29 Apr 2011; Fabian Groffen <grobian@g.o>
34 + +baselayout-prefix-1.12.14.ebuild:
35 + Version bump to match latest 1.12 release of baselayout
36
37 *baselayout-prefix-1.12.5-r11 (31 Mar 2011)
38
39
40
41
42 1.1 sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild?rev=1.1&content-type=text/plain
46
47 Index: baselayout-prefix-1.12.14.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout-prefix/baselayout-prefix-1.12.14.ebuild,v 1.1 2011/04/29 14:58:01 grobian Exp $
52
53 EAPI=3
54
55 inherit eutils toolchain-funcs multilib prefix flag-o-matic autotools
56
57 # last part in e.g. 1.12.14.1704
58 PVER=1705
59
60 DESCRIPTION="Baselayout for Gentoo Prefix installs"
61 HOMEPAGE="http://prefix.gentoo.org/"
62 SRC_URI="http://dev.gentoo.org/~grobian/distfiles/${P}.${PVER}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
67 IUSE="prefix-chaining"
68 DEPEND=">=sys-apps/portage-2.2.01"
69 RDEPEND=">=sys-libs/readline-5.0-r1
70 >=app-shells/bash-3.1_p7
71 >=sys-apps/coreutils-5.2.1
72 kernel_Darwin? ( sys-process/pidof-bsd )
73 kernel_FreeBSD? ( sys-process/pidof-bsd )"
74
75 S=${WORKDIR}/${P}.${PVER}
76
77 src_prepare() {
78 if use prefix-chaining; then
79 epatch "${S}"/baselayout-${PV}-prefix-chaining.patch
80
81 # need to set the PKG_CONFIG_PATH globally for this prefix, when
82 # chaining is enabled, since pkg-config may not be installed locally,
83 # but still .pc files should be found for all RDEPENDable prefixes in
84 # the chain.
85 echo "PKG_CONFIG_PATH=\"${EPREFIX}/usr/lib/pkgconfig:${EPREFIX}/usr/share/pkgconfig\"" >> "${S}"/etc/env.d/00basic
86 fi
87
88 # The consoletype application in this form will only work on Linux
89 [[ ${CHOST} == *-linux-* ]] || epatch "${FILESDIR}"/baselayout-1.12.5-prefix-no-consoletype.patch
90
91 cd "${S}"
92 eprefixify \
93 etc/env.d/00basic \
94 etc/profile \
95 sbin/functions.sh \
96 sbin/runscript.sh \
97 src/runscript.c \
98 sbin/depscan.sh \
99 sbin/rc-daemon.sh \
100 sbin/rc-services.sh
101 # add the host OS MANPATH
102 echo 'MANPATH="/usr/share/man"' > etc/env.d/99basic || die "can't make file"
103 }
104
105 src_configure() {
106 cd gnulib || die
107 default
108 }
109
110 src_compile() {
111 # build gnulib first
112 pushd gnulib > /dev/null || die
113 emake || die "Cannot build gnulib"
114 popd > /dev/null
115
116 # use gnulib
117 append-flags -I../gnulib -I../gnulib/gllib
118 append-ldflags -L../gnulib/gllib
119 append-libs gnu
120
121 local libdir="lib"
122
123 [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
124
125 make -C "${S}"/src \
126 CC="$(tc-getCC)" \
127 LD="$(tc-getCC) ${LDFLAGS}" \
128 CFLAGS="${CFLAGS}" \
129 LIBDIR="${libdir}" || die
130 }
131
132 src_install() {
133 local dir libdirs libdirs_env rcscripts_dir
134
135 dodir /etc
136 dodir /etc/env.d
137 dodir /etc/init.d # .keep file might mess up init.d stuff
138
139 libdirs=$(get_all_libdirs)
140 : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
141
142 rcscripts_dir="/lib/rcscripts"
143
144 for dir in ${libdirs}; do
145 libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir}
146 [[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue
147 dodir /"${dir}"
148 dodir /usr/"${dir}"
149 dodir /usr/local/"${dir}"
150 done
151
152 # Ugly compatibility with stupid ebuilds and old profiles symlinks
153 if [[ ${SYMLINK_LIB} == "yes" ]] ; then
154 rm -r "${ED}"/{lib,usr/lib,usr/local/lib} &> /dev/null
155 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib
156 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib
157 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib
158 fi
159
160 # FHS compatibility symlinks stuff
161 dosym /var/tmp /usr/tmp
162
163 # rc-scripts version for testing of features that *should* be present
164 echo "Gentoo Prefix Base System version ${PV}" > ${ED}/etc/gentoo-release
165
166 # get the basic stuff in there
167 doenvd "${S}"/etc/env.d/* || die "doenvd"
168
169 # copy the profile
170 cp "${S}"/etc/profile "${ED}"/etc/profile
171
172 # Setup files in /sbin
173 #
174 cd "${S}"/sbin
175 into /
176 # These moved from /etc/init.d/ to /sbin to help newb systems
177 # from breaking
178 dosbin runscript.sh functions.sh
179
180 # Compat symlinks between /etc/init.d and /sbin
181 # (some stuff have hardcoded paths)
182 dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh
183 dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh
184 dosym ../../sbin/functions.sh /etc/init.d/functions.sh
185
186 cd "${S}"/sbin
187 into /
188 dosbin depscan.sh
189 insinto ${rcscripts_dir}/awk
190 doins "${S}"/src/awk/functions.awk
191
192 #
193 # Install baselayout utilities
194 #
195 local libdir="lib"
196 [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
197
198 cd "${S}"/src
199 make DESTDIR="${ED}" LIBDIR="${libdir}" install || die
200
201 insinto ${rcscripts_dir}/sh
202 doins "${S}"/sbin/rc-*
203 }
204
205 pkg_postinst() {
206 if [[ ${EUID} == 0 ]] ; then
207 # setup portage user, such that things that require root privs
208 # don't fail, bug #321623
209 enewgroup portage 250
210 enewuser portage 250 -1 "${EPREFIX}"/var/tmp/portage portage
211 fi
212
213 # This is also written in src_install (so it's in CONTENTS), but
214 # write it here so that the new version is immediately in the file
215 # (without waiting for the user to do etc-update)
216 rm -f "${EROOT}"/etc/._cfg????_gentoo-release
217 echo "Gentoo Prefix Base System version ${PV}" > "${EROOT}"/etc/gentoo-release
218
219 echo
220 einfo "Please be sure to update all pending '._cfg*' files in /etc,"
221 einfo "else things might break! You can use 'etc-update'"
222 einfo "to accomplish this:"
223 einfo
224 einfo " # etc-update"
225 echo
226 }